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

Yandex

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

ComputeDiskPlacementGroup

A Disk Placement Group resource. For more information, see the official documentation.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var group1 = new Yandex.ComputeDiskPlacementGroup("group1", new Yandex.ComputeDiskPlacementGroupArgs
        {
            Description = "my description",
            FolderId = "abc*********123",
        });
    }

}
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 {
		_, err := yandex.NewComputeDiskPlacementGroup(ctx, "group1", &yandex.ComputeDiskPlacementGroupArgs{
			Description: pulumi.String("my description"),
			FolderId:    pulumi.String("abc*********123"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

group1 = yandex.ComputeDiskPlacementGroup("group1",
    description="my description",
    folder_id="abc*********123")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const group1 = new yandex.ComputeDiskPlacementGroup("group1", {
    description: "my description",
    folderId: "abc*********123",
});

Create a ComputeDiskPlacementGroup Resource

new ComputeDiskPlacementGroup(name: string, args?: ComputeDiskPlacementGroupArgs, opts?: CustomResourceOptions);
@overload
def ComputeDiskPlacementGroup(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              description: Optional[str] = None,
                              folder_id: Optional[str] = None,
                              labels: Optional[Mapping[str, str]] = None,
                              name: Optional[str] = None,
                              zone: Optional[str] = None)
@overload
def ComputeDiskPlacementGroup(resource_name: str,
                              args: Optional[ComputeDiskPlacementGroupArgs] = None,
                              opts: Optional[ResourceOptions] = None)
func NewComputeDiskPlacementGroup(ctx *Context, name string, args *ComputeDiskPlacementGroupArgs, opts ...ResourceOption) (*ComputeDiskPlacementGroup, error)
public ComputeDiskPlacementGroup(string name, ComputeDiskPlacementGroupArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ComputeDiskPlacementGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ComputeDiskPlacementGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ComputeDiskPlacementGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ComputeDiskPlacementGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ComputeDiskPlacementGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ComputeDiskPlacementGroup resource accepts the following input properties:

Description string
A description of the Disk Placement Group.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Disk Placement Group.
Name string
The name of the Disk Placement Group.
Zone string
ID of the zone where the Disk Placement Group resides.
Description string
A description of the Disk Placement Group.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
Labels map[string]string
A set of key/value label pairs to assign to the Disk Placement Group.
Name string
The name of the Disk Placement Group.
Zone string
ID of the zone where the Disk Placement Group resides.
description string
A description of the Disk Placement Group.
folderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Disk Placement Group.
name string
The name of the Disk Placement Group.
zone string
ID of the zone where the Disk Placement Group resides.
description str
A 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.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Disk Placement Group.
name str
The name of the Disk Placement Group.
zone str
ID of the zone where the Disk Placement Group resides.

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputeDiskPlacementGroup resource produces the following output properties:

CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of the Disk Placement Group.
CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of the Disk Placement Group.
createdAt string
id string
The provider-assigned unique ID for this managed resource.
status string
Status of the Disk Placement Group.
created_at str
id str
The provider-assigned unique ID for this managed resource.
status str
Status of the Disk Placement Group.

Look up an Existing ComputeDiskPlacementGroup Resource

Get an existing ComputeDiskPlacementGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ComputeDiskPlacementGroupState, opts?: CustomResourceOptions): ComputeDiskPlacementGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        folder_id: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        status: Optional[str] = None,
        zone: Optional[str] = None) -> ComputeDiskPlacementGroup
func GetComputeDiskPlacementGroup(ctx *Context, name string, id IDInput, state *ComputeDiskPlacementGroupState, opts ...ResourceOption) (*ComputeDiskPlacementGroup, error)
public static ComputeDiskPlacementGroup Get(string name, Input<string> id, ComputeDiskPlacementGroupState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CreatedAt string
Description string
A description of the Disk Placement Group.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Disk Placement Group.
Name string
The name of the Disk Placement Group.
Status string
Status of the Disk Placement Group.
Zone string
ID of the zone where the Disk Placement Group resides.
CreatedAt string
Description string
A description of the Disk Placement Group.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
Labels map[string]string
A set of key/value label pairs to assign to the Disk Placement Group.
Name string
The name of the Disk Placement Group.
Status string
Status of the Disk Placement Group.
Zone string
ID of the zone where the Disk Placement Group resides.
createdAt string
description string
A description of the Disk Placement Group.
folderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Disk Placement Group.
name string
The name of the Disk Placement Group.
status string
Status of the Disk Placement Group.
zone string
ID of the zone where the Disk Placement Group resides.
created_at str
description str
A 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.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Disk Placement Group.
name str
The name of the Disk Placement Group.
status str
Status of the Disk Placement Group.
zone str
ID of the zone where the Disk Placement Group resides.

Package Details

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