azure-native-v2.avs.Cluster
Explore with Pulumi AI
A cluster resource Azure REST API version: 2022-05-01. Prior API version in Azure Native 1.x: 2020-03-20.
Other available API versions: 2020-03-20, 2021-06-01, 2023-03-01, 2023-09-01.
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
private_cloud_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
cluster_name: Optional[str] = None,
cluster_size: Optional[int] = None,
hosts: Optional[Sequence[str]] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: azure-native:avs:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClusterArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ClusterArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClusterArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClusterArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ClusterArgs - 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 clusterResource = new AzureNative.Avs.Cluster("clusterResource", new()
{
PrivateCloudName = "string",
ResourceGroupName = "string",
Sku =
{
{ "name", "string" },
},
ClusterName = "string",
ClusterSize = 0,
Hosts = new[]
{
"string",
},
});
example, err := avs.NewCluster(ctx, "clusterResource", &avs.ClusterArgs{
PrivateCloudName: "string",
ResourceGroupName: "string",
Sku: map[string]interface{}{
"name": "string",
},
ClusterName: "string",
ClusterSize: 0,
Hosts: []string{
"string",
},
})
var clusterResource = new Cluster("clusterResource", ClusterArgs.builder()
.privateCloudName("string")
.resourceGroupName("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.clusterName("string")
.clusterSize(0)
.hosts("string")
.build());
cluster_resource = azure_native.avs.Cluster("clusterResource",
private_cloud_name=string,
resource_group_name=string,
sku={
name: string,
},
cluster_name=string,
cluster_size=0,
hosts=[string])
const clusterResource = new azure_native.avs.Cluster("clusterResource", {
privateCloudName: "string",
resourceGroupName: "string",
sku: {
name: "string",
},
clusterName: "string",
clusterSize: 0,
hosts: ["string"],
});
type: azure-native:avs:Cluster
properties:
clusterName: string
clusterSize: 0
hosts:
- string
privateCloudName: string
resourceGroupName: string
sku:
name: string
Cluster 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 Cluster resource accepts the following input properties:
- Private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Sku
This property is required. Pulumi.Azure Native. AVS. Inputs. Sku - The cluster SKU
- Cluster
Name Changes to this property will trigger replacement.
- Name of the cluster in the private cloud
- Cluster
Size int - The cluster size
- Hosts List<string>
- The hosts
- Private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Sku
This property is required. SkuArgs - The cluster SKU
- Cluster
Name Changes to this property will trigger replacement.
- Name of the cluster in the private cloud
- Cluster
Size int - The cluster size
- Hosts []string
- The hosts
- private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- sku
This property is required. Sku - The cluster SKU
- cluster
Name Changes to this property will trigger replacement.
- Name of the cluster in the private cloud
- cluster
Size Integer - The cluster size
- hosts List<String>
- The hosts
- private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- sku
This property is required. Sku - The cluster SKU
- cluster
Name Changes to this property will trigger replacement.
- Name of the cluster in the private cloud
- cluster
Size number - The cluster size
- hosts string[]
- The hosts
- private_
cloud_ name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- sku
This property is required. SkuArgs - The cluster SKU
- cluster_
name Changes to this property will trigger replacement.
- Name of the cluster in the private cloud
- cluster_
size int - The cluster size
- hosts Sequence[str]
- The hosts
- private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- sku
This property is required. Property Map - The cluster SKU
- cluster
Name Changes to this property will trigger replacement.
- Name of the cluster in the private cloud
- cluster
Size Number - The cluster size
- hosts List<String>
- The hosts
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Cluster
Id int - The identity
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The state of the cluster provisioning
- Type string
- Resource type.
- Cluster
Id int - The identity
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The state of the cluster provisioning
- Type string
- Resource type.
- cluster
Id Integer - The identity
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The state of the cluster provisioning
- type String
- Resource type.
- cluster
Id number - The identity
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - The state of the cluster provisioning
- type string
- Resource type.
- cluster_
id int - The identity
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - The state of the cluster provisioning
- type str
- Resource type.
- cluster
Id Number - The identity
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The state of the cluster provisioning
- type String
- Resource type.
Supporting Types
Sku, SkuArgs
- Name
This property is required. string - The name of the SKU.
- Name
This property is required. string - The name of the SKU.
- name
This property is required. String - The name of the SKU.
- name
This property is required. string - The name of the SKU.
- name
This property is required. str - The name of the SKU.
- name
This property is required. String - The name of the SKU.
SkuResponse, SkuResponseArgs
- Name
This property is required. string - The name of the SKU.
- Name
This property is required. string - The name of the SKU.
- name
This property is required. String - The name of the SKU.
- name
This property is required. string - The name of the SKU.
- name
This property is required. str - The name of the SKU.
- name
This property is required. String - The name of the SKU.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:avs:Cluster cluster1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0