azure-native.connectedvmwarevsphere.Host
Explore with Pulumi AI
Define the host.
Uses Azure REST API version 2022-07-15-preview. In version 1.x of the Azure Native provider, it used API version 2020-10-01-preview.
Other available API versions: 2023-03-01-preview, 2023-10-01, 2023-12-01.
Example Usage
CreateHost
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var host = new AzureNative.ConnectedVMwarevSphere.Host("host", new()
    {
        ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
        {
            Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
            Type = "customLocation",
        },
        HostName = "HRHost",
        Location = "East US",
        MoRefId = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        ResourceGroupName = "testrg",
        VCenterId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
    });
});
package main
import (
	connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connectedvmwarevsphere.NewHost(ctx, "host", &connectedvmwarevsphere.HostArgs{
			ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
				Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
				Type: pulumi.String("customLocation"),
			},
			HostName:          pulumi.String("HRHost"),
			Location:          pulumi.String("East US"),
			MoRefId:           pulumi.String("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
			ResourceGroupName: pulumi.String("testrg"),
			VCenterId:         pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.connectedvmwarevsphere.Host;
import com.pulumi.azurenative.connectedvmwarevsphere.HostArgs;
import com.pulumi.azurenative.connectedvmwarevsphere.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 host = new Host("host", HostArgs.builder()
            .extendedLocation(ExtendedLocationArgs.builder()
                .name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso")
                .type("customLocation")
                .build())
            .hostName("HRHost")
            .location("East US")
            .moRefId("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
            .resourceGroupName("testrg")
            .vCenterId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const host = new azure_native.connectedvmwarevsphere.Host("host", {
    extendedLocation: {
        name: "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
        type: "customLocation",
    },
    hostName: "HRHost",
    location: "East US",
    moRefId: "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    resourceGroupName: "testrg",
    vCenterId: "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
});
import pulumi
import pulumi_azure_native as azure_native
host = azure_native.connectedvmwarevsphere.Host("host",
    extended_location={
        "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
        "type": "customLocation",
    },
    host_name="HRHost",
    location="East US",
    mo_ref_id="aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    resource_group_name="testrg",
    v_center_id="/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter")
resources:
  host:
    type: azure-native:connectedvmwarevsphere:Host
    properties:
      extendedLocation:
        name: /subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso
        type: customLocation
      hostName: HRHost
      location: East US
      moRefId: aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
      resourceGroupName: testrg
      vCenterId: /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter
Create Host Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Host(name: string, args: HostArgs, opts?: CustomResourceOptions);@overload
def Host(resource_name: str,
         args: HostArgs,
         opts: Optional[ResourceOptions] = None)
@overload
def Host(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         resource_group_name: Optional[str] = None,
         extended_location: Optional[ExtendedLocationArgs] = None,
         host_name: Optional[str] = None,
         inventory_item_id: Optional[str] = None,
         kind: Optional[str] = None,
         location: Optional[str] = None,
         mo_ref_id: Optional[str] = None,
         tags: Optional[Mapping[str, str]] = None,
         v_center_id: Optional[str] = None)func NewHost(ctx *Context, name string, args HostArgs, opts ...ResourceOption) (*Host, error)public Host(string name, HostArgs args, CustomResourceOptions? opts = null)type: azure-native:connectedvmwarevsphere:Host
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hostResource = new AzureNative.ConnectedVMwarevSphere.Host("hostResource", new()
{
    ResourceGroupName = "string",
    ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
    {
        Name = "string",
        Type = "string",
    },
    HostName = "string",
    InventoryItemId = "string",
    Kind = "string",
    Location = "string",
    MoRefId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    VCenterId = "string",
});
example, err := connectedvmwarevsphere.NewHost(ctx, "hostResource", &connectedvmwarevsphere.HostArgs{
	ResourceGroupName: pulumi.String("string"),
	ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
		Name: pulumi.String("string"),
		Type: pulumi.String("string"),
	},
	HostName:        pulumi.String("string"),
	InventoryItemId: pulumi.String("string"),
	Kind:            pulumi.String("string"),
	Location:        pulumi.String("string"),
	MoRefId:         pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	VCenterId: pulumi.String("string"),
})
var hostResource = new Host("hostResource", HostArgs.builder()
    .resourceGroupName("string")
    .extendedLocation(ExtendedLocationArgs.builder()
        .name("string")
        .type("string")
        .build())
    .hostName("string")
    .inventoryItemId("string")
    .kind("string")
    .location("string")
    .moRefId("string")
    .tags(Map.of("string", "string"))
    .vCenterId("string")
    .build());
host_resource = azure_native.connectedvmwarevsphere.Host("hostResource",
    resource_group_name="string",
    extended_location={
        "name": "string",
        "type": "string",
    },
    host_name="string",
    inventory_item_id="string",
    kind="string",
    location="string",
    mo_ref_id="string",
    tags={
        "string": "string",
    },
    v_center_id="string")
const hostResource = new azure_native.connectedvmwarevsphere.Host("hostResource", {
    resourceGroupName: "string",
    extendedLocation: {
        name: "string",
        type: "string",
    },
    hostName: "string",
    inventoryItemId: "string",
    kind: "string",
    location: "string",
    moRefId: "string",
    tags: {
        string: "string",
    },
    vCenterId: "string",
});
type: azure-native:connectedvmwarevsphere:Host
properties:
    extendedLocation:
        name: string
        type: string
    hostName: string
    inventoryItemId: string
    kind: string
    location: string
    moRefId: string
    resourceGroupName: string
    tags:
        string: string
    vCenterId: string
Host Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Host resource accepts the following input properties:
- ResourceGroup stringName 
- The Resource Group Name.
- ExtendedLocation Pulumi.Azure Native. Connected VMwarev Sphere. Inputs. Extended Location 
- Gets or sets the extended location.
- HostName string
- Name of the host.
- InventoryItem stringId 
- Gets or sets the inventory Item ID for the host.
- Kind string
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- Location string
- Gets or sets the location.
- MoRef stringId 
- Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
- Dictionary<string, string>
- Gets or sets the Resource tags.
- VCenterId string
- Gets or sets the ARM Id of the vCenter resource in which this host resides.
- ResourceGroup stringName 
- The Resource Group Name.
- ExtendedLocation ExtendedLocation Args 
- Gets or sets the extended location.
- HostName string
- Name of the host.
- InventoryItem stringId 
- Gets or sets the inventory Item ID for the host.
- Kind string
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- Location string
- Gets or sets the location.
- MoRef stringId 
- Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
- map[string]string
- Gets or sets the Resource tags.
- VCenterId string
- Gets or sets the ARM Id of the vCenter resource in which this host resides.
- resourceGroup StringName 
- The Resource Group Name.
- extendedLocation ExtendedLocation 
- Gets or sets the extended location.
- hostName String
- Name of the host.
- inventoryItem StringId 
- Gets or sets the inventory Item ID for the host.
- kind String
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- location String
- Gets or sets the location.
- moRef StringId 
- Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
- Map<String,String>
- Gets or sets the Resource tags.
- vCenter StringId 
- Gets or sets the ARM Id of the vCenter resource in which this host resides.
- resourceGroup stringName 
- The Resource Group Name.
- extendedLocation ExtendedLocation 
- Gets or sets the extended location.
- hostName string
- Name of the host.
- inventoryItem stringId 
- Gets or sets the inventory Item ID for the host.
- kind string
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- location string
- Gets or sets the location.
- moRef stringId 
- Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
- {[key: string]: string}
- Gets or sets the Resource tags.
- vCenter stringId 
- Gets or sets the ARM Id of the vCenter resource in which this host resides.
- resource_group_ strname 
- The Resource Group Name.
- extended_location ExtendedLocation Args 
- Gets or sets the extended location.
- host_name str
- Name of the host.
- inventory_item_ strid 
- Gets or sets the inventory Item ID for the host.
- kind str
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- location str
- Gets or sets the location.
- mo_ref_ strid 
- Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
- Mapping[str, str]
- Gets or sets the Resource tags.
- v_center_ strid 
- Gets or sets the ARM Id of the vCenter resource in which this host resides.
- resourceGroup StringName 
- The Resource Group Name.
- extendedLocation Property Map
- Gets or sets the extended location.
- hostName String
- Name of the host.
- inventoryItem StringId 
- Gets or sets the inventory Item ID for the host.
- kind String
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- location String
- Gets or sets the location.
- moRef StringId 
- Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
- Map<String>
- Gets or sets the Resource tags.
- vCenter StringId 
- Gets or sets the ARM Id of the vCenter resource in which this host resides.
Outputs
All input properties are implicitly available as output properties. Additionally, the Host resource produces the following output properties:
- CustomResource stringName 
- Gets the name of the corresponding resource in Kubernetes.
- DatastoreIds List<string>
- Gets or sets the datastore ARM ids.
- Id string
- The provider-assigned unique ID for this managed resource.
- MoName string
- Gets or sets the vCenter Managed Object name for the host.
- Name string
- Gets or sets the name.
- NetworkIds List<string>
- Gets or sets the network ARM ids.
- ProvisioningState string
- Gets or sets the provisioning state.
- Statuses
List<Pulumi.Azure Native. Connected VMwarev Sphere. Outputs. Resource Status Response> 
- The resource status information.
- SystemData Pulumi.Azure Native. Connected VMwarev Sphere. Outputs. System Data Response 
- The system data.
- Type string
- Gets or sets the type of the resource.
- Uuid string
- Gets or sets a unique identifier for this resource.
- CustomResource stringName 
- Gets the name of the corresponding resource in Kubernetes.
- DatastoreIds []string
- Gets or sets the datastore ARM ids.
- Id string
- The provider-assigned unique ID for this managed resource.
- MoName string
- Gets or sets the vCenter Managed Object name for the host.
- Name string
- Gets or sets the name.
- NetworkIds []string
- Gets or sets the network ARM ids.
- ProvisioningState string
- Gets or sets the provisioning state.
- Statuses
[]ResourceStatus Response 
- The resource status information.
- SystemData SystemData Response 
- The system data.
- Type string
- Gets or sets the type of the resource.
- Uuid string
- Gets or sets a unique identifier for this resource.
- customResource StringName 
- Gets the name of the corresponding resource in Kubernetes.
- datastoreIds List<String>
- Gets or sets the datastore ARM ids.
- id String
- The provider-assigned unique ID for this managed resource.
- moName String
- Gets or sets the vCenter Managed Object name for the host.
- name String
- Gets or sets the name.
- networkIds List<String>
- Gets or sets the network ARM ids.
- provisioningState String
- Gets or sets the provisioning state.
- statuses
List<ResourceStatus Response> 
- The resource status information.
- systemData SystemData Response 
- The system data.
- type String
- Gets or sets the type of the resource.
- uuid String
- Gets or sets a unique identifier for this resource.
- customResource stringName 
- Gets the name of the corresponding resource in Kubernetes.
- datastoreIds string[]
- Gets or sets the datastore ARM ids.
- id string
- The provider-assigned unique ID for this managed resource.
- moName string
- Gets or sets the vCenter Managed Object name for the host.
- name string
- Gets or sets the name.
- networkIds string[]
- Gets or sets the network ARM ids.
- provisioningState string
- Gets or sets the provisioning state.
- statuses
ResourceStatus Response[] 
- The resource status information.
- systemData SystemData Response 
- The system data.
- type string
- Gets or sets the type of the resource.
- uuid string
- Gets or sets a unique identifier for this resource.
- custom_resource_ strname 
- Gets the name of the corresponding resource in Kubernetes.
- datastore_ids Sequence[str]
- Gets or sets the datastore ARM ids.
- id str
- The provider-assigned unique ID for this managed resource.
- mo_name str
- Gets or sets the vCenter Managed Object name for the host.
- name str
- Gets or sets the name.
- network_ids Sequence[str]
- Gets or sets the network ARM ids.
- provisioning_state str
- Gets or sets the provisioning state.
- statuses
Sequence[ResourceStatus Response] 
- The resource status information.
- system_data SystemData Response 
- The system data.
- type str
- Gets or sets the type of the resource.
- uuid str
- Gets or sets a unique identifier for this resource.
- customResource StringName 
- Gets the name of the corresponding resource in Kubernetes.
- datastoreIds List<String>
- Gets or sets the datastore ARM ids.
- id String
- The provider-assigned unique ID for this managed resource.
- moName String
- Gets or sets the vCenter Managed Object name for the host.
- name String
- Gets or sets the name.
- networkIds List<String>
- Gets or sets the network ARM ids.
- provisioningState String
- Gets or sets the provisioning state.
- statuses List<Property Map>
- The resource status information.
- systemData Property Map
- The system data.
- type String
- Gets or sets the type of the resource.
- uuid String
- Gets or sets a unique identifier for this resource.
Supporting Types
ExtendedLocation, ExtendedLocationArgs    
ExtendedLocationResponse, ExtendedLocationResponseArgs      
ResourceStatusResponse, ResourceStatusResponseArgs      
- LastUpdated stringAt 
- The last update time for this condition.
- Message string
- A human readable message indicating details about the status.
- Reason string
- The reason for the condition's status.
- Severity string
- Severity with which to treat failures of this type of condition.
- Status string
- Status of the condition.
- Type string
- The type of the condition.
- LastUpdated stringAt 
- The last update time for this condition.
- Message string
- A human readable message indicating details about the status.
- Reason string
- The reason for the condition's status.
- Severity string
- Severity with which to treat failures of this type of condition.
- Status string
- Status of the condition.
- Type string
- The type of the condition.
- lastUpdated StringAt 
- The last update time for this condition.
- message String
- A human readable message indicating details about the status.
- reason String
- The reason for the condition's status.
- severity String
- Severity with which to treat failures of this type of condition.
- status String
- Status of the condition.
- type String
- The type of the condition.
- lastUpdated stringAt 
- The last update time for this condition.
- message string
- A human readable message indicating details about the status.
- reason string
- The reason for the condition's status.
- severity string
- Severity with which to treat failures of this type of condition.
- status string
- Status of the condition.
- type string
- The type of the condition.
- last_updated_ strat 
- The last update time for this condition.
- message str
- A human readable message indicating details about the status.
- reason str
- The reason for the condition's status.
- severity str
- Severity with which to treat failures of this type of condition.
- status str
- Status of the condition.
- type str
- The type of the condition.
- lastUpdated StringAt 
- The last update time for this condition.
- message String
- A human readable message indicating details about the status.
- reason String
- The reason for the condition's status.
- severity String
- Severity with which to treat failures of this type of condition.
- status String
- Status of the condition.
- type String
- The type of the condition.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:connectedvmwarevsphere:Host HRHost /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0