1. Packages
  2. Yandex
  3. API Docs
  4. getComputeDiskPlacementGroup
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getComputeDiskPlacementGroup

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Get information about a Yandex Compute Disk 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.GetComputeDiskPlacementGroup.InvokeAsync(new Yandex.GetComputeDiskPlacementGroupArgs
            {
                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.LookupComputeDiskPlacementGroup(ctx, &GetComputeDiskPlacementGroupArgs{
    			GroupId: &opt0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("placementGroupName", myGroup.Name)
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_yandex as yandex
    
    my_group = yandex.get_compute_disk_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.getComputeDiskPlacementGroup({
        groupId: "some_group_id",
    }));
    
    export const placementGroupName = myGroup.name!;
    

    Coming soon!

    Using getComputeDiskPlacementGroup

    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 getComputeDiskPlacementGroup(args: GetComputeDiskPlacementGroupArgs, opts?: InvokeOptions): Promise<GetComputeDiskPlacementGroupResult>
    function getComputeDiskPlacementGroupOutput(args: GetComputeDiskPlacementGroupOutputArgs, opts?: InvokeOptions): Output<GetComputeDiskPlacementGroupResult>
    def get_compute_disk_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,
                                         zone: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetComputeDiskPlacementGroupResult
    def get_compute_disk_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,
                                         zone: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetComputeDiskPlacementGroupResult]
    func LookupComputeDiskPlacementGroup(ctx *Context, args *LookupComputeDiskPlacementGroupArgs, opts ...InvokeOption) (*LookupComputeDiskPlacementGroupResult, error)
    func LookupComputeDiskPlacementGroupOutput(ctx *Context, args *LookupComputeDiskPlacementGroupOutputArgs, opts ...InvokeOption) LookupComputeDiskPlacementGroupResultOutput

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

    public static class GetComputeDiskPlacementGroup 
    {
        public static Task<GetComputeDiskPlacementGroupResult> InvokeAsync(GetComputeDiskPlacementGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeDiskPlacementGroupResult> Invoke(GetComputeDiskPlacementGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeDiskPlacementGroupResult> getComputeDiskPlacementGroup(GetComputeDiskPlacementGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getComputeDiskPlacementGroup:getComputeDiskPlacementGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Description of the Disk Placement 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 Disk Placement Group.
    Name string
    Name of the group.
    Zone string
    ID of the zone where the Disk Placement Group resides.
    Description string
    Description of the Disk Placement 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 Disk Placement Group.
    Name string
    Name of the group.
    Zone string
    ID of the zone where the Disk Placement Group resides.
    description String
    Description of the Disk Placement 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 Disk Placement Group.
    name String
    Name of the group.
    zone String
    ID of the zone where the Disk Placement Group resides.
    description string
    Description of the Disk Placement 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 Disk Placement Group.
    name string
    Name of the group.
    zone string
    ID of the zone where the Disk Placement Group resides.
    description str
    Description of the Disk Placement 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 Disk Placement Group.
    name str
    Name of the group.
    zone str
    ID of the zone where the Disk Placement Group resides.
    description String
    Description of the Disk Placement 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>
    A set of key/value label pairs assigned to the Disk Placement Group.
    name String
    Name of the group.
    zone String
    ID of the zone where the Disk Placement Group resides.

    getComputeDiskPlacementGroup Result

    The following output properties are available:

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

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi