1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. rdc
  5. Organization
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.rdc.Organization

Explore with Pulumi AI

Provides a RDC Organization resource.

For information about RDC Organization and how to use it, see What is Organization.

NOTE: Available since v1.137.0.

DEPRECATED: This resource has been deprecated from version 1.238.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.rdc.Organization("example", {
    organizationName: "example_value",
    source: "example_value",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.rdc.Organization("example",
    organization_name="example_value",
    source="example_value")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rdc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rdc.NewOrganization(ctx, "example", &rdc.OrganizationArgs{
			OrganizationName: pulumi.String("example_value"),
			Source:           pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = new AliCloud.Rdc.Organization("example", new()
    {
        OrganizationName = "example_value",
        Source = "example_value",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rdc.Organization;
import com.pulumi.alicloud.rdc.OrganizationArgs;
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 example = new Organization("example", OrganizationArgs.builder()
            .organizationName("example_value")
            .source("example_value")
            .build());

    }
}
Copy
resources:
  example:
    type: alicloud:rdc:Organization
    properties:
      organizationName: example_value
      source: example_value
Copy

Create Organization Resource

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

Constructor syntax

new Organization(name: string, args: OrganizationArgs, opts?: CustomResourceOptions);
@overload
def Organization(resource_name: str,
                 args: OrganizationArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def Organization(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 organization_name: Optional[str] = None,
                 source: Optional[str] = None,
                 desired_member_count: Optional[int] = None,
                 real_pk: Optional[str] = None)
func NewOrganization(ctx *Context, name string, args OrganizationArgs, opts ...ResourceOption) (*Organization, error)
public Organization(string name, OrganizationArgs args, CustomResourceOptions? opts = null)
public Organization(String name, OrganizationArgs args)
public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
type: alicloud:rdc:Organization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationArgs
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 organizationResource = new AliCloud.Rdc.Organization("organizationResource", new()
{
    OrganizationName = "string",
    Source = "string",
    DesiredMemberCount = 0,
    RealPk = "string",
});
Copy
example, err := rdc.NewOrganization(ctx, "organizationResource", &rdc.OrganizationArgs{
	OrganizationName:   pulumi.String("string"),
	Source:             pulumi.String("string"),
	DesiredMemberCount: pulumi.Int(0),
	RealPk:             pulumi.String("string"),
})
Copy
var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()
    .organizationName("string")
    .source("string")
    .desiredMemberCount(0)
    .realPk("string")
    .build());
Copy
organization_resource = alicloud.rdc.Organization("organizationResource",
    organization_name="string",
    source="string",
    desired_member_count=0,
    real_pk="string")
Copy
const organizationResource = new alicloud.rdc.Organization("organizationResource", {
    organizationName: "string",
    source: "string",
    desiredMemberCount: 0,
    realPk: "string",
});
Copy
type: alicloud:rdc:Organization
properties:
    desiredMemberCount: 0
    organizationName: string
    realPk: string
    source: string
Copy

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

OrganizationName
This property is required.
Changes to this property will trigger replacement.
string
Company name.
Source This property is required. string
This is organization source information
DesiredMemberCount int
The desired member count.
RealPk string
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
OrganizationName
This property is required.
Changes to this property will trigger replacement.
string
Company name.
Source This property is required. string
This is organization source information
DesiredMemberCount int
The desired member count.
RealPk string
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
organizationName
This property is required.
Changes to this property will trigger replacement.
String
Company name.
source This property is required. String
This is organization source information
desiredMemberCount Integer
The desired member count.
realPk String
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
organizationName
This property is required.
Changes to this property will trigger replacement.
string
Company name.
source This property is required. string
This is organization source information
desiredMemberCount number
The desired member count.
realPk string
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
organization_name
This property is required.
Changes to this property will trigger replacement.
str
Company name.
source This property is required. str
This is organization source information
desired_member_count int
The desired member count.
real_pk str
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
organizationName
This property is required.
Changes to this property will trigger replacement.
String
Company name.
source This property is required. String
This is organization source information
desiredMemberCount Number
The desired member count.
realPk String
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk

Outputs

All input properties are implicitly available as output properties. Additionally, the Organization 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 Organization Resource

Get an existing Organization 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?: OrganizationState, opts?: CustomResourceOptions): Organization
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        desired_member_count: Optional[int] = None,
        organization_name: Optional[str] = None,
        real_pk: Optional[str] = None,
        source: Optional[str] = None) -> Organization
func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
resources:  _:    type: alicloud:rdc:Organization    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DesiredMemberCount int
The desired member count.
OrganizationName Changes to this property will trigger replacement. string
Company name.
RealPk string
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
Source string
This is organization source information
DesiredMemberCount int
The desired member count.
OrganizationName Changes to this property will trigger replacement. string
Company name.
RealPk string
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
Source string
This is organization source information
desiredMemberCount Integer
The desired member count.
organizationName Changes to this property will trigger replacement. String
Company name.
realPk String
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
source String
This is organization source information
desiredMemberCount number
The desired member count.
organizationName Changes to this property will trigger replacement. string
Company name.
realPk string
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
source string
This is organization source information
desired_member_count int
The desired member count.
organization_name Changes to this property will trigger replacement. str
Company name.
real_pk str
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
source str
This is organization source information
desiredMemberCount Number
The desired member count.
organizationName Changes to this property will trigger replacement. String
Company name.
realPk String
User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
source String
This is organization source information

Import

RDC Organization can be imported using the id, e.g.

$ pulumi import alicloud:rdc/organization:Organization example <id>
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.