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 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
})
}
Example coming soon!
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!;
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)
Example 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)
public static Output<GetComputeDiskPlacementGroupResult> getComputeDiskPlacementGroup(GetComputeDiskPlacementGroupArgs args, InvokeOptions options)
fn::invoke:
function: yandex:index/getComputeDiskPlacementGroup:getComputeDiskPlacementGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Description string
- Description of the Disk Placement 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 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.
- 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 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.
- 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 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.
- 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 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.
- 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 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:
- Created
At string - The creation timestamp of the Disk Placement Group.
- Folder
Id string - Group
Id 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.
- Created
At string - The creation timestamp of the Disk Placement Group.
- Folder
Id string - Group
Id 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.
- created
At String - The creation timestamp of the Disk Placement Group.
- folder
Id String - group
Id 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.
- created
At string - The creation timestamp of the Disk Placement Group.
- folder
Id string - group
Id 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.
- created
At String - The creation timestamp of the Disk Placement Group.
- folder
Id String - group
Id 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
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
