tencentcloud.OrganizationServiceAssign
Explore with Pulumi AI
Provides a resource to create a organization service assign
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.OrganizationServiceAssign("example", {
managementScope: 1,
memberUins: [
100037235241,
100033738111,
],
serviceId: 15,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.OrganizationServiceAssign("example",
management_scope=1,
member_uins=[
100037235241,
100033738111,
],
service_id=15)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewOrganizationServiceAssign(ctx, "example", &tencentcloud.OrganizationServiceAssignArgs{
ManagementScope: pulumi.Float64(1),
MemberUins: pulumi.Float64Array{
pulumi.Float64(100037235241),
pulumi.Float64(100033738111),
},
ServiceId: pulumi.Float64(15),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.OrganizationServiceAssign("example", new()
{
ManagementScope = 1,
MemberUins = new[]
{
100037235241,
100033738111,
},
ServiceId = 15,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationServiceAssign;
import com.pulumi.tencentcloud.OrganizationServiceAssignArgs;
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 OrganizationServiceAssign("example", OrganizationServiceAssignArgs.builder()
.managementScope(1)
.memberUins(
100037235241,
100033738111)
.serviceId(15)
.build());
}
}
resources:
example:
type: tencentcloud:OrganizationServiceAssign
properties:
managementScope: 1
memberUins:
- 1.00037235241e+11
- 1.00033738111e+11
serviceId: 15
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.OrganizationServiceAssign("example", {
managementScope: 2,
managementScopeNodeIds: [
2024256,
2024259,
],
managementScopeUins: [
100019287759,
100020537485,
],
memberUins: [
100013415241,
100078908111,
],
serviceId: 15,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.OrganizationServiceAssign("example",
management_scope=2,
management_scope_node_ids=[
2024256,
2024259,
],
management_scope_uins=[
100019287759,
100020537485,
],
member_uins=[
100013415241,
100078908111,
],
service_id=15)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewOrganizationServiceAssign(ctx, "example", &tencentcloud.OrganizationServiceAssignArgs{
ManagementScope: pulumi.Float64(2),
ManagementScopeNodeIds: pulumi.Float64Array{
pulumi.Float64(2024256),
pulumi.Float64(2024259),
},
ManagementScopeUins: pulumi.Float64Array{
pulumi.Float64(100019287759),
pulumi.Float64(100020537485),
},
MemberUins: pulumi.Float64Array{
pulumi.Float64(100013415241),
pulumi.Float64(100078908111),
},
ServiceId: pulumi.Float64(15),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.OrganizationServiceAssign("example", new()
{
ManagementScope = 2,
ManagementScopeNodeIds = new[]
{
2024256,
2024259,
},
ManagementScopeUins = new[]
{
100019287759,
100020537485,
},
MemberUins = new[]
{
100013415241,
100078908111,
},
ServiceId = 15,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationServiceAssign;
import com.pulumi.tencentcloud.OrganizationServiceAssignArgs;
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 OrganizationServiceAssign("example", OrganizationServiceAssignArgs.builder()
.managementScope(2)
.managementScopeNodeIds(
2024256,
2024259)
.managementScopeUins(
100019287759,
100020537485)
.memberUins(
100013415241,
100078908111)
.serviceId(15)
.build());
}
}
resources:
example:
type: tencentcloud:OrganizationServiceAssign
properties:
managementScope: 2
managementScopeNodeIds:
- 2.024256e+06
- 2.024259e+06
managementScopeUins:
- 1.00019287759e+11
- 1.00020537485e+11
memberUins:
- 1.00013415241e+11
- 1.00078908111e+11
serviceId: 15
Create OrganizationServiceAssign Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationServiceAssign(name: string, args: OrganizationServiceAssignArgs, opts?: CustomResourceOptions);
@overload
def OrganizationServiceAssign(resource_name: str,
args: OrganizationServiceAssignArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationServiceAssign(resource_name: str,
opts: Optional[ResourceOptions] = None,
member_uins: Optional[Sequence[float]] = None,
service_id: Optional[float] = None,
management_scope: Optional[float] = None,
management_scope_node_ids: Optional[Sequence[float]] = None,
management_scope_uins: Optional[Sequence[float]] = None,
organization_service_assign_id: Optional[str] = None)
func NewOrganizationServiceAssign(ctx *Context, name string, args OrganizationServiceAssignArgs, opts ...ResourceOption) (*OrganizationServiceAssign, error)
public OrganizationServiceAssign(string name, OrganizationServiceAssignArgs args, CustomResourceOptions? opts = null)
public OrganizationServiceAssign(String name, OrganizationServiceAssignArgs args)
public OrganizationServiceAssign(String name, OrganizationServiceAssignArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationServiceAssign
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 OrganizationServiceAssignArgs
- 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 OrganizationServiceAssignArgs
- 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 OrganizationServiceAssignArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationServiceAssignArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationServiceAssignArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationServiceAssign 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 OrganizationServiceAssign resource accepts the following input properties:
- Member
Uins List<double> - Uin list of the delegated admins, Including up to 20 items.
- Service
Id double - Organization service ID.
- Management
Scope double - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - Management
Scope List<double>Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - Management
Scope List<double>Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - Organization
Service stringAssign Id - ID of the resource.
- Member
Uins []float64 - Uin list of the delegated admins, Including up to 20 items.
- Service
Id float64 - Organization service ID.
- Management
Scope float64 - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - Management
Scope []float64Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - Management
Scope []float64Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - Organization
Service stringAssign Id - ID of the resource.
- member
Uins List<Double> - Uin list of the delegated admins, Including up to 20 items.
- service
Id Double - Organization service ID.
- management
Scope Double - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management
Scope List<Double>Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management
Scope List<Double>Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - organization
Service StringAssign Id - ID of the resource.
- member
Uins number[] - Uin list of the delegated admins, Including up to 20 items.
- service
Id number - Organization service ID.
- management
Scope number - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management
Scope number[]Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management
Scope number[]Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - organization
Service stringAssign Id - ID of the resource.
- member_
uins Sequence[float] - Uin list of the delegated admins, Including up to 20 items.
- service_
id float - Organization service ID.
- management_
scope float - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management_
scope_ Sequence[float]node_ ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management_
scope_ Sequence[float]uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - organization_
service_ strassign_ id - ID of the resource.
- member
Uins List<Number> - Uin list of the delegated admins, Including up to 20 items.
- service
Id Number - Organization service ID.
- management
Scope Number - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management
Scope List<Number>Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management
Scope List<Number>Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - organization
Service StringAssign Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationServiceAssign 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 OrganizationServiceAssign Resource
Get an existing OrganizationServiceAssign 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?: OrganizationServiceAssignState, opts?: CustomResourceOptions): OrganizationServiceAssign
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
management_scope: Optional[float] = None,
management_scope_node_ids: Optional[Sequence[float]] = None,
management_scope_uins: Optional[Sequence[float]] = None,
member_uins: Optional[Sequence[float]] = None,
organization_service_assign_id: Optional[str] = None,
service_id: Optional[float] = None) -> OrganizationServiceAssign
func GetOrganizationServiceAssign(ctx *Context, name string, id IDInput, state *OrganizationServiceAssignState, opts ...ResourceOption) (*OrganizationServiceAssign, error)
public static OrganizationServiceAssign Get(string name, Input<string> id, OrganizationServiceAssignState? state, CustomResourceOptions? opts = null)
public static OrganizationServiceAssign get(String name, Output<String> id, OrganizationServiceAssignState state, CustomResourceOptions options)
resources: _: type: tencentcloud:OrganizationServiceAssign 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.
- Management
Scope double - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - Management
Scope List<double>Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - Management
Scope List<double>Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - Member
Uins List<double> - Uin list of the delegated admins, Including up to 20 items.
- Organization
Service stringAssign Id - ID of the resource.
- Service
Id double - Organization service ID.
- Management
Scope float64 - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - Management
Scope []float64Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - Management
Scope []float64Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - Member
Uins []float64 - Uin list of the delegated admins, Including up to 20 items.
- Organization
Service stringAssign Id - ID of the resource.
- Service
Id float64 - Organization service ID.
- management
Scope Double - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management
Scope List<Double>Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management
Scope List<Double>Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - member
Uins List<Double> - Uin list of the delegated admins, Including up to 20 items.
- organization
Service StringAssign Id - ID of the resource.
- service
Id Double - Organization service ID.
- management
Scope number - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management
Scope number[]Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management
Scope number[]Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - member
Uins number[] - Uin list of the delegated admins, Including up to 20 items.
- organization
Service stringAssign Id - ID of the resource.
- service
Id number - Organization service ID.
- management_
scope float - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management_
scope_ Sequence[float]node_ ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management_
scope_ Sequence[float]uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - member_
uins Sequence[float] - Uin list of the delegated admins, Including up to 20 items.
- organization_
service_ strassign_ id - ID of the resource.
- service_
id float - Organization service ID.
- management
Scope Number - Management scope of the delegated admin. Valid values: 1 (all members), 2 (partial members). Default value:
1
. - management
Scope List<Number>Node Ids - ID list of the managed departments. This parameter is valid when
management_scope
is2
. - management
Scope List<Number>Uins - Uin list of the managed members. This parameter is valid when
management_scope
is2
. - member
Uins List<Number> - Uin list of the delegated admins, Including up to 20 items.
- organization
Service StringAssign Id - ID of the resource.
- service
Id Number - Organization service ID.
Import
organization service assign can be imported using the id, e.g.
$ pulumi import tencentcloud:index/organizationServiceAssign:OrganizationServiceAssign example 15
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.