opentelekomcloud.IdentityMappingV3
Explore with Pulumi AI
Up-to-date reference of API arguments for IAM mapping you can get at documentation portal
You must have security admin privileges in your OpenTelekomCloud cloud to use this resource. Please refer to User Management Model.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const mapping = new opentelekomcloud.IdentityMappingV3("mapping", {
mappingId: "ACME",
rules: ` [
{
"local":[
{
"user":{"name":"{0}"}
},
{
"groups":"[\\"admin\\",\\"manager\\"]"
}
],
"remote":[
{
"type":"uid"
}
]
}
]
`,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
mapping = opentelekomcloud.IdentityMappingV3("mapping",
mapping_id="ACME",
rules=""" [
{
"local":[
{
"user":{"name":"{0}"}
},
{
"groups":"[\"admin\",\"manager\"]"
}
],
"remote":[
{
"type":"uid"
}
]
}
]
""")
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.NewIdentityMappingV3(ctx, "mapping", &opentelekomcloud.IdentityMappingV3Args{
MappingId: pulumi.String("ACME"),
Rules: pulumi.String(` [
{
"local":[
{
"user":{"name":"{0}"}
},
{
"groups":"[\"admin\",\"manager\"]"
}
],
"remote":[
{
"type":"uid"
}
]
}
]
`),
})
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 mapping = new Opentelekomcloud.IdentityMappingV3("mapping", new()
{
MappingId = "ACME",
Rules = @" [
{
""local"":[
{
""user"":{""name"":""{0}""}
},
{
""groups"":""[\""admin\"",\""manager\""]""
}
],
""remote"":[
{
""type"":""uid""
}
]
}
]
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.IdentityMappingV3;
import com.pulumi.opentelekomcloud.IdentityMappingV3Args;
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 mapping = new IdentityMappingV3("mapping", IdentityMappingV3Args.builder()
.mappingId("ACME")
.rules("""
[
{
"local":[
{
"user":{"name":"{0}"}
},
{
"groups":"[\"admin\",\"manager\"]"
}
],
"remote":[
{
"type":"uid"
}
]
}
]
""")
.build());
}
}
resources:
mapping:
type: opentelekomcloud:IdentityMappingV3
properties:
mappingId: ACME
rules: |2+
[
{
"local":[
{
"user":{"name":"{0}"}
},
{
"groups":"[\"admin\",\"manager\"]"
}
],
"remote":[
{
"type":"uid"
}
]
}
]
Create IdentityMappingV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityMappingV3(name: string, args: IdentityMappingV3Args, opts?: CustomResourceOptions);
@overload
def IdentityMappingV3(resource_name: str,
args: IdentityMappingV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityMappingV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
mapping_id: Optional[str] = None,
rules: Optional[str] = None,
identity_mapping_v3_id: Optional[str] = None)
func NewIdentityMappingV3(ctx *Context, name string, args IdentityMappingV3Args, opts ...ResourceOption) (*IdentityMappingV3, error)
public IdentityMappingV3(string name, IdentityMappingV3Args args, CustomResourceOptions? opts = null)
public IdentityMappingV3(String name, IdentityMappingV3Args args)
public IdentityMappingV3(String name, IdentityMappingV3Args args, CustomResourceOptions options)
type: opentelekomcloud:IdentityMappingV3
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 IdentityMappingV3Args
- 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 IdentityMappingV3Args
- 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 IdentityMappingV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityMappingV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityMappingV3Args
- 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 identityMappingV3Resource = new Opentelekomcloud.IdentityMappingV3("identityMappingV3Resource", new()
{
MappingId = "string",
Rules = "string",
IdentityMappingV3Id = "string",
});
example, err := opentelekomcloud.NewIdentityMappingV3(ctx, "identityMappingV3Resource", &opentelekomcloud.IdentityMappingV3Args{
MappingId: pulumi.String("string"),
Rules: pulumi.String("string"),
IdentityMappingV3Id: pulumi.String("string"),
})
var identityMappingV3Resource = new IdentityMappingV3("identityMappingV3Resource", IdentityMappingV3Args.builder()
.mappingId("string")
.rules("string")
.identityMappingV3Id("string")
.build());
identity_mapping_v3_resource = opentelekomcloud.IdentityMappingV3("identityMappingV3Resource",
mapping_id="string",
rules="string",
identity_mapping_v3_id="string")
const identityMappingV3Resource = new opentelekomcloud.IdentityMappingV3("identityMappingV3Resource", {
mappingId: "string",
rules: "string",
identityMappingV3Id: "string",
});
type: opentelekomcloud:IdentityMappingV3
properties:
identityMappingV3Id: string
mappingId: string
rules: string
IdentityMappingV3 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 IdentityMappingV3 resource accepts the following input properties:
- Mapping
Id string - The ID of the mapping. Changing this creates a new mapping.
- Rules string
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- Identity
Mapping stringV3Id
- Mapping
Id string - The ID of the mapping. Changing this creates a new mapping.
- Rules string
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- Identity
Mapping stringV3Id
- mapping
Id String - The ID of the mapping. Changing this creates a new mapping.
- rules String
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity
Mapping StringV3Id
- mapping
Id string - The ID of the mapping. Changing this creates a new mapping.
- rules string
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity
Mapping stringV3Id
- mapping_
id str - The ID of the mapping. Changing this creates a new mapping.
- rules str
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity_
mapping_ strv3_ id
- mapping
Id String - The ID of the mapping. Changing this creates a new mapping.
- rules String
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity
Mapping StringV3Id
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityMappingV3 resource produces the following output properties:
Look up Existing IdentityMappingV3 Resource
Get an existing IdentityMappingV3 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?: IdentityMappingV3State, opts?: CustomResourceOptions): IdentityMappingV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
identity_mapping_v3_id: Optional[str] = None,
links: Optional[Mapping[str, str]] = None,
mapping_id: Optional[str] = None,
rules: Optional[str] = None) -> IdentityMappingV3
func GetIdentityMappingV3(ctx *Context, name string, id IDInput, state *IdentityMappingV3State, opts ...ResourceOption) (*IdentityMappingV3, error)
public static IdentityMappingV3 Get(string name, Input<string> id, IdentityMappingV3State? state, CustomResourceOptions? opts = null)
public static IdentityMappingV3 get(String name, Output<String> id, IdentityMappingV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:IdentityMappingV3 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.
- Identity
Mapping stringV3Id - Links Dictionary<string, string>
- Mapping
Id string - The ID of the mapping. Changing this creates a new mapping.
- Rules string
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- Identity
Mapping stringV3Id - Links map[string]string
- Mapping
Id string - The ID of the mapping. Changing this creates a new mapping.
- Rules string
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity
Mapping StringV3Id - links Map<String,String>
- mapping
Id String - The ID of the mapping. Changing this creates a new mapping.
- rules String
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity
Mapping stringV3Id - links {[key: string]: string}
- mapping
Id string - The ID of the mapping. Changing this creates a new mapping.
- rules string
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity_
mapping_ strv3_ id - links Mapping[str, str]
- mapping_
id str - The ID of the mapping. Changing this creates a new mapping.
- rules str
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
- identity
Mapping StringV3Id - links Map<String>
- mapping
Id String - The ID of the mapping. Changing this creates a new mapping.
- rules String
Rules used to map federated users to local users.
For the full reference checkout Syntax of Identity Conversion Rules.
Import
Mappings can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/identityMappingV3:IdentityMappingV3 mapping ACME
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.