1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. SwrOrganizationV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.SwrOrganizationV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for SWR organization you can get at documentation portal

    Manages the SWR organization resource within Open Telekom Cloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const org1 = new opentelekomcloud.SwrOrganizationV2("org1", {});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    org1 = opentelekomcloud.SwrOrganizationV2("org1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewSwrOrganizationV2(ctx, "org1", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var org1 = new Opentelekomcloud.SwrOrganizationV2("org1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.SwrOrganizationV2;
    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 org1 = new SwrOrganizationV2("org1");
    
        }
    }
    
    resources:
      org1:
        type: opentelekomcloud:SwrOrganizationV2
    

    Create SwrOrganizationV2 Resource

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

    Constructor syntax

    new SwrOrganizationV2(name: string, args?: SwrOrganizationV2Args, opts?: CustomResourceOptions);
    @overload
    def SwrOrganizationV2(resource_name: str,
                          args: Optional[SwrOrganizationV2Args] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwrOrganizationV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          name: Optional[str] = None,
                          swr_organization_v2_id: Optional[str] = None,
                          timeouts: Optional[SwrOrganizationV2TimeoutsArgs] = None)
    func NewSwrOrganizationV2(ctx *Context, name string, args *SwrOrganizationV2Args, opts ...ResourceOption) (*SwrOrganizationV2, error)
    public SwrOrganizationV2(string name, SwrOrganizationV2Args? args = null, CustomResourceOptions? opts = null)
    public SwrOrganizationV2(String name, SwrOrganizationV2Args args)
    public SwrOrganizationV2(String name, SwrOrganizationV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:SwrOrganizationV2
    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 SwrOrganizationV2Args
    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 SwrOrganizationV2Args
    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 SwrOrganizationV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwrOrganizationV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwrOrganizationV2Args
    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 swrOrganizationV2Resource = new Opentelekomcloud.SwrOrganizationV2("swrOrganizationV2Resource", new()
    {
        Name = "string",
        SwrOrganizationV2Id = "string",
        Timeouts = new Opentelekomcloud.Inputs.SwrOrganizationV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := opentelekomcloud.NewSwrOrganizationV2(ctx, "swrOrganizationV2Resource", &opentelekomcloud.SwrOrganizationV2Args{
    	Name:                pulumi.String("string"),
    	SwrOrganizationV2Id: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.SwrOrganizationV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var swrOrganizationV2Resource = new SwrOrganizationV2("swrOrganizationV2Resource", SwrOrganizationV2Args.builder()
        .name("string")
        .swrOrganizationV2Id("string")
        .timeouts(SwrOrganizationV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    swr_organization_v2_resource = opentelekomcloud.SwrOrganizationV2("swrOrganizationV2Resource",
        name="string",
        swr_organization_v2_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const swrOrganizationV2Resource = new opentelekomcloud.SwrOrganizationV2("swrOrganizationV2Resource", {
        name: "string",
        swrOrganizationV2Id: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: opentelekomcloud:SwrOrganizationV2
    properties:
        name: string
        swrOrganizationV2Id: string
        timeouts:
            create: string
            delete: string
    

    SwrOrganizationV2 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 SwrOrganizationV2 resource accepts the following input properties:

    Name string
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    SwrOrganizationV2Id string
    Timeouts SwrOrganizationV2Timeouts
    Name string
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    SwrOrganizationV2Id string
    Timeouts SwrOrganizationV2TimeoutsArgs
    name String
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    swrOrganizationV2Id String
    timeouts SwrOrganizationV2Timeouts
    name string
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    swrOrganizationV2Id string
    timeouts SwrOrganizationV2Timeouts
    name str
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    swr_organization_v2_id str
    timeouts SwrOrganizationV2TimeoutsArgs
    name String
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    swrOrganizationV2Id String
    timeouts Property Map

    Outputs

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

    Auth double
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    CreatorName string
    Username of the organization creator.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId double
    Numeric ID of the organization.
    Auth float64
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    CreatorName string
    Username of the organization creator.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId float64
    Numeric ID of the organization.
    auth Double
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName String
    Username of the organization creator.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId Double
    Numeric ID of the organization.
    auth number
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName string
    Username of the organization creator.
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId number
    Numeric ID of the organization.
    auth float
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creator_name str
    Username of the organization creator.
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id float
    Numeric ID of the organization.
    auth Number
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName String
    Username of the organization creator.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId Number
    Numeric ID of the organization.

    Look up Existing SwrOrganizationV2 Resource

    Get an existing SwrOrganizationV2 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?: SwrOrganizationV2State, opts?: CustomResourceOptions): SwrOrganizationV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auth: Optional[float] = None,
            creator_name: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[float] = None,
            swr_organization_v2_id: Optional[str] = None,
            timeouts: Optional[SwrOrganizationV2TimeoutsArgs] = None) -> SwrOrganizationV2
    func GetSwrOrganizationV2(ctx *Context, name string, id IDInput, state *SwrOrganizationV2State, opts ...ResourceOption) (*SwrOrganizationV2, error)
    public static SwrOrganizationV2 Get(string name, Input<string> id, SwrOrganizationV2State? state, CustomResourceOptions? opts = null)
    public static SwrOrganizationV2 get(String name, Output<String> id, SwrOrganizationV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:SwrOrganizationV2    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:
    Auth double
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    CreatorName string
    Username of the organization creator.
    Name string
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    OrganizationId double
    Numeric ID of the organization.
    SwrOrganizationV2Id string
    Timeouts SwrOrganizationV2Timeouts
    Auth float64
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    CreatorName string
    Username of the organization creator.
    Name string
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    OrganizationId float64
    Numeric ID of the organization.
    SwrOrganizationV2Id string
    Timeouts SwrOrganizationV2TimeoutsArgs
    auth Double
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName String
    Username of the organization creator.
    name String
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    organizationId Double
    Numeric ID of the organization.
    swrOrganizationV2Id String
    timeouts SwrOrganizationV2Timeouts
    auth number
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName string
    Username of the organization creator.
    name string
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    organizationId number
    Numeric ID of the organization.
    swrOrganizationV2Id string
    timeouts SwrOrganizationV2Timeouts
    auth float
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creator_name str
    Username of the organization creator.
    name str
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    organization_id float
    Numeric ID of the organization.
    swr_organization_v2_id str
    timeouts SwrOrganizationV2TimeoutsArgs
    auth Number
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName String
    Username of the organization creator.
    name String
    The name of the organization (namespace) to be created. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.
    organizationId Number
    Numeric ID of the organization.
    swrOrganizationV2Id String
    timeouts Property Map

    Supporting Types

    SwrOrganizationV2Timeouts, SwrOrganizationV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Organizations can be imported using the name, e.g.

    $ pulumi import opentelekomcloud:index/swrOrganizationV2:SwrOrganizationV2 org_1 organization_1
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud