oci.Identity.UserCapabilitiesManagement
Explore with Pulumi AI
This resource provides the User Capabilities Management resource in Oracle Cloud Infrastructure Identity service.
Manages the capabilities of the specified user.
Important: Deleting the User Capabilities Management leaves the User resource in its existing state (rather than returning to its defaults)
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testUserCapabilitiesManagement = new oci.identity.UserCapabilitiesManagement("test_user_capabilities_management", {
userId: user1.id,
canUseApiKeys: true,
canUseAuthTokens: true,
canUseConsolePassword: false,
canUseCustomerSecretKeys: true,
canUseSmtpCredentials: true,
});
import pulumi
import pulumi_oci as oci
test_user_capabilities_management = oci.identity.UserCapabilitiesManagement("test_user_capabilities_management",
user_id=user1["id"],
can_use_api_keys=True,
can_use_auth_tokens=True,
can_use_console_password=False,
can_use_customer_secret_keys=True,
can_use_smtp_credentials=True)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Identity.NewUserCapabilitiesManagement(ctx, "test_user_capabilities_management", &Identity.UserCapabilitiesManagementArgs{
UserId: pulumi.Any(user1.Id),
CanUseApiKeys: pulumi.Bool(true),
CanUseAuthTokens: pulumi.Bool(true),
CanUseConsolePassword: pulumi.Bool(false),
CanUseCustomerSecretKeys: pulumi.Bool(true),
CanUseSmtpCredentials: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testUserCapabilitiesManagement = new Oci.Identity.UserCapabilitiesManagement("test_user_capabilities_management", new()
{
UserId = user1.Id,
CanUseApiKeys = true,
CanUseAuthTokens = true,
CanUseConsolePassword = false,
CanUseCustomerSecretKeys = true,
CanUseSmtpCredentials = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.UserCapabilitiesManagement;
import com.pulumi.oci.Identity.UserCapabilitiesManagementArgs;
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 testUserCapabilitiesManagement = new UserCapabilitiesManagement("testUserCapabilitiesManagement", UserCapabilitiesManagementArgs.builder()
.userId(user1.id())
.canUseApiKeys("true")
.canUseAuthTokens("true")
.canUseConsolePassword("false")
.canUseCustomerSecretKeys("true")
.canUseSmtpCredentials("true")
.build());
}
}
resources:
testUserCapabilitiesManagement:
type: oci:Identity:UserCapabilitiesManagement
name: test_user_capabilities_management
properties:
userId: ${user1.id}
canUseApiKeys: 'true'
canUseAuthTokens: 'true'
canUseConsolePassword: 'false'
canUseCustomerSecretKeys: 'true'
canUseSmtpCredentials: 'true'
Create UserCapabilitiesManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserCapabilitiesManagement(name: string, args: UserCapabilitiesManagementArgs, opts?: CustomResourceOptions);
@overload
def UserCapabilitiesManagement(resource_name: str,
args: UserCapabilitiesManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UserCapabilitiesManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_id: Optional[str] = None,
can_use_api_keys: Optional[bool] = None,
can_use_auth_tokens: Optional[bool] = None,
can_use_console_password: Optional[bool] = None,
can_use_customer_secret_keys: Optional[bool] = None,
can_use_smtp_credentials: Optional[bool] = None)
func NewUserCapabilitiesManagement(ctx *Context, name string, args UserCapabilitiesManagementArgs, opts ...ResourceOption) (*UserCapabilitiesManagement, error)
public UserCapabilitiesManagement(string name, UserCapabilitiesManagementArgs args, CustomResourceOptions? opts = null)
public UserCapabilitiesManagement(String name, UserCapabilitiesManagementArgs args)
public UserCapabilitiesManagement(String name, UserCapabilitiesManagementArgs args, CustomResourceOptions options)
type: oci:Identity:UserCapabilitiesManagement
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 UserCapabilitiesManagementArgs
- 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 UserCapabilitiesManagementArgs
- 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 UserCapabilitiesManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserCapabilitiesManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserCapabilitiesManagementArgs
- 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 userCapabilitiesManagementResource = new Oci.Identity.UserCapabilitiesManagement("userCapabilitiesManagementResource", new()
{
UserId = "string",
CanUseApiKeys = false,
CanUseAuthTokens = false,
CanUseConsolePassword = false,
CanUseCustomerSecretKeys = false,
CanUseSmtpCredentials = false,
});
example, err := Identity.NewUserCapabilitiesManagement(ctx, "userCapabilitiesManagementResource", &Identity.UserCapabilitiesManagementArgs{
UserId: pulumi.String("string"),
CanUseApiKeys: pulumi.Bool(false),
CanUseAuthTokens: pulumi.Bool(false),
CanUseConsolePassword: pulumi.Bool(false),
CanUseCustomerSecretKeys: pulumi.Bool(false),
CanUseSmtpCredentials: pulumi.Bool(false),
})
var userCapabilitiesManagementResource = new UserCapabilitiesManagement("userCapabilitiesManagementResource", UserCapabilitiesManagementArgs.builder()
.userId("string")
.canUseApiKeys(false)
.canUseAuthTokens(false)
.canUseConsolePassword(false)
.canUseCustomerSecretKeys(false)
.canUseSmtpCredentials(false)
.build());
user_capabilities_management_resource = oci.identity.UserCapabilitiesManagement("userCapabilitiesManagementResource",
user_id="string",
can_use_api_keys=False,
can_use_auth_tokens=False,
can_use_console_password=False,
can_use_customer_secret_keys=False,
can_use_smtp_credentials=False)
const userCapabilitiesManagementResource = new oci.identity.UserCapabilitiesManagement("userCapabilitiesManagementResource", {
userId: "string",
canUseApiKeys: false,
canUseAuthTokens: false,
canUseConsolePassword: false,
canUseCustomerSecretKeys: false,
canUseSmtpCredentials: false,
});
type: oci:Identity:UserCapabilitiesManagement
properties:
canUseApiKeys: false
canUseAuthTokens: false
canUseConsolePassword: false
canUseCustomerSecretKeys: false
canUseSmtpCredentials: false
userId: string
UserCapabilitiesManagement 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 UserCapabilitiesManagement resource accepts the following input properties:
- User
Id string - The OCID of the user.
- Can
Use boolApi Keys - (Updatable) Indicates if the user can use API keys.
- Can
Use boolAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- Can
Use boolConsole Password - (Updatable) Indicates if the user can log in to the console.
- Can
Use boolCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- Can
Use boolSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- User
Id string - The OCID of the user.
- Can
Use boolApi Keys - (Updatable) Indicates if the user can use API keys.
- Can
Use boolAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- Can
Use boolConsole Password - (Updatable) Indicates if the user can log in to the console.
- Can
Use boolCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- Can
Use boolSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user
Id String - The OCID of the user.
- can
Use BooleanApi Keys - (Updatable) Indicates if the user can use API keys.
- can
Use BooleanAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can
Use BooleanConsole Password - (Updatable) Indicates if the user can log in to the console.
- can
Use BooleanCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can
Use BooleanSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user
Id string - The OCID of the user.
- can
Use booleanApi Keys - (Updatable) Indicates if the user can use API keys.
- can
Use booleanAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can
Use booleanConsole Password - (Updatable) Indicates if the user can log in to the console.
- can
Use booleanCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can
Use booleanSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user_
id str - The OCID of the user.
- can_
use_ boolapi_ keys - (Updatable) Indicates if the user can use API keys.
- can_
use_ boolauth_ tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can_
use_ boolconsole_ password - (Updatable) Indicates if the user can log in to the console.
- can_
use_ boolcustomer_ secret_ keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can_
use_ boolsmtp_ credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user
Id String - The OCID of the user.
- can
Use BooleanApi Keys - (Updatable) Indicates if the user can use API keys.
- can
Use BooleanAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can
Use BooleanConsole Password - (Updatable) Indicates if the user can log in to the console.
- can
Use BooleanCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can
Use BooleanSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the UserCapabilitiesManagement 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 UserCapabilitiesManagement Resource
Get an existing UserCapabilitiesManagement 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?: UserCapabilitiesManagementState, opts?: CustomResourceOptions): UserCapabilitiesManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
can_use_api_keys: Optional[bool] = None,
can_use_auth_tokens: Optional[bool] = None,
can_use_console_password: Optional[bool] = None,
can_use_customer_secret_keys: Optional[bool] = None,
can_use_smtp_credentials: Optional[bool] = None,
user_id: Optional[str] = None) -> UserCapabilitiesManagement
func GetUserCapabilitiesManagement(ctx *Context, name string, id IDInput, state *UserCapabilitiesManagementState, opts ...ResourceOption) (*UserCapabilitiesManagement, error)
public static UserCapabilitiesManagement Get(string name, Input<string> id, UserCapabilitiesManagementState? state, CustomResourceOptions? opts = null)
public static UserCapabilitiesManagement get(String name, Output<String> id, UserCapabilitiesManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Can
Use boolApi Keys - (Updatable) Indicates if the user can use API keys.
- Can
Use boolAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- Can
Use boolConsole Password - (Updatable) Indicates if the user can log in to the console.
- Can
Use boolCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- Can
Use boolSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- User
Id string - The OCID of the user.
- Can
Use boolApi Keys - (Updatable) Indicates if the user can use API keys.
- Can
Use boolAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- Can
Use boolConsole Password - (Updatable) Indicates if the user can log in to the console.
- Can
Use boolCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- Can
Use boolSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- User
Id string - The OCID of the user.
- can
Use BooleanApi Keys - (Updatable) Indicates if the user can use API keys.
- can
Use BooleanAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can
Use BooleanConsole Password - (Updatable) Indicates if the user can log in to the console.
- can
Use BooleanCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can
Use BooleanSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user
Id String - The OCID of the user.
- can
Use booleanApi Keys - (Updatable) Indicates if the user can use API keys.
- can
Use booleanAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can
Use booleanConsole Password - (Updatable) Indicates if the user can log in to the console.
- can
Use booleanCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can
Use booleanSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user
Id string - The OCID of the user.
- can_
use_ boolapi_ keys - (Updatable) Indicates if the user can use API keys.
- can_
use_ boolauth_ tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can_
use_ boolconsole_ password - (Updatable) Indicates if the user can log in to the console.
- can_
use_ boolcustomer_ secret_ keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can_
use_ boolsmtp_ credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user_
id str - The OCID of the user.
- can
Use BooleanApi Keys - (Updatable) Indicates if the user can use API keys.
- can
Use BooleanAuth Tokens - (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
- can
Use BooleanConsole Password - (Updatable) Indicates if the user can log in to the console.
- can
Use BooleanCustomer Secret Keys - (Updatable) Indicates if the user can use SigV4 symmetric keys.
- can
Use BooleanSmtp Credentials (Updatable) Indicates if the user can use SMTP passwords.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- user
Id String - The OCID of the user.
Import
Users can be imported using the id
, e.g.
$ pulumi import oci:Identity/userCapabilitiesManagement:UserCapabilitiesManagement test_user_capabilities_management "capabilities/{userId}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.