oci_identity_domains_auth_token

This resource provides the Auth Token resource in Oracle Cloud Infrastructure Identity Domains service.

Create a user's Auth token.

Example Usage

resource "oci_identity_domains_auth_token" "test_auth_token" {
    #Required
    idcs_endpoint = data.oci_identity_domain.test_domain.url
    schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:authToken"]

    #Optional
    attribute_sets = []
    attributes = ""
    authorization = var.auth_token_authorization
    description = var.auth_token_description
    expires_on = var.auth_token_expires_on
    id = var.auth_token_id
    ocid = var.auth_token_ocid
    resource_type_schema_version = var.auth_token_resource_type_schema_version
    status = var.auth_token_status
    tags {
        #Required
        key = var.auth_token_tags_key
        value = var.auth_token_tags_value
    }
    urnietfparamsscimschemasoracleidcsextensionself_change_user {

        #Optional
        allow_self_change = var.auth_token_urnietfparamsscimschemasoracleidcsextensionself_change_user_allow_self_change
    }
    user {

        #Optional
        ocid = oci_identity_domains_user.test_user.ocid
        value = oci_identity_domains_user.test_user.id
    }
}

Argument Reference

The following arguments are supported:

* 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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Auth Token * update - (Defaults to 20 minutes), when updating the Auth Token * delete - (Defaults to 20 minutes), when destroying the Auth Token

Import

AuthTokens can be imported using the id, e.g.

$ terraform import oci_identity_domains_auth_token.test_auth_token "idcsEndpoint/{idcsEndpoint}/authTokens/{authTokenId}"