oci_identity_domains_api_key

This resource provides the Api Key resource in Oracle Cloud Infrastructure Identity Domains service.

Create a user’s API key.

Example Usage

resource "oci_identity_domains_api_key" "test_api_key" {
	#Required
	idcs_endpoint = data.oci_identity_domain.test_domain.url
	key = var.api_key_key
	schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:apikey"]

	#Optional
	attribute_sets = []
	attributes = ""
	authorization = var.api_key_authorization
	description = var.api_key_description
	id = var.api_key_id
	ocid = var.api_key_ocid
	resource_type_schema_version = var.api_key_resource_type_schema_version
	tags {
		#Required
		key = var.api_key_tags_key
		value = var.api_key_tags_value
	}
	urnietfparamsscimschemasoracleidcsextensionself_change_user {

		#Optional
		allow_self_change = var.api_key_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 Api Key * update - (Defaults to 20 minutes), when updating the Api Key * delete - (Defaults to 20 minutes), when destroying the Api Key

Import

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

$ terraform import oci_identity_domains_api_key.test_api_key "idcsEndpoint/{idcsEndpoint}/apiKeys/{apiKeyId}"