Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.emrv2.getClusters
Explore with Pulumi AI
This data source provides the Emr Clusters of the current Alibaba Cloud user.
NOTE: Available in v1.199.0+.
Using getClusters
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
function getClustersOutput(args: GetClustersOutputArgs, opts?: InvokeOptions): Output<GetClustersResult>def get_clusters(cluster_name: Optional[str] = None,
                 cluster_states: Optional[Sequence[str]] = None,
                 cluster_types: Optional[Sequence[str]] = None,
                 ids: Optional[Sequence[str]] = None,
                 max_results: Optional[int] = None,
                 name_regex: Optional[str] = None,
                 next_token: Optional[str] = None,
                 output_file: Optional[str] = None,
                 payment_types: Optional[Sequence[str]] = None,
                 resource_group_id: Optional[str] = None,
                 tags: Optional[Mapping[str, Any]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetClustersResult
def get_clusters_output(cluster_name: Optional[pulumi.Input[str]] = None,
                 cluster_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 cluster_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 max_results: Optional[pulumi.Input[int]] = None,
                 name_regex: Optional[pulumi.Input[str]] = None,
                 next_token: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 payment_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 resource_group_id: Optional[pulumi.Input[str]] = None,
                 tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetClustersResult]func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
func GetClustersOutput(ctx *Context, args *GetClustersOutputArgs, opts ...InvokeOption) GetClustersResultOutput> Note: This function is named GetClusters in the Go SDK.
public static class GetClusters 
{
    public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
    public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:emrv2/getClusters:getClusters
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Cluster
Name string - The cluster name.
 - Cluster
States List<string> - The cluster states.
 - Cluster
Types List<string> - The cluster types.
 - Ids List<string>
 - A list of Cluster IDS.
 - Max
Results int - The max results is used to list clusters for next page.
 - Name
Regex string - A regex string to filter results by Cluster name.
 - Next
Token string - The next token is used to list clusters for next page.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Payment
Types List<string> - The cluster payment types.
 - Resource
Group stringId  - The Resource Group ID.
 - Dictionary<string, object>
 - A mapping of tags to assign to the resource.
 
- Cluster
Name string - The cluster name.
 - Cluster
States []string - The cluster states.
 - Cluster
Types []string - The cluster types.
 - Ids []string
 - A list of Cluster IDS.
 - Max
Results int - The max results is used to list clusters for next page.
 - Name
Regex string - A regex string to filter results by Cluster name.
 - Next
Token string - The next token is used to list clusters for next page.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Payment
Types []string - The cluster payment types.
 - Resource
Group stringId  - The Resource Group ID.
 - map[string]interface{}
 - A mapping of tags to assign to the resource.
 
- cluster
Name String - The cluster name.
 - cluster
States List<String> - The cluster states.
 - cluster
Types List<String> - The cluster types.
 - ids List<String>
 - A list of Cluster IDS.
 - max
Results Integer - The max results is used to list clusters for next page.
 - name
Regex String - A regex string to filter results by Cluster name.
 - next
Token String - The next token is used to list clusters for next page.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - payment
Types List<String> - The cluster payment types.
 - resource
Group StringId  - The Resource Group ID.
 - Map<String,Object>
 - A mapping of tags to assign to the resource.
 
- cluster
Name string - The cluster name.
 - cluster
States string[] - The cluster states.
 - cluster
Types string[] - The cluster types.
 - ids string[]
 - A list of Cluster IDS.
 - max
Results number - The max results is used to list clusters for next page.
 - name
Regex string - A regex string to filter results by Cluster name.
 - next
Token string - The next token is used to list clusters for next page.
 - output
File string - File name where to save data source results (after running 
pulumi preview). - payment
Types string[] - The cluster payment types.
 - resource
Group stringId  - The Resource Group ID.
 - {[key: string]: any}
 - A mapping of tags to assign to the resource.
 
- cluster_
name str - The cluster name.
 - cluster_
states Sequence[str] - The cluster states.
 - cluster_
types Sequence[str] - The cluster types.
 - ids Sequence[str]
 - A list of Cluster IDS.
 - max_
results int - The max results is used to list clusters for next page.
 - name_
regex str - A regex string to filter results by Cluster name.
 - next_
token str - The next token is used to list clusters for next page.
 - output_
file str - File name where to save data source results (after running 
pulumi preview). - payment_
types Sequence[str] - The cluster payment types.
 - resource_
group_ strid  - The Resource Group ID.
 - Mapping[str, Any]
 - A mapping of tags to assign to the resource.
 
- cluster
Name String - The cluster name.
 - cluster
States List<String> - The cluster states.
 - cluster
Types List<String> - The cluster types.
 - ids List<String>
 - A list of Cluster IDS.
 - max
Results Number - The max results is used to list clusters for next page.
 - name
Regex String - A regex string to filter results by Cluster name.
 - next
Token String - The next token is used to list clusters for next page.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - payment
Types List<String> - The cluster payment types.
 - resource
Group StringId  - The Resource Group ID.
 - Map<Any>
 - A mapping of tags to assign to the resource.
 
getClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. Emrv2. Outputs. Get Clusters Cluster>  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - Names List<string>
 - Total
Count int - Cluster
Name string - Cluster
States List<string> - Cluster
Types List<string> - Max
Results int - Name
Regex string - Next
Token string - Output
File string - Payment
Types List<string> - Resource
Group stringId  - Dictionary<string, object>
 
- Clusters
[]Get
Clusters Cluster  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Names []string
 - Total
Count int - Cluster
Name string - Cluster
States []string - Cluster
Types []string - Max
Results int - Name
Regex string - Next
Token string - Output
File string - Payment
Types []string - Resource
Group stringId  - map[string]interface{}
 
- clusters
List<Get
Clusters Cluster>  - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - total
Count Integer - cluster
Name String - cluster
States List<String> - cluster
Types List<String> - max
Results Integer - name
Regex String - next
Token String - output
File String - payment
Types List<String> - resource
Group StringId  - Map<String,Object>
 
- clusters
Get
Clusters Cluster[]  - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - names string[]
 - total
Count number - cluster
Name string - cluster
States string[] - cluster
Types string[] - max
Results number - name
Regex string - next
Token string - output
File string - payment
Types string[] - resource
Group stringId  - {[key: string]: any}
 
- clusters
Sequence[Get
Clusters Cluster]  - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - names Sequence[str]
 - total_
count int - cluster_
name str - cluster_
states Sequence[str] - cluster_
types Sequence[str] - max_
results int - name_
regex str - next_
token str - output_
file str - payment_
types Sequence[str] - resource_
group_ strid  - Mapping[str, Any]
 
- clusters List<Property Map>
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - total
Count Number - cluster
Name String - cluster
States List<String> - cluster
Types List<String> - max
Results Number - name
Regex String - next
Token String - output
File String - payment
Types List<String> - resource
Group StringId  - Map<Any>
 
Supporting Types
GetClustersCluster  
- Cluster
Id string - The first ID of the resource.
 - Cluster
Name string - The name of the emr cluster.
 - Cluster
State string - The state of the emr cluster.
 - Cluster
Type string - The type of the emr cluster.
 - Create
Time string - The creation time of the resource.
 - Emr
Default stringRole  - The ecs default role belongs to this emr cluster.
 - End
Time string - The end time of the resource.
 - Expire
Time string - The expire time of the resource.
 - Payment
Type string - The payment type of the emr cluster.
 - Ready
Time string - The ready time of the resource.
 - Release
Version string - The release version of the resource.
 - Resource
Group stringId  - The resource group id of the resource.
 - State
Change Dictionary<string, object>Reason  - The cluster state change reason.
 - 
List<Pulumi.
Ali Cloud. Emrv2. Inputs. Get Clusters Cluster Tag>  - A mapping of tags to assign to the resource.
 
- Cluster
Id string - The first ID of the resource.
 - Cluster
Name string - The name of the emr cluster.
 - Cluster
State string - The state of the emr cluster.
 - Cluster
Type string - The type of the emr cluster.
 - Create
Time string - The creation time of the resource.
 - Emr
Default stringRole  - The ecs default role belongs to this emr cluster.
 - End
Time string - The end time of the resource.
 - Expire
Time string - The expire time of the resource.
 - Payment
Type string - The payment type of the emr cluster.
 - Ready
Time string - The ready time of the resource.
 - Release
Version string - The release version of the resource.
 - Resource
Group stringId  - The resource group id of the resource.
 - State
Change map[string]interface{}Reason  - The cluster state change reason.
 - 
[]Get
Clusters Cluster Tag  - A mapping of tags to assign to the resource.
 
- cluster
Id String - The first ID of the resource.
 - cluster
Name String - The name of the emr cluster.
 - cluster
State String - The state of the emr cluster.
 - cluster
Type String - The type of the emr cluster.
 - create
Time String - The creation time of the resource.
 - emr
Default StringRole  - The ecs default role belongs to this emr cluster.
 - end
Time String - The end time of the resource.
 - expire
Time String - The expire time of the resource.
 - payment
Type String - The payment type of the emr cluster.
 - ready
Time String - The ready time of the resource.
 - release
Version String - The release version of the resource.
 - resource
Group StringId  - The resource group id of the resource.
 - state
Change Map<String,Object>Reason  - The cluster state change reason.
 - 
List<Get
Clusters Cluster Tag>  - A mapping of tags to assign to the resource.
 
- cluster
Id string - The first ID of the resource.
 - cluster
Name string - The name of the emr cluster.
 - cluster
State string - The state of the emr cluster.
 - cluster
Type string - The type of the emr cluster.
 - create
Time string - The creation time of the resource.
 - emr
Default stringRole  - The ecs default role belongs to this emr cluster.
 - end
Time string - The end time of the resource.
 - expire
Time string - The expire time of the resource.
 - payment
Type string - The payment type of the emr cluster.
 - ready
Time string - The ready time of the resource.
 - release
Version string - The release version of the resource.
 - resource
Group stringId  - The resource group id of the resource.
 - state
Change {[key: string]: any}Reason  - The cluster state change reason.
 - 
Get
Clusters Cluster Tag[]  - A mapping of tags to assign to the resource.
 
- cluster_
id str - The first ID of the resource.
 - cluster_
name str - The name of the emr cluster.
 - cluster_
state str - The state of the emr cluster.
 - cluster_
type str - The type of the emr cluster.
 - create_
time str - The creation time of the resource.
 - emr_
default_ strrole  - The ecs default role belongs to this emr cluster.
 - end_
time str - The end time of the resource.
 - expire_
time str - The expire time of the resource.
 - payment_
type str - The payment type of the emr cluster.
 - ready_
time str - The ready time of the resource.
 - release_
version str - The release version of the resource.
 - resource_
group_ strid  - The resource group id of the resource.
 - state_
change_ Mapping[str, Any]reason  - The cluster state change reason.
 - 
Sequence[Get
Clusters Cluster Tag]  - A mapping of tags to assign to the resource.
 
- cluster
Id String - The first ID of the resource.
 - cluster
Name String - The name of the emr cluster.
 - cluster
State String - The state of the emr cluster.
 - cluster
Type String - The type of the emr cluster.
 - create
Time String - The creation time of the resource.
 - emr
Default StringRole  - The ecs default role belongs to this emr cluster.
 - end
Time String - The end time of the resource.
 - expire
Time String - The expire time of the resource.
 - payment
Type String - The payment type of the emr cluster.
 - ready
Time String - The ready time of the resource.
 - release
Version String - The release version of the resource.
 - resource
Group StringId  - The resource group id of the resource.
 - state
Change Map<Any>Reason  - The cluster state change reason.
 - List<Property Map>
 - A mapping of tags to assign to the resource.
 
GetClustersClusterTag   
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.