Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
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
})
}
Example coming soon!
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!;
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)
Example coming soon!
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)
}public static CompletableFuture<GetComputePlacementGroupResult> getComputePlacementGroup(GetComputePlacementGroupArgs args, InvokeOptions options)
public static Output<GetComputePlacementGroupResult> getComputePlacementGroup(GetComputePlacementGroupArgs args, InvokeOptions options)
fn::invoke:
function: yandex:index/getComputePlacementGroup:getComputePlacementGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Description string
- Description of the group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Group
Id 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.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Group
Id 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.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- group
Id 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.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- group
Id 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.
- description String
- Description of the group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- group
Id String - The ID of a specific group.
- labels Map<String>
- A set of key/value label pairs assigned to the group.
- name String
- Name of the group.
getComputePlacementGroup Result
The following output properties are available:
- 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
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandexTerraform Provider.
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
