com.pulumi.azurenative.networkcloud.BareMetalMachine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.networkcloud;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.networkcloud.BareMetalMachineArgs;
import com.pulumi.azurenative.networkcloud.outputs.AdministrativeCredentialsResponse;
import com.pulumi.azurenative.networkcloud.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.networkcloud.outputs.HardwareInventoryResponse;
import com.pulumi.azurenative.networkcloud.outputs.HardwareValidationStatusResponse;
import com.pulumi.azurenative.networkcloud.outputs.RuntimeProtectionStatusResponse;
import com.pulumi.azurenative.networkcloud.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Azure REST API version: 2023-10-01-preview. Prior API version in Azure Native 1.x: 2022-12-12-preview.
*
* Other available API versions: 2023-07-01, 2024-06-01-preview, 2024-07-01.
*
* ## Example Usage
* ### Create or update bare metal machine
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.networkcloud.BareMetalMachine;
* import com.pulumi.azurenative.networkcloud.BareMetalMachineArgs;
* import com.pulumi.azurenative.networkcloud.inputs.AdministrativeCredentialsArgs;
* import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var bareMetalMachine = new BareMetalMachine("bareMetalMachine", BareMetalMachineArgs.builder()
* .bareMetalMachineName("bareMetalMachineName")
* .bmcConnectionString("bmcconnectionstring")
* .bmcCredentials(AdministrativeCredentialsArgs.builder()
* .password("{password}")
* .username("bmcuser")
* .build())
* .bmcMacAddress("00:00:4f:00:57:00")
* .bootMacAddress("00:00:4e:00:58:af")
* .extendedLocation(ExtendedLocationArgs.builder()
* .name("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
* .type("CustomLocation")
* .build())
* .location("location")
* .machineDetails("User-provided machine details.")
* .machineName("r01c001")
* .machineSkuId("684E-3B16-399E")
* .rackId("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName")
* .rackSlot(1)
* .resourceGroupName("resourceGroupName")
* .serialNumber("BM1219XXX")
* .tags(Map.ofEntries(
* Map.entry("key1", "myvalue1"),
* Map.entry("key2", "myvalue2")
* ))
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:networkcloud:BareMetalMachine bareMetalMachineName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}
* ```
*
*/
@ResourceType(type="azure-native:networkcloud:BareMetalMachine")
public class BareMetalMachine extends com.pulumi.resources.CustomResource {
/**
* The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.
*
*/
@Export(name="associatedResourceIds", refs={List.class,String.class}, tree="[0,1]")
private Output> associatedResourceIds;
/**
* @return The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.
*
*/
public Output> associatedResourceIds() {
return this.associatedResourceIds;
}
/**
* The connection string for the baseboard management controller including IP address and protocol.
*
*/
@Export(name="bmcConnectionString", refs={String.class}, tree="[0]")
private Output bmcConnectionString;
/**
* @return The connection string for the baseboard management controller including IP address and protocol.
*
*/
public Output bmcConnectionString() {
return this.bmcConnectionString;
}
/**
* The credentials of the baseboard management controller on this bare metal machine.
*
*/
@Export(name="bmcCredentials", refs={AdministrativeCredentialsResponse.class}, tree="[0]")
private Output bmcCredentials;
/**
* @return The credentials of the baseboard management controller on this bare metal machine.
*
*/
public Output bmcCredentials() {
return this.bmcCredentials;
}
/**
* The MAC address of the BMC device.
*
*/
@Export(name="bmcMacAddress", refs={String.class}, tree="[0]")
private Output bmcMacAddress;
/**
* @return The MAC address of the BMC device.
*
*/
public Output bmcMacAddress() {
return this.bmcMacAddress;
}
/**
* The MAC address of a NIC connected to the PXE network.
*
*/
@Export(name="bootMacAddress", refs={String.class}, tree="[0]")
private Output bootMacAddress;
/**
* @return The MAC address of a NIC connected to the PXE network.
*
*/
public Output bootMacAddress() {
return this.bootMacAddress;
}
/**
* The resource ID of the cluster this bare metal machine is associated with.
*
*/
@Export(name="clusterId", refs={String.class}, tree="[0]")
private Output clusterId;
/**
* @return The resource ID of the cluster this bare metal machine is associated with.
*
*/
public Output clusterId() {
return this.clusterId;
}
/**
* The cordon status of the bare metal machine.
*
*/
@Export(name="cordonStatus", refs={String.class}, tree="[0]")
private Output cordonStatus;
/**
* @return The cordon status of the bare metal machine.
*
*/
public Output cordonStatus() {
return this.cordonStatus;
}
/**
* The more detailed status of the bare metal machine.
*
*/
@Export(name="detailedStatus", refs={String.class}, tree="[0]")
private Output detailedStatus;
/**
* @return The more detailed status of the bare metal machine.
*
*/
public Output detailedStatus() {
return this.detailedStatus;
}
/**
* The descriptive message about the current detailed status.
*
*/
@Export(name="detailedStatusMessage", refs={String.class}, tree="[0]")
private Output detailedStatusMessage;
/**
* @return The descriptive message about the current detailed status.
*
*/
public Output detailedStatusMessage() {
return this.detailedStatusMessage;
}
/**
* The extended location of the cluster associated with the resource.
*
*/
@Export(name="extendedLocation", refs={ExtendedLocationResponse.class}, tree="[0]")
private Output extendedLocation;
/**
* @return The extended location of the cluster associated with the resource.
*
*/
public Output extendedLocation() {
return this.extendedLocation;
}
/**
* The hardware inventory, including information acquired from the model/sku information and from the ironic inspector.
*
*/
@Export(name="hardwareInventory", refs={HardwareInventoryResponse.class}, tree="[0]")
private Output hardwareInventory;
/**
* @return The hardware inventory, including information acquired from the model/sku information and from the ironic inspector.
*
*/
public Output hardwareInventory() {
return this.hardwareInventory;
}
/**
* The details of the latest hardware validation performed for this bare metal machine.
*
*/
@Export(name="hardwareValidationStatus", refs={HardwareValidationStatusResponse.class}, tree="[0]")
private Output hardwareValidationStatus;
/**
* @return The details of the latest hardware validation performed for this bare metal machine.
*
*/
public Output hardwareValidationStatus() {
return this.hardwareValidationStatus;
}
/**
* Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine.
*
*/
@Export(name="hybridAksClustersAssociatedIds", refs={List.class,String.class}, tree="[0,1]")
private Output> hybridAksClustersAssociatedIds;
/**
* @return Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine.
*
*/
public Output> hybridAksClustersAssociatedIds() {
return this.hybridAksClustersAssociatedIds;
}
/**
* The name of this machine represented by the host object in the Cluster's Kubernetes control plane.
*
*/
@Export(name="kubernetesNodeName", refs={String.class}, tree="[0]")
private Output kubernetesNodeName;
/**
* @return The name of this machine represented by the host object in the Cluster's Kubernetes control plane.
*
*/
public Output kubernetesNodeName() {
return this.kubernetesNodeName;
}
/**
* The version of Kubernetes running on this machine.
*
*/
@Export(name="kubernetesVersion", refs={String.class}, tree="[0]")
private Output kubernetesVersion;
/**
* @return The version of Kubernetes running on this machine.
*
*/
public Output kubernetesVersion() {
return this.kubernetesVersion;
}
/**
* The geo-location where the resource lives
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Output location() {
return this.location;
}
/**
* The custom details provided by the customer.
*
*/
@Export(name="machineDetails", refs={String.class}, tree="[0]")
private Output machineDetails;
/**
* @return The custom details provided by the customer.
*
*/
public Output machineDetails() {
return this.machineDetails;
}
/**
* The OS-level hostname assigned to this machine.
*
*/
@Export(name="machineName", refs={String.class}, tree="[0]")
private Output machineName;
/**
* @return The OS-level hostname assigned to this machine.
*
*/
public Output machineName() {
return this.machineName;
}
/**
* The list of roles that are assigned to the cluster node running on this machine.
*
*/
@Export(name="machineRoles", refs={List.class,String.class}, tree="[0,1]")
private Output> machineRoles;
/**
* @return The list of roles that are assigned to the cluster node running on this machine.
*
*/
public Output> machineRoles() {
return this.machineRoles;
}
/**
* The unique internal identifier of the bare metal machine SKU.
*
*/
@Export(name="machineSkuId", refs={String.class}, tree="[0]")
private Output machineSkuId;
/**
* @return The unique internal identifier of the bare metal machine SKU.
*
*/
public Output machineSkuId() {
return this.machineSkuId;
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* The IPv4 address that is assigned to the bare metal machine during the cluster deployment.
*
*/
@Export(name="oamIpv4Address", refs={String.class}, tree="[0]")
private Output oamIpv4Address;
/**
* @return The IPv4 address that is assigned to the bare metal machine during the cluster deployment.
*
*/
public Output oamIpv4Address() {
return this.oamIpv4Address;
}
/**
* The IPv6 address that is assigned to the bare metal machine during the cluster deployment.
*
*/
@Export(name="oamIpv6Address", refs={String.class}, tree="[0]")
private Output oamIpv6Address;
/**
* @return The IPv6 address that is assigned to the bare metal machine during the cluster deployment.
*
*/
public Output oamIpv6Address() {
return this.oamIpv6Address;
}
/**
* The image that is currently provisioned to the OS disk.
*
*/
@Export(name="osImage", refs={String.class}, tree="[0]")
private Output osImage;
/**
* @return The image that is currently provisioned to the OS disk.
*
*/
public Output osImage() {
return this.osImage;
}
/**
* The power state derived from the baseboard management controller.
*
*/
@Export(name="powerState", refs={String.class}, tree="[0]")
private Output powerState;
/**
* @return The power state derived from the baseboard management controller.
*
*/
public Output powerState() {
return this.powerState;
}
/**
* The provisioning state of the bare metal machine.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The provisioning state of the bare metal machine.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* The resource ID of the rack where this bare metal machine resides.
*
*/
@Export(name="rackId", refs={String.class}, tree="[0]")
private Output rackId;
/**
* @return The resource ID of the rack where this bare metal machine resides.
*
*/
public Output rackId() {
return this.rackId;
}
/**
* The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1.
*
*/
@Export(name="rackSlot", refs={Double.class}, tree="[0]")
private Output rackSlot;
/**
* @return The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1.
*
*/
public Output rackSlot() {
return this.rackSlot;
}
/**
* The indicator of whether the bare metal machine is ready to receive workloads.
*
*/
@Export(name="readyState", refs={String.class}, tree="[0]")
private Output readyState;
/**
* @return The indicator of whether the bare metal machine is ready to receive workloads.
*
*/
public Output readyState() {
return this.readyState;
}
/**
* The runtime protection status of the bare metal machine.
*
*/
@Export(name="runtimeProtectionStatus", refs={RuntimeProtectionStatusResponse.class}, tree="[0]")
private Output runtimeProtectionStatus;
/**
* @return The runtime protection status of the bare metal machine.
*
*/
public Output runtimeProtectionStatus() {
return this.runtimeProtectionStatus;
}
/**
* The serial number of the bare metal machine.
*
*/
@Export(name="serialNumber", refs={String.class}, tree="[0]")
private Output serialNumber;
/**
* @return The serial number of the bare metal machine.
*
*/
public Output serialNumber() {
return this.serialNumber;
}
/**
* The discovered value of the machine's service tag.
*
*/
@Export(name="serviceTag", refs={String.class}, tree="[0]")
private Output serviceTag;
/**
* @return The discovered value of the machine's service tag.
*
*/
public Output serviceTag() {
return this.serviceTag;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
* Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine.
*
*/
@Export(name="virtualMachinesAssociatedIds", refs={List.class,String.class}, tree="[0,1]")
private Output> virtualMachinesAssociatedIds;
/**
* @return Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine.
*
*/
public Output> virtualMachinesAssociatedIds() {
return this.virtualMachinesAssociatedIds;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public BareMetalMachine(java.lang.String name) {
this(name, BareMetalMachineArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public BareMetalMachine(java.lang.String name, BareMetalMachineArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public BareMetalMachine(java.lang.String name, BareMetalMachineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:networkcloud:BareMetalMachine", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private BareMetalMachine(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:networkcloud:BareMetalMachine", name, null, makeResourceOptions(options, id), false);
}
private static BareMetalMachineArgs makeArgs(BareMetalMachineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? BareMetalMachineArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:networkcloud/v20230701:BareMetalMachine").build()),
Output.of(Alias.builder().type("azure-native:networkcloud/v20231001preview:BareMetalMachine").build()),
Output.of(Alias.builder().type("azure-native:networkcloud/v20240601preview:BareMetalMachine").build()),
Output.of(Alias.builder().type("azure-native:networkcloud/v20240701:BareMetalMachine").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static BareMetalMachine get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new BareMetalMachine(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy