azure-native.connectedvmwarevsphere.Datastore
Explore with Pulumi AI
Define the datastore. API Version: 2020-10-01-preview.
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 (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere"
"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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Datastore(name: string, args: DatastoreArgs, opts?: CustomResourceOptions);
@overload
def Datastore(resource_name: str,
args: DatastoreArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Datastore(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = 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,
tags: Optional[Mapping[str, str]] = None,
v_center_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeDatastoreResource = new AzureNative.Connectedvmwarevsphere.Datastore("azure-nativeDatastoreResource", new()
{
ResourceGroupName = "string",
DatastoreName = "string",
ExtendedLocation =
{
{ "name", "string" },
{ "type", "string" },
},
InventoryItemId = "string",
Kind = "string",
Location = "string",
MoRefId = "string",
Tags =
{
{ "string", "string" },
},
VCenterId = "string",
});
example, err := connectedvmwarevsphere.NewDatastore(ctx, "azure-nativeDatastoreResource", &connectedvmwarevsphere.DatastoreArgs{
ResourceGroupName: "string",
DatastoreName: "string",
ExtendedLocation: map[string]interface{}{
"name": "string",
"type": "string",
},
InventoryItemId: "string",
Kind: "string",
Location: "string",
MoRefId: "string",
Tags: map[string]interface{}{
"string": "string",
},
VCenterId: "string",
})
var azure_nativeDatastoreResource = new Datastore("azure-nativeDatastoreResource", DatastoreArgs.builder()
.resourceGroupName("string")
.datastoreName("string")
.extendedLocation(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.inventoryItemId("string")
.kind("string")
.location("string")
.moRefId("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.vCenterId("string")
.build());
azure_native_datastore_resource = azure_native.connectedvmwarevsphere.Datastore("azure-nativeDatastoreResource",
resource_group_name=string,
datastore_name=string,
extended_location={
name: string,
type: string,
},
inventory_item_id=string,
kind=string,
location=string,
mo_ref_id=string,
tags={
string: string,
},
v_center_id=string)
const azure_nativeDatastoreResource = new azure_native.connectedvmwarevsphere.Datastore("azure-nativeDatastoreResource", {
resourceGroupName: "string",
datastoreName: "string",
extendedLocation: {
name: "string",
type: "string",
},
inventoryItemId: "string",
kind: "string",
location: "string",
moRefId: "string",
tags: {
string: "string",
},
vCenterId: "string",
});
type: azure-native:connectedvmwarevsphere:Datastore
properties:
datastoreName: string
extendedLocation:
name: string
type: string
inventoryItemId: string
kind: string
location: string
moRefId: string
resourceGroupName: string
tags:
string: string
vCenterId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Datastore resource accepts the following input properties:
- Resource
Group stringName - The Resource Group Name.
- Datastore
Name string - Name of the datastore.
- Extended
Location Pulumi.Azure Native. Connected VMwarev Sphere. Inputs. Extended Location - Gets or sets the extended location.
- Inventory
Item stringId - 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.
- Mo
Ref stringId - Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
- Dictionary<string, string>
- Gets or sets the Resource tags.
- VCenter
Id string - Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
- Resource
Group stringName - The Resource Group Name.
- Datastore
Name string - Name of the datastore.
- Extended
Location ExtendedLocation Args - Gets or sets the extended location.
- Inventory
Item stringId - 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.
- Mo
Ref stringId - Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
- map[string]string
- Gets or sets the Resource tags.
- VCenter
Id string - Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
- resource
Group StringName - The Resource Group Name.
- datastore
Name String - Name of the datastore.
- extended
Location ExtendedLocation - Gets or sets the extended location.
- inventory
Item StringId - 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.
- mo
Ref StringId - Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
- Map<String,String>
- Gets or sets the Resource tags.
- v
Center StringId - Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
- resource
Group stringName - The Resource Group Name.
- datastore
Name string - Name of the datastore.
- extended
Location ExtendedLocation - Gets or sets the extended location.
- inventory
Item stringId - 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.
- mo
Ref stringId - Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
- {[key: string]: string}
- Gets or sets the Resource tags.
- v
Center stringId - Gets or sets the ARM Id of the vCenter resource in which this datastore resides.
- resource_
group_ strname - The Resource Group Name.
- datastore_
name str - Name of the datastore.
- extended_
location ExtendedLocation Args - Gets or sets the extended location.
- inventory_
item_ strid - 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_ strid - Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
- 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 datastore resides.
- resource
Group StringName - The Resource Group Name.
- datastore
Name String - Name of the datastore.
- extended
Location Property Map - Gets or sets the extended location.
- inventory
Item StringId - 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.
- mo
Ref StringId - Gets or sets the vCenter MoRef (Managed Object Reference) ID for the datastore.
- Map<String>
- Gets or sets the Resource tags.
- v
Center StringId - 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:
- Custom
Resource stringName - Gets the name of the corresponding resource in Kubernetes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mo
Name string - Gets or sets the vCenter Managed Object name for the datastore.
- Name string
- Gets or sets the name.
- Provisioning
State string - Provisioning state of the resource.
- Statuses
List<Pulumi.
Azure Native. Connected VMwarev Sphere. Outputs. Resource Status Response> - The resource status information.
- System
Data 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.
- Custom
Resource stringName - Gets the name of the corresponding resource in Kubernetes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mo
Name string - Gets or sets the vCenter Managed Object name for the datastore.
- Name string
- Gets or sets the name.
- Provisioning
State string - Provisioning state of the resource.
- Statuses
[]Resource
Status Response - The resource status information.
- System
Data 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 StringName - Gets the name of the corresponding resource in Kubernetes.
- id String
- The provider-assigned unique ID for this managed resource.
- mo
Name String - Gets or sets the vCenter Managed Object name for the datastore.
- name String
- Gets or sets the name.
- provisioning
State String - Provisioning state of the resource.
- statuses
List<Resource
Status Response> - The resource status information.
- system
Data 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 stringName - Gets the name of the corresponding resource in Kubernetes.
- id string
- The provider-assigned unique ID for this managed resource.
- mo
Name string - Gets or sets the vCenter Managed Object name for the datastore.
- name string
- Gets or sets the name.
- provisioning
State string - Provisioning state of the resource.
- statuses
Resource
Status Response[] - The resource status information.
- system
Data 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.
- 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[Resource
Status 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.
- custom
Resource StringName - Gets the name of the corresponding resource in Kubernetes.
- id String
- The provider-assigned unique ID for this managed resource.
- mo
Name String - Gets or sets the vCenter Managed Object name for the datastore.
- name String
- Gets or sets the name.
- provisioning
State String - Provisioning state of the resource.
- statuses List<Property Map>
- The resource status information.
- system
Data 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
- Last
Updated 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 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 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 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.
- last
Updated 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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:Datastore HRDatastore /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/Datastores/HRDatastore
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0