Cluster
Create a Cluster Resource
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);def Cluster(resource_name, opts=None, cidr_block=None, disk_category=None, disk_size=None, image_id=None, instance_type=None, is_outdated=None, name=None, name_prefix=None, need_slb=None, node_number=None, password=None, release_eip=None, size=None, vswitch_id=None, __props__=None);func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Cluster resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Agent
Version string - Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
List<Pulumi.
Ali Cloud. CS. Outputs. Cluster Node> - Security
Group stringId - Slb
Id string - Vpc
Id string
- Agent
Version string - Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
[]Cluster
Node - Security
Group stringId - Slb
Id string - Vpc
Id string
- agent
Version string - id string
- The provider-assigned unique ID for this managed resource.
- nodes
Cluster
Node[] - security
Group stringId - slb
Id string - vpc
Id string
- agent_
version str - id str
- The provider-assigned unique ID for this managed resource.
- nodes
List[Cluster
Node] - security_
group_ strid - slb_
id str - vpc_
id str
Look up an Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Clusterstatic get(resource_name, id, opts=None, agent_version=None, cidr_block=None, disk_category=None, disk_size=None, image_id=None, instance_type=None, is_outdated=None, name=None, name_prefix=None, need_slb=None, node_number=None, nodes=None, password=None, release_eip=None, security_group_id=None, size=None, slb_id=None, vpc_id=None, vswitch_id=None, __props__=None);func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Agent
Version string - Cidr
Block string - Disk
Category string - Disk
Size int - Image
Id string - Instance
Type string - Is
Outdated bool - Name string
- Name
Prefix string - Need
Slb bool - Node
Number int - Nodes
List<Pulumi.
Ali Cloud. CS. Inputs. Cluster Node Args> - Password string
- Release
Eip bool - Security
Group stringId - Size int
- Slb
Id string - Vpc
Id string - Vswitch
Id string
- agent
Version string - cidr
Block string - disk
Category string - disk
Size number - image
Id string - instance
Type string - is
Outdated boolean - name string
- name
Prefix string - need
Slb boolean - node
Number number - nodes
Cluster
Node[] - password string
- release
Eip boolean - security
Group stringId - size number
- slb
Id string - vpc
Id string - vswitch
Id string
Supporting Types
ClusterNode
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.