1. Packages
  2. Ucloud Provider
  3. API Docs
  4. IsolationGroup
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.IsolationGroup

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    Provides an Isolation Group resource. The Isolation Group is a logical group of UHost instance, which ensure that each UHost instance within a group is on a different physical machine. Up to seven UHost instance can be added per isolation group in a single availability_zone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const foo = new ucloud.IsolationGroup("foo", {remark: "test"});
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    foo = ucloud.IsolationGroup("foo", remark="test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ucloud.NewIsolationGroup(ctx, "foo", &ucloud.IsolationGroupArgs{
    			Remark: pulumi.String("test"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Ucloud.IsolationGroup("foo", new()
        {
            Remark = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.IsolationGroup;
    import com.pulumi.ucloud.IsolationGroupArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new IsolationGroup("foo", IsolationGroupArgs.builder()
                .remark("test")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: ucloud:IsolationGroup
        properties:
          remark: test
    

    Create IsolationGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IsolationGroup(name: string, args?: IsolationGroupArgs, opts?: CustomResourceOptions);
    @overload
    def IsolationGroup(resource_name: str,
                       args: Optional[IsolationGroupArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsolationGroup(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       isolation_group_id: Optional[str] = None,
                       name: Optional[str] = None,
                       remark: Optional[str] = None)
    func NewIsolationGroup(ctx *Context, name string, args *IsolationGroupArgs, opts ...ResourceOption) (*IsolationGroup, error)
    public IsolationGroup(string name, IsolationGroupArgs? args = null, CustomResourceOptions? opts = null)
    public IsolationGroup(String name, IsolationGroupArgs args)
    public IsolationGroup(String name, IsolationGroupArgs args, CustomResourceOptions options)
    
    type: ucloud:IsolationGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IsolationGroupArgs
    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 IsolationGroupArgs
    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 IsolationGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsolationGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsolationGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var isolationGroupResource = new Ucloud.IsolationGroup("isolationGroupResource", new()
    {
        IsolationGroupId = "string",
        Name = "string",
        Remark = "string",
    });
    
    example, err := ucloud.NewIsolationGroup(ctx, "isolationGroupResource", &ucloud.IsolationGroupArgs{
    	IsolationGroupId: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Remark:           pulumi.String("string"),
    })
    
    var isolationGroupResource = new IsolationGroup("isolationGroupResource", IsolationGroupArgs.builder()
        .isolationGroupId("string")
        .name("string")
        .remark("string")
        .build());
    
    isolation_group_resource = ucloud.IsolationGroup("isolationGroupResource",
        isolation_group_id="string",
        name="string",
        remark="string")
    
    const isolationGroupResource = new ucloud.IsolationGroup("isolationGroupResource", {
        isolationGroupId: "string",
        name: "string",
        remark: "string",
    });
    
    type: ucloud:IsolationGroup
    properties:
        isolationGroupId: string
        name: string
        remark: string
    

    IsolationGroup Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IsolationGroup resource accepts the following input properties:

    IsolationGroupId string
    The ID of the resource isolation group.
    Name string
    Remark string
    The remarks of the isolation group. (Default: "").
    IsolationGroupId string
    The ID of the resource isolation group.
    Name string
    Remark string
    The remarks of the isolation group. (Default: "").
    isolationGroupId String
    The ID of the resource isolation group.
    name String
    remark String
    The remarks of the isolation group. (Default: "").
    isolationGroupId string
    The ID of the resource isolation group.
    name string
    remark string
    The remarks of the isolation group. (Default: "").
    isolation_group_id str
    The ID of the resource isolation group.
    name str
    remark str
    The remarks of the isolation group. (Default: "").
    isolationGroupId String
    The ID of the resource isolation group.
    name String
    remark String
    The remarks of the isolation group. (Default: "").

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IsolationGroup Resource

    Get an existing IsolationGroup 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?: IsolationGroupState, opts?: CustomResourceOptions): IsolationGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            isolation_group_id: Optional[str] = None,
            name: Optional[str] = None,
            remark: Optional[str] = None) -> IsolationGroup
    func GetIsolationGroup(ctx *Context, name string, id IDInput, state *IsolationGroupState, opts ...ResourceOption) (*IsolationGroup, error)
    public static IsolationGroup Get(string name, Input<string> id, IsolationGroupState? state, CustomResourceOptions? opts = null)
    public static IsolationGroup get(String name, Output<String> id, IsolationGroupState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:IsolationGroup    get:      id: ${id}
    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.
    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:
    IsolationGroupId string
    The ID of the resource isolation group.
    Name string
    Remark string
    The remarks of the isolation group. (Default: "").
    IsolationGroupId string
    The ID of the resource isolation group.
    Name string
    Remark string
    The remarks of the isolation group. (Default: "").
    isolationGroupId String
    The ID of the resource isolation group.
    name String
    remark String
    The remarks of the isolation group. (Default: "").
    isolationGroupId string
    The ID of the resource isolation group.
    name string
    remark string
    The remarks of the isolation group. (Default: "").
    isolation_group_id str
    The ID of the resource isolation group.
    name str
    remark str
    The remarks of the isolation group. (Default: "").
    isolationGroupId String
    The ID of the resource isolation group.
    name String
    remark String
    The remarks of the isolation group. (Default: "").

    Import

    Isolation Group can be imported using the id, e.g.

    $ pulumi import ucloud:index/isolationGroup:IsolationGroup example ig-abc123456
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud