Alibaba Cloud v3.66.0 published on Friday, Nov 15, 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 since 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, str]] = 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, pulumi.Input[str]]]] = 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 dictionary
The 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, string>
- 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]string
- 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,String>
- 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]: string}
- 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, str]
- 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<String>
- 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> - A list of Emr Clusters. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Cluster IDS.
- Names List<string>
- A list of Cluster names.
- Total
Count int - The total count of list clusters.
- Cluster
Name string - The name of the emr cluster.
- 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 - The resource group id of the resource.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Clusters
[]Get
Clusters Cluster - A list of Emr Clusters. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Cluster IDS.
- Names []string
- A list of Cluster names.
- Total
Count int - The total count of list clusters.
- Cluster
Name string - The name of the emr cluster.
- Cluster
States []string - Cluster
Types []string - Max
Results int - Name
Regex string - Next
Token string - Output
File string - Payment
Types []string - Resource
Group stringId - The resource group id of the resource.
- map[string]string
- A mapping of tags to assign to the resource.
- clusters
List<Get
Clusters Cluster> - A list of Emr Clusters. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Cluster IDS.
- names List<String>
- A list of Cluster names.
- total
Count Integer - The total count of list clusters.
- cluster
Name String - The name of the emr cluster.
- 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 - The resource group id of the resource.
- Map<String,String>
- A mapping of tags to assign to the resource.
- clusters
Get
Clusters Cluster[] - A list of Emr Clusters. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Cluster IDS.
- names string[]
- A list of Cluster names.
- total
Count number - The total count of list clusters.
- cluster
Name string - The name of the emr cluster.
- cluster
States string[] - cluster
Types string[] - max
Results number - name
Regex string - next
Token string - output
File string - payment
Types string[] - resource
Group stringId - The resource group id of the resource.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- clusters
Sequence[Get
Clusters Cluster] - A list of Emr Clusters. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Cluster IDS.
- names Sequence[str]
- A list of Cluster names.
- total_
count int - The total count of list clusters.
- cluster_
name str - The name of the emr cluster.
- 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 - The resource group id of the resource.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- clusters List<Property Map>
- A list of Emr Clusters. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Cluster IDS.
- names List<String>
- A list of Cluster names.
- total
Count Number - The total count of list clusters.
- cluster
Name String - The name of the emr cluster.
- 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 - The resource group id of the resource.
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
GetClustersCluster
- Cluster
Id string - The first ID of the resource.
- Cluster
Name string - The cluster name.
- 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.
- State
Change Dictionary<string, string>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 cluster name.
- 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.
- State
Change map[string]stringReason - 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 cluster name.
- 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.
- state
Change Map<String,String>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 cluster name.
- 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.
- state
Change {[key: string]: string}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 cluster name.
- 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.
- state_
change_ Mapping[str, str]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 cluster name.
- 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.
- state
Change Map<String>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
alicloud
Terraform Provider.