tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getPlacementGroups
Start a Neo task
Explain and create a tencentcloud.getPlacementGroups resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query placement groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getPlacementGroups({
placementGroupId: "ps-bwvst92h",
name: "tf_example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_placement_groups(placement_group_id="ps-bwvst92h",
name="tf_example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetPlacementGroups(ctx, &tencentcloud.GetPlacementGroupsArgs{
PlacementGroupId: pulumi.StringRef("ps-bwvst92h"),
Name: pulumi.StringRef("tf_example"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetPlacementGroups.Invoke(new()
{
PlacementGroupId = "ps-bwvst92h",
Name = "tf_example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetPlacementGroupsArgs;
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) {
final var example = TencentcloudFunctions.getPlacementGroups(GetPlacementGroupsArgs.builder()
.placementGroupId("ps-bwvst92h")
.name("tf_example")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getPlacementGroups
arguments:
placementGroupId: ps-bwvst92h
name: tf_example
Using getPlacementGroups
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 getPlacementGroups(args: GetPlacementGroupsArgs, opts?: InvokeOptions): Promise<GetPlacementGroupsResult>
function getPlacementGroupsOutput(args: GetPlacementGroupsOutputArgs, opts?: InvokeOptions): Output<GetPlacementGroupsResult>def get_placement_groups(id: Optional[str] = None,
name: Optional[str] = None,
placement_group_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPlacementGroupsResult
def get_placement_groups_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
placement_group_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPlacementGroupsResult]func GetPlacementGroups(ctx *Context, args *GetPlacementGroupsArgs, opts ...InvokeOption) (*GetPlacementGroupsResult, error)
func GetPlacementGroupsOutput(ctx *Context, args *GetPlacementGroupsOutputArgs, opts ...InvokeOption) GetPlacementGroupsResultOutput> Note: This function is named GetPlacementGroups in the Go SDK.
public static class GetPlacementGroups
{
public static Task<GetPlacementGroupsResult> InvokeAsync(GetPlacementGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetPlacementGroupsResult> Invoke(GetPlacementGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPlacementGroupsResult> getPlacementGroups(GetPlacementGroupsArgs args, InvokeOptions options)
public static Output<GetPlacementGroupsResult> getPlacementGroups(GetPlacementGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getPlacementGroups:getPlacementGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name string
- Name of the placement group to be queried.
- Placement
Group stringId - ID of the placement group to be queried.
- Result
Output stringFile - Used to save results.
- Id string
- Name string
- Name of the placement group to be queried.
- Placement
Group stringId - ID of the placement group to be queried.
- Result
Output stringFile - Used to save results.
- id String
- name String
- Name of the placement group to be queried.
- placement
Group StringId - ID of the placement group to be queried.
- result
Output StringFile - Used to save results.
- id string
- name string
- Name of the placement group to be queried.
- placement
Group stringId - ID of the placement group to be queried.
- result
Output stringFile - Used to save results.
- id str
- name str
- Name of the placement group to be queried.
- placement_
group_ strid - ID of the placement group to be queried.
- result_
output_ strfile - Used to save results.
- id String
- name String
- Name of the placement group to be queried.
- placement
Group StringId - ID of the placement group to be queried.
- result
Output StringFile - Used to save results.
getPlacementGroups Result
The following output properties are available:
- Id string
- Placement
Group List<GetLists Placement Groups Placement Group List> - An information list of placement group. Each element contains the following attributes:
- Name string
- Name of the placement group.
- Placement
Group stringId - ID of the placement group.
- Result
Output stringFile
- Id string
- Placement
Group []GetLists Placement Groups Placement Group List - An information list of placement group. Each element contains the following attributes:
- Name string
- Name of the placement group.
- Placement
Group stringId - ID of the placement group.
- Result
Output stringFile
- id String
- placement
Group List<GetLists Placement Groups Placement Group List> - An information list of placement group. Each element contains the following attributes:
- name String
- Name of the placement group.
- placement
Group StringId - ID of the placement group.
- result
Output StringFile
- id string
- placement
Group GetLists Placement Groups Placement Group List[] - An information list of placement group. Each element contains the following attributes:
- name string
- Name of the placement group.
- placement
Group stringId - ID of the placement group.
- result
Output stringFile
- id str
- placement_
group_ Sequence[Getlists Placement Groups Placement Group List] - An information list of placement group. Each element contains the following attributes:
- name str
- Name of the placement group.
- placement_
group_ strid - ID of the placement group.
- result_
output_ strfile
- id String
- placement
Group List<Property Map>Lists - An information list of placement group. Each element contains the following attributes:
- name String
- Name of the placement group.
- placement
Group StringId - ID of the placement group.
- result
Output StringFile
Supporting Types
GetPlacementGroupsPlacementGroupList
- Create
Time string - Creation time of the placement group.
- Current
Num double - Number of hosts in the placement group.
- Cvm
Quota doubleTotal - Maximum number of hosts in the placement group.
- Instance
Ids List<string> - Host IDs in the placement group.
- Name string
- Name of the placement group to be queried.
- Placement
Group stringId - ID of the placement group to be queried.
- Type string
- Type of the placement group.
- Create
Time string - Creation time of the placement group.
- Current
Num float64 - Number of hosts in the placement group.
- Cvm
Quota float64Total - Maximum number of hosts in the placement group.
- Instance
Ids []string - Host IDs in the placement group.
- Name string
- Name of the placement group to be queried.
- Placement
Group stringId - ID of the placement group to be queried.
- Type string
- Type of the placement group.
- create
Time String - Creation time of the placement group.
- current
Num Double - Number of hosts in the placement group.
- cvm
Quota DoubleTotal - Maximum number of hosts in the placement group.
- instance
Ids List<String> - Host IDs in the placement group.
- name String
- Name of the placement group to be queried.
- placement
Group StringId - ID of the placement group to be queried.
- type String
- Type of the placement group.
- create
Time string - Creation time of the placement group.
- current
Num number - Number of hosts in the placement group.
- cvm
Quota numberTotal - Maximum number of hosts in the placement group.
- instance
Ids string[] - Host IDs in the placement group.
- name string
- Name of the placement group to be queried.
- placement
Group stringId - ID of the placement group to be queried.
- type string
- Type of the placement group.
- create_
time str - Creation time of the placement group.
- current_
num float - Number of hosts in the placement group.
- cvm_
quota_ floattotal - Maximum number of hosts in the placement group.
- instance_
ids Sequence[str] - Host IDs in the placement group.
- name str
- Name of the placement group to be queried.
- placement_
group_ strid - ID of the placement group to be queried.
- type str
- Type of the placement group.
- create
Time String - Creation time of the placement group.
- current
Num Number - Number of hosts in the placement group.
- cvm
Quota NumberTotal - Maximum number of hosts in the placement group.
- instance
Ids List<String> - Host IDs in the placement group.
- name String
- Name of the placement group to be queried.
- placement
Group StringId - ID of the placement group to be queried.
- type String
- Type of the placement group.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
