Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

getComputePlacementGroup

Get information about a Yandex Compute Placement group. For more information, see the official documentation.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var myGroup = Output.Create(Yandex.GetComputePlacementGroup.InvokeAsync(new Yandex.GetComputePlacementGroupArgs
        {
            GroupId = "some_group_id",
        }));
        this.PlacementGroupName = myGroup.Apply(myGroup => myGroup.Name);
    }

    [Output("placementGroupName")]
    public Output<string> PlacementGroupName { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "some_group_id"
		myGroup, err := yandex.LookupComputePlacementGroup(ctx, &GetComputePlacementGroupArgs{
			GroupId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("placementGroupName", myGroup.Name)
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

my_group = yandex.get_compute_placement_group(group_id="some_group_id")
pulumi.export("placementGroupName", my_group.name)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const myGroup = pulumi.output(yandex.getComputePlacementGroup({
    groupId: "some_group_id",
}));

export const placementGroupName = myGroup.name!;

Using getComputePlacementGroup

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 getComputePlacementGroup(args: GetComputePlacementGroupArgs, opts?: InvokeOptions): Promise<GetComputePlacementGroupResult>
function getComputePlacementGroupOutput(args: GetComputePlacementGroupOutputArgs, opts?: InvokeOptions): Output<GetComputePlacementGroupResult>
def get_compute_placement_group(description: Optional[str] = None,
                                folder_id: Optional[str] = None,
                                group_id: Optional[str] = None,
                                labels: Optional[Mapping[str, str]] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetComputePlacementGroupResult
def get_compute_placement_group_output(description: Optional[pulumi.Input[str]] = None,
                                folder_id: Optional[pulumi.Input[str]] = None,
                                group_id: Optional[pulumi.Input[str]] = None,
                                labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetComputePlacementGroupResult]
func LookupComputePlacementGroup(ctx *Context, args *LookupComputePlacementGroupArgs, opts ...InvokeOption) (*LookupComputePlacementGroupResult, error)
func LookupComputePlacementGroupOutput(ctx *Context, args *LookupComputePlacementGroupOutputArgs, opts ...InvokeOption) LookupComputePlacementGroupResultOutput

> Note: This function is named LookupComputePlacementGroup in the Go SDK.

public static class GetComputePlacementGroup 
{
    public static Task<GetComputePlacementGroupResult> InvokeAsync(GetComputePlacementGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetComputePlacementGroupResult> Invoke(GetComputePlacementGroupInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Description string
Description of the group.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
GroupId string
The ID of a specific group.
Labels Dictionary<string, string>
A set of key/value label pairs assigned to the group.
Name string
Name of the group.
Description string
Description of the group.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
GroupId string
The ID of a specific group.
Labels map[string]string
A set of key/value label pairs assigned to the group.
Name string
Name of the group.
description string
Description of the group.
folderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
groupId string
The ID of a specific group.
labels {[key: string]: string}
A set of key/value label pairs assigned to the group.
name string
Name of the group.
description str
Description of the group.
folder_id str
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
group_id str
The ID of a specific group.
labels Mapping[str, str]
A set of key/value label pairs assigned to the group.
name str
Name of the group.

getComputePlacementGroup Result

The following output properties are available:

CreatedAt string
Placement group creation timestamp.
FolderId string
GroupId string
Id string
The provider-assigned unique ID for this managed resource.
Description string
Description of the group.
Labels Dictionary<string, string>
A set of key/value label pairs assigned to the group.
Name string
CreatedAt string
Placement group creation timestamp.
FolderId string
GroupId string
Id string
The provider-assigned unique ID for this managed resource.
Description string
Description of the group.
Labels map[string]string
A set of key/value label pairs assigned to the group.
Name string
createdAt string
Placement group creation timestamp.
folderId string
groupId string
id string
The provider-assigned unique ID for this managed resource.
description string
Description of the group.
labels {[key: string]: string}
A set of key/value label pairs assigned to the group.
name string
created_at str
Placement group creation timestamp.
folder_id str
group_id str
id str
The provider-assigned unique ID for this managed resource.
description str
Description of the group.
labels Mapping[str, str]
A set of key/value label pairs assigned to the group.
name str

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.