1. Packages
  2. Azure Native
  3. API Docs
  4. connectedvmwarevsphere
  5. Datastore
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.30.0 published on Friday, Feb 23, 2024 by Pulumi

azure-native.connectedvmwarevsphere.Datastore

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.30.0 published on Friday, Feb 23, 2024 by Pulumi

    Define the datastore. Azure REST API version: 2022-07-15-preview. Prior API version in Azure Native 1.x: 2020-10-01-preview.

    Other available API versions: 2023-03-01-preview, 2023-10-01.

    Example Usage

    CreateDatastore

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var datastore = new AzureNative.ConnectedVMwarevSphere.Datastore("datastore", new()
        {
            DatastoreName = "HRDatastore",
            ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
            {
                Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
                Type = "customLocation",
            },
            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 (
    	"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.NewDatastore(ctx, "datastore", &connectedvmwarevsphere.DatastoreArgs{
    			DatastoreName: pulumi.String("HRDatastore"),
    			ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
    				Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
    				Type: pulumi.String("customLocation"),
    			},
    			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.Datastore;
    import com.pulumi.azurenative.connectedvmwarevsphere.DatastoreArgs;
    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 datastore = new Datastore("datastore", DatastoreArgs.builder()        
                .datastoreName("HRDatastore")
                .extendedLocation(Map.ofEntries(
                    Map.entry("name", "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
                    Map.entry("type", "customLocation")
                ))
                .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 pulumi
    import pulumi_azure_native as azure_native
    
    datastore = azure_native.connectedvmwarevsphere.Datastore("datastore",
        datastore_name="HRDatastore",
        extended_location=azure_native.connectedvmwarevsphere.ExtendedLocationArgs(
            name="/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
            type="customLocation",
        ),
        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")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const datastore = new azure_native.connectedvmwarevsphere.Datastore("datastore", {
        datastoreName: "HRDatastore",
        extendedLocation: {
            name: "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
            type: "customLocation",
        },
        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",
    });
    
    resources:
      datastore:
        type: azure-native:connectedvmwarevsphere:Datastore
        properties:
          datastoreName: HRDatastore
          extendedLocation:
            name: /subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso
            type: customLocation
          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 Datastore Resource

    new Datastore(name: string, args: DatastoreArgs, opts?: CustomResourceOptions);
    @overload
    def Datastore(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  datastore_name: Optional[str] = None,
                  extended_location: Optional[ExtendedLocationArgs] = None,
                  inventory_item_id: Optional[str] = None,
                  kind: Optional[str] = None,
                  location: Optional[str] = None,
                  mo_ref_id: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  v_center_id: Optional[str] = None)
    @overload
    def Datastore(resource_name: str,
                  args: DatastoreArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewDatastore(ctx *Context, name string, args DatastoreArgs, opts ...ResourceOption) (*Datastore, error)
    public Datastore(string name, DatastoreArgs args, CustomResourceOptions? opts = null)
    public Datastore(String name, DatastoreArgs args)
    public Datastore(String name, DatastoreArgs args, CustomResourceOptions options)
    
    type: azure-native:connectedvmwarevsphere:Datastore
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DatastoreArgs
    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 DatastoreArgs
    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 DatastoreArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatastoreArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatastoreArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Datastore Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Datastore resource accepts the following input properties:

    ResourceGroupName string
    The Resource Group Name.
    DatastoreName string
    Name of the datastore.
    ExtendedLocation Pulumi.AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocation
    Gets or sets the extended location.
    InventoryItemId string
    Gets or sets the inventory Item ID for the datastore.
    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.
    MoRefId string
    Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
    Tags Dictionary<string, string>
    Gets or sets the Resource tags.
    VCenterId string
    Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
    ResourceGroupName string
    The Resource Group Name.
    DatastoreName string
    Name of the datastore.
    ExtendedLocation ExtendedLocationArgs
    Gets or sets the extended location.
    InventoryItemId string
    Gets or sets the inventory Item ID for the datastore.
    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.
    MoRefId string
    Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
    Tags map[string]string
    Gets or sets the Resource tags.
    VCenterId string
    Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
    resourceGroupName String
    The Resource Group Name.
    datastoreName String
    Name of the datastore.
    extendedLocation ExtendedLocation
    Gets or sets the extended location.
    inventoryItemId String
    Gets or sets the inventory Item ID for the datastore.
    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.
    moRefId String
    Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
    tags Map<String,String>
    Gets or sets the Resource tags.
    vCenterId String
    Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
    resourceGroupName string
    The Resource Group Name.
    datastoreName string
    Name of the datastore.
    extendedLocation ExtendedLocation
    Gets or sets the extended location.
    inventoryItemId string
    Gets or sets the inventory Item ID for the datastore.
    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.
    moRefId string
    Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
    tags {[key: string]: string}
    Gets or sets the Resource tags.
    vCenterId string
    Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
    resource_group_name str
    The Resource Group Name.
    datastore_name str
    Name of the datastore.
    extended_location ExtendedLocationArgs
    Gets or sets the extended location.
    inventory_item_id str
    Gets or sets the inventory Item ID for the datastore.
    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_id str
    Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
    tags Mapping[str, str]
    Gets or sets the Resource tags.
    v_center_id str
    Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
    resourceGroupName String
    The Resource Group Name.
    datastoreName String
    Name of the datastore.
    extendedLocation Property Map
    Gets or sets the extended location.
    inventoryItemId String
    Gets or sets the inventory Item ID for the datastore.
    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.
    moRefId String
    Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
    tags Map<String>
    Gets or sets the Resource tags.
    vCenterId String
    Gets or sets the ARM Id of the vCenter resource in which this datastore resides.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Datastore resource produces the following output properties:

    CapacityGB double
    Gets or sets Maximum capacity of this datastore in GBs.
    CustomResourceName string
    Gets the name of the corresponding resource in Kubernetes.
    FreeSpaceGB double
    Gets or sets Available space of this datastore in GBs.
    Id string
    The provider-assigned unique ID for this managed resource.
    MoName string
    Gets or sets the vCenter Managed Object name for the datastore.
    Name string
    Gets or sets the name.
    ProvisioningState string
    Provisioning state of the resource.
    Statuses List<Pulumi.AzureNative.ConnectedVMwarevSphere.Outputs.ResourceStatusResponse>
    The resource status information.
    SystemData Pulumi.AzureNative.ConnectedVMwarevSphere.Outputs.SystemDataResponse
    The system data.
    Type string
    Gets or sets the type of the resource.
    Uuid string
    Gets or sets a unique identifier for this resource.
    CapacityGB float64
    Gets or sets Maximum capacity of this datastore in GBs.
    CustomResourceName string
    Gets the name of the corresponding resource in Kubernetes.
    FreeSpaceGB float64
    Gets or sets Available space of this datastore in GBs.
    Id string
    The provider-assigned unique ID for this managed resource.
    MoName string
    Gets or sets the vCenter Managed Object name for the datastore.
    Name string
    Gets or sets the name.
    ProvisioningState string
    Provisioning state of the resource.
    Statuses []ResourceStatusResponse
    The resource status information.
    SystemData SystemDataResponse
    The system data.
    Type string
    Gets or sets the type of the resource.
    Uuid string
    Gets or sets a unique identifier for this resource.
    capacityGB Double
    Gets or sets Maximum capacity of this datastore in GBs.
    customResourceName String
    Gets the name of the corresponding resource in Kubernetes.
    freeSpaceGB Double
    Gets or sets Available space of this datastore in GBs.
    id String
    The provider-assigned unique ID for this managed resource.
    moName String
    Gets or sets the vCenter Managed Object name for the datastore.
    name String
    Gets or sets the name.
    provisioningState String
    Provisioning state of the resource.
    statuses List<ResourceStatusResponse>
    The resource status information.
    systemData SystemDataResponse
    The system data.
    type String
    Gets or sets the type of the resource.
    uuid String
    Gets or sets a unique identifier for this resource.
    capacityGB number
    Gets or sets Maximum capacity of this datastore in GBs.
    customResourceName string
    Gets the name of the corresponding resource in Kubernetes.
    freeSpaceGB number
    Gets or sets Available space of this datastore in GBs.
    id string
    The provider-assigned unique ID for this managed resource.
    moName string
    Gets or sets the vCenter Managed Object name for the datastore.
    name string
    Gets or sets the name.
    provisioningState string
    Provisioning state of the resource.
    statuses ResourceStatusResponse[]
    The resource status information.
    systemData SystemDataResponse
    The system data.
    type string
    Gets or sets the type of the resource.
    uuid string
    Gets or sets a unique identifier for this resource.
    capacity_gb float
    Gets or sets Maximum capacity of this datastore in GBs.
    custom_resource_name str
    Gets the name of the corresponding resource in Kubernetes.
    free_space_gb float
    Gets or sets Available space of this datastore in GBs.
    id str
    The provider-assigned unique ID for this managed resource.
    mo_name str
    Gets or sets the vCenter Managed Object name for the datastore.
    name str
    Gets or sets the name.
    provisioning_state str
    Provisioning state of the resource.
    statuses Sequence[ResourceStatusResponse]
    The resource status information.
    system_data SystemDataResponse
    The system data.
    type str
    Gets or sets the type of the resource.
    uuid str
    Gets or sets a unique identifier for this resource.
    capacityGB Number
    Gets or sets Maximum capacity of this datastore in GBs.
    customResourceName String
    Gets the name of the corresponding resource in Kubernetes.
    freeSpaceGB Number
    Gets or sets Available space of this datastore in GBs.
    id String
    The provider-assigned unique ID for this managed resource.
    moName String
    Gets or sets the vCenter Managed Object name for the datastore.
    name String
    Gets or sets the name.
    provisioningState String
    Provisioning state of the resource.
    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

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    ExtendedLocationResponse, ExtendedLocationResponseArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    ResourceStatusResponse, ResourceStatusResponseArgs

    LastUpdatedAt string
    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.
    LastUpdatedAt string
    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.
    lastUpdatedAt String
    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.
    lastUpdatedAt string
    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_at str
    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.
    lastUpdatedAt String
    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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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:Datastore HRDatastore /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.30.0 published on Friday, Feb 23, 2024 by Pulumi