opentelekomcloud.IdentityCredentialV3
Explore with Pulumi AI
Up-to-date reference of API arguments for IAM credential you can get at documentation portal
Manages permanent access key for an OpenTelekomCloud user.
Example Usage
Create AK/SK for yourself
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const aksk = new opentelekomcloud.IdentityCredentialV3("aksk", {});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
aksk = opentelekomcloud.IdentityCredentialV3("aksk")
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.NewIdentityCredentialV3(ctx, "aksk", 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 aksk = new Opentelekomcloud.IdentityCredentialV3("aksk");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.IdentityCredentialV3;
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 aksk = new IdentityCredentialV3("aksk");
}
}
resources:
aksk:
type: opentelekomcloud:IdentityCredentialV3
Create user with AK/SK
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const user = new opentelekomcloud.IdentityUserV3("user", {password: "password123!"});
const aksk = new opentelekomcloud.IdentityCredentialV3("aksk", {
userId: user.identityUserV3Id,
description: "Created by administrator",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
user = opentelekomcloud.IdentityUserV3("user", password="password123!")
aksk = opentelekomcloud.IdentityCredentialV3("aksk",
user_id=user.identity_user_v3_id,
description="Created by administrator")
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 {
user, err := opentelekomcloud.NewIdentityUserV3(ctx, "user", &opentelekomcloud.IdentityUserV3Args{
Password: pulumi.String("password123!"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewIdentityCredentialV3(ctx, "aksk", &opentelekomcloud.IdentityCredentialV3Args{
UserId: user.IdentityUserV3Id,
Description: pulumi.String("Created by administrator"),
})
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 user = new Opentelekomcloud.IdentityUserV3("user", new()
{
Password = "password123!",
});
var aksk = new Opentelekomcloud.IdentityCredentialV3("aksk", new()
{
UserId = user.IdentityUserV3Id,
Description = "Created by administrator",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.IdentityUserV3;
import com.pulumi.opentelekomcloud.IdentityUserV3Args;
import com.pulumi.opentelekomcloud.IdentityCredentialV3;
import com.pulumi.opentelekomcloud.IdentityCredentialV3Args;
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 user = new IdentityUserV3("user", IdentityUserV3Args.builder()
.password("password123!")
.build());
var aksk = new IdentityCredentialV3("aksk", IdentityCredentialV3Args.builder()
.userId(user.identityUserV3Id())
.description("Created by administrator")
.build());
}
}
resources:
user:
type: opentelekomcloud:IdentityUserV3
properties:
password: password123!
aksk:
type: opentelekomcloud:IdentityCredentialV3
properties:
userId: ${user.identityUserV3Id}
description: Created by administrator
Create IdentityCredentialV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityCredentialV3(name: string, args?: IdentityCredentialV3Args, opts?: CustomResourceOptions);
@overload
def IdentityCredentialV3(resource_name: str,
args: Optional[IdentityCredentialV3Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityCredentialV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
identity_credential_v3_id: Optional[str] = None,
pgp_key: Optional[str] = None,
status: Optional[str] = None,
user_id: Optional[str] = None)
func NewIdentityCredentialV3(ctx *Context, name string, args *IdentityCredentialV3Args, opts ...ResourceOption) (*IdentityCredentialV3, error)
public IdentityCredentialV3(string name, IdentityCredentialV3Args? args = null, CustomResourceOptions? opts = null)
public IdentityCredentialV3(String name, IdentityCredentialV3Args args)
public IdentityCredentialV3(String name, IdentityCredentialV3Args args, CustomResourceOptions options)
type: opentelekomcloud:IdentityCredentialV3
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 IdentityCredentialV3Args
- 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 IdentityCredentialV3Args
- 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 IdentityCredentialV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityCredentialV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityCredentialV3Args
- 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 identityCredentialV3Resource = new Opentelekomcloud.IdentityCredentialV3("identityCredentialV3Resource", new()
{
Description = "string",
IdentityCredentialV3Id = "string",
PgpKey = "string",
Status = "string",
UserId = "string",
});
example, err := opentelekomcloud.NewIdentityCredentialV3(ctx, "identityCredentialV3Resource", &opentelekomcloud.IdentityCredentialV3Args{
Description: pulumi.String("string"),
IdentityCredentialV3Id: pulumi.String("string"),
PgpKey: pulumi.String("string"),
Status: pulumi.String("string"),
UserId: pulumi.String("string"),
})
var identityCredentialV3Resource = new IdentityCredentialV3("identityCredentialV3Resource", IdentityCredentialV3Args.builder()
.description("string")
.identityCredentialV3Id("string")
.pgpKey("string")
.status("string")
.userId("string")
.build());
identity_credential_v3_resource = opentelekomcloud.IdentityCredentialV3("identityCredentialV3Resource",
description="string",
identity_credential_v3_id="string",
pgp_key="string",
status="string",
user_id="string")
const identityCredentialV3Resource = new opentelekomcloud.IdentityCredentialV3("identityCredentialV3Resource", {
description: "string",
identityCredentialV3Id: "string",
pgpKey: "string",
status: "string",
userId: "string",
});
type: opentelekomcloud:IdentityCredentialV3
properties:
description: string
identityCredentialV3Id: string
pgpKey: string
status: string
userId: string
IdentityCredentialV3 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 IdentityCredentialV3 resource accepts the following input properties:
- Description string
- Description of the access key.
- Identity
Credential stringV3Id - Pgp
Key string - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - Status string
- Status of the access key to be changed to. The value can be
active
orinactive
. - User
Id string - IAM user ID. If not set, will create AK/SK for yourself.
- Description string
- Description of the access key.
- Identity
Credential stringV3Id - Pgp
Key string - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - Status string
- Status of the access key to be changed to. The value can be
active
orinactive
. - User
Id string - IAM user ID. If not set, will create AK/SK for yourself.
- description String
- Description of the access key.
- identity
Credential StringV3Id - pgp
Key String - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - status String
- Status of the access key to be changed to. The value can be
active
orinactive
. - user
Id String - IAM user ID. If not set, will create AK/SK for yourself.
- description string
- Description of the access key.
- identity
Credential stringV3Id - pgp
Key string - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - status string
- Status of the access key to be changed to. The value can be
active
orinactive
. - user
Id string - IAM user ID. If not set, will create AK/SK for yourself.
- description str
- Description of the access key.
- identity_
credential_ strv3_ id - pgp_
key str - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - status str
- Status of the access key to be changed to. The value can be
active
orinactive
. - user_
id str - IAM user ID. If not set, will create AK/SK for yourself.
- description String
- Description of the access key.
- identity
Credential StringV3Id - pgp
Key String - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - status String
- Status of the access key to be changed to. The value can be
active
orinactive
. - user
Id String - IAM user ID. If not set, will create AK/SK for yourself.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityCredentialV3 resource produces the following output properties:
- Access string
- Access key ID.
- Create
Time string - Time of the access key creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Fingerprint string - Last
Use stringTime - Time of the access key last usage.
- Secret string
- Access string
- Access key ID.
- Create
Time string - Time of the access key creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Fingerprint string - Last
Use stringTime - Time of the access key last usage.
- Secret string
- access String
- Access key ID.
- create
Time String - Time of the access key creation.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Fingerprint String - last
Use StringTime - Time of the access key last usage.
- secret String
- access string
- Access key ID.
- create
Time string - Time of the access key creation.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Fingerprint string - last
Use stringTime - Time of the access key last usage.
- secret string
- access str
- Access key ID.
- create_
time str - Time of the access key creation.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
fingerprint str - last_
use_ strtime - Time of the access key last usage.
- secret str
- access String
- Access key ID.
- create
Time String - Time of the access key creation.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Fingerprint String - last
Use StringTime - Time of the access key last usage.
- secret String
Look up Existing IdentityCredentialV3 Resource
Get an existing IdentityCredentialV3 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?: IdentityCredentialV3State, opts?: CustomResourceOptions): IdentityCredentialV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
identity_credential_v3_id: Optional[str] = None,
key_fingerprint: Optional[str] = None,
last_use_time: Optional[str] = None,
pgp_key: Optional[str] = None,
secret: Optional[str] = None,
status: Optional[str] = None,
user_id: Optional[str] = None) -> IdentityCredentialV3
func GetIdentityCredentialV3(ctx *Context, name string, id IDInput, state *IdentityCredentialV3State, opts ...ResourceOption) (*IdentityCredentialV3, error)
public static IdentityCredentialV3 Get(string name, Input<string> id, IdentityCredentialV3State? state, CustomResourceOptions? opts = null)
public static IdentityCredentialV3 get(String name, Output<String> id, IdentityCredentialV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:IdentityCredentialV3 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.
- Access string
- Access key ID.
- Create
Time string - Time of the access key creation.
- Description string
- Description of the access key.
- Identity
Credential stringV3Id - Key
Fingerprint string - Last
Use stringTime - Time of the access key last usage.
- Pgp
Key string - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - Secret string
- Status string
- Status of the access key to be changed to. The value can be
active
orinactive
. - User
Id string - IAM user ID. If not set, will create AK/SK for yourself.
- Access string
- Access key ID.
- Create
Time string - Time of the access key creation.
- Description string
- Description of the access key.
- Identity
Credential stringV3Id - Key
Fingerprint string - Last
Use stringTime - Time of the access key last usage.
- Pgp
Key string - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - Secret string
- Status string
- Status of the access key to be changed to. The value can be
active
orinactive
. - User
Id string - IAM user ID. If not set, will create AK/SK for yourself.
- access String
- Access key ID.
- create
Time String - Time of the access key creation.
- description String
- Description of the access key.
- identity
Credential StringV3Id - key
Fingerprint String - last
Use StringTime - Time of the access key last usage.
- pgp
Key String - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - secret String
- status String
- Status of the access key to be changed to. The value can be
active
orinactive
. - user
Id String - IAM user ID. If not set, will create AK/SK for yourself.
- access string
- Access key ID.
- create
Time string - Time of the access key creation.
- description string
- Description of the access key.
- identity
Credential stringV3Id - key
Fingerprint string - last
Use stringTime - Time of the access key last usage.
- pgp
Key string - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - secret string
- status string
- Status of the access key to be changed to. The value can be
active
orinactive
. - user
Id string - IAM user ID. If not set, will create AK/SK for yourself.
- access str
- Access key ID.
- create_
time str - Time of the access key creation.
- description str
- Description of the access key.
- identity_
credential_ strv3_ id - key_
fingerprint str - last_
use_ strtime - Time of the access key last usage.
- pgp_
key str - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - secret str
- status str
- Status of the access key to be changed to. The value can be
active
orinactive
. - user_
id str - IAM user ID. If not set, will create AK/SK for yourself.
- access String
- Access key ID.
- create
Time String - Time of the access key creation.
- description String
- Description of the access key.
- identity
Credential StringV3Id - key
Fingerprint String - last
Use StringTime - Time of the access key last usage.
- pgp
Key String - Either a base-64 encoded PGP public key, or a keybase username in the form
keybase:some_person_that_exists
. Changing this creates a new resource. - secret String
- status String
- Status of the access key to be changed to. The value can be
active
orinactive
. - user
Id String - IAM user ID. If not set, will create AK/SK for yourself.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.