opentelekomcloud.SwrOrganizationV2
Explore with Pulumi AI
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
to64
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 stringV2Id - Timeouts
Swr
Organization V2Timeouts
- Name string
- The name of the organization (namespace) to be created.
Enter
1
to64
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 stringV2Id - Timeouts
Swr
Organization V2Timeouts Args
- name String
- The name of the organization (namespace) to be created.
Enter
1
to64
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 StringV2Id - timeouts
Swr
Organization V2Timeouts
- name string
- The name of the organization (namespace) to be created.
Enter
1
to64
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 stringV2Id - timeouts
Swr
Organization V2Timeouts
- name str
- The name of the organization (namespace) to be created.
Enter
1
to64
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_ strv2_ id - timeouts
Swr
Organization V2Timeouts Args
- name String
- The name of the organization (namespace) to be created.
Enter
1
to64
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 StringV2Id - 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
, or7
.7
: manage3
: write1
: read - Creator
Name string - Username of the organization creator.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id double - Numeric ID of the organization.
- Auth float64
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - Creator
Name string - Username of the organization creator.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id float64 - Numeric ID of the organization.
- auth Double
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - creator
Name String - Username of the organization creator.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id Double - Numeric ID of the organization.
- auth number
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - creator
Name string - Username of the organization creator.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id number - Numeric ID of the organization.
- auth float
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: 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
, or7
.7
: manage3
: write1
: read - creator
Name String - Username of the organization creator.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id 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.
- Auth double
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - Creator
Name string - Username of the organization creator.
- Name string
- The name of the organization (namespace) to be created.
Enter
1
to64
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 double - Numeric ID of the organization.
- Swr
Organization stringV2Id - Timeouts
Swr
Organization V2Timeouts
- Auth float64
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - Creator
Name string - Username of the organization creator.
- Name string
- The name of the organization (namespace) to be created.
Enter
1
to64
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 float64 - Numeric ID of the organization.
- Swr
Organization stringV2Id - Timeouts
Swr
Organization V2Timeouts Args
- auth Double
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - creator
Name String - Username of the organization creator.
- name String
- The name of the organization (namespace) to be created.
Enter
1
to64
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 Double - Numeric ID of the organization.
- swr
Organization StringV2Id - timeouts
Swr
Organization V2Timeouts
- auth number
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - creator
Name string - Username of the organization creator.
- name string
- The name of the organization (namespace) to be created.
Enter
1
to64
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 number - Numeric ID of the organization.
- swr
Organization stringV2Id - timeouts
Swr
Organization V2Timeouts
- auth float
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - creator_
name str - Username of the organization creator.
- name str
- The name of the organization (namespace) to be created.
Enter
1
to64
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_ strv2_ id - timeouts
Swr
Organization V2Timeouts Args
- auth Number
- User permission. The value can be
1
,3
, or7
.7
: manage3
: write1
: read - creator
Name String - Username of the organization creator.
- name String
- The name of the organization (namespace) to be created.
Enter
1
to64
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 Number - Numeric ID of the organization.
- swr
Organization StringV2Id - timeouts Property Map
Supporting Types
SwrOrganizationV2Timeouts, SwrOrganizationV2TimeoutsArgs
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.