domains
Creates, updates, deletes, gets or lists a domains resource.
Overview​
| Name | domains |
| Type | Resource |
| Id | oci.identity.domains |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The identity domain was retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the identity domain. |
compartmentId | string | The OCID of the compartment containing the identity domain. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
description | string | The identity domain description. You can have an empty description. |
displayName | string | The mutable display name of the identity domain. |
freeformTags | object | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
homeRegion | string | The home region for the identity domain. See [Regions and Availability Domains](/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: us-phoenix-1 |
homeRegionUrl | string | Region-specific identity domain URL. |
isHiddenOnLogin | boolean | Indicates whether the identity domain is hidden on the sign-in screen or not. |
licenseType | string | The license type of the identity domain. |
lifecycleDetails | string | Any additional details about the current state of the identity domain. (DEACTIVATING, ACTIVATING, UPDATING) |
lifecycleState | string | The current state. (CREATING, ACTIVE, DELETING, INACTIVE) |
replicaRegions | array | The regions where replicas of the identity domain exist. |
timeCreated | string (date-time) | Date and time the identity domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z |
type | string | The type of the domain. (DEFAULT, SECONDARY) |
url | string | Region-agnostic identity domain URL. |
(For tenancies that support identity domains) As the name suggests, a DomainSummary object contains information about a Domain.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the identity domain. |
compartmentId | string | The OCID of the compartment containing the identity domain. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
description | string | The identity domain description. You can have an empty description. |
displayName | string | The mutable display name of the identity domain. |
freeformTags | object | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
homeRegion | string | The home region for the identity domain. |
homeRegionUrl | string | Region-specific identity domain URL. |
isHiddenOnLogin | boolean | Indicates whether the identity domain is hidden on the sign-in screen or not. |
licenseType | string | The license type of the identity domain. |
lifecycleDetails | string | Any additional details about the current state of the identity domain. (DEACTIVATING, ACTIVATING, UPDATING) |
lifecycleState | string | The current state. (CREATING, ACTIVE, DELETING, INACTIVE) (x-obmcs-enumref: #/definitions/Domain/lifecycleState) |
replicaRegions | array | The regions where replicas of the identity domain exist. |
timeCreated | string (date-time) | Date and time the identity domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z |
type | string | The type of the identity domain. (DEFAULT, SECONDARY) (x-obmcs-enumref: #/definitions/Domain/type) |
url | string | Region-agnostic identity domain URL. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domainId, region | opc-request-id | (For tenancies that support identity domains) Gets the specified identity domain's information.<br /> |
list | select | compartmentId, region | displayName, url, homeRegionUrl, type, licenseType, isHiddenOnLogin, page, limit, name, sortBy, sortOrder, opc-request-id, lifecycleState | (For tenancies that support identity domains) Lists all identity domains within a tenancy.<br /> |
create | insert | region, compartmentId, displayName, description, homeRegion, licenseType | opc-retry-token, opc-request-id | (For tenancies that support identity domains) Creates a new identity domain in the tenancy with the identity domain home in homeRegion.<br />After you send your request, the temporary lifecycleState of this identity domain is set to CREATING and lifecycleDetails to UPDATING.<br />When creation of the identity domain completes, this identity domain's lifecycleState is set to ACTIVE and lifecycleDetails to null.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /><br />After creating an identity domain, first make sure its lifecycleState changes from CREATING to ACTIVE before you use it.<br /> |
update | update | domainId, region | if-match, opc-request-id | (For tenancies that support identity domains) Updates identity domain information and the associated Identity Cloud Service (IDCS) stripe.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
delete | delete | domainId, region | if-match, opc-request-id | (For tenancies that support identity domains) Deletes an identity domain. The identity domain must have no active apps present in<br />the underlying IDCS stripe. You must also deactivate the identity domain, rendering the lifecycleState of the identity domain INACTIVE.<br />Furthermore, as the authenticated user performing the operation, you cannot be a member of the identity domain you are deleting.<br />Lastly, you cannot delete the default identity domain. A tenancy must always have at least the default identity domain.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
activate_domain | exec | domainId, region | opc-request-id, opc-retry-token, if-match | (For tenancies that support identity domains) Activates a deactivated identity domain. You can only activate identity domains that your user account is not a part of.<br /><br />After you send the request, the lifecycleDetails of the identity domain is set to ACTIVATING. When the operation completes, the<br />lifecycleDetails is set to null and the lifecycleState of the identity domain is set to ACTIVE.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
change_compartment | exec | domainId, region, compartmentId | opc-request-id, opc-retry-token, if-match | (For tenancies that support identity domains) Moves the identity domain to a different compartment in the tenancy.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
change_domain_license_type | exec | domainId, region | opc-request-id, opc-retry-token, if-match | (For tenancies that support identity domains) Changes the license type of the given identity domain. The identity domain's<br />lifecycleState must be set to ACTIVE and the requested licenseType must be allowed. To retrieve the allowed licenseType for<br />the identity domain, use [ListAllowedDomainLicenseTypes](#/en/identity/20160918/Domain/ListAllowedDomainLicenseTypes).<br /><br />After you send your request, the lifecycleDetails of this identity domain is set to UPDATING. When the update of the identity<br />domain completes, then the lifecycleDetails is set to null.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
deactivate_domain | exec | domainId, region | isForceDeactivate, opc-request-id, opc-retry-token, if-match | (For tenancies that support identity domains) Deactivates the specified identity domain. Identity domains must be in an ACTIVE<br />lifecycleState and have no active apps present in the domain or underlying Identity Cloud Service stripe. You cannot deactivate<br />the default identity domain.<br /><br />After you send your request, the lifecycleDetails of this identity domain is set to DEACTIVATING. When the operation completes,<br />then the lifecycleDetails is set to null and the lifecycleState is set to INACTIVE.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
enable_replication_to_region | exec | domainId, region | opc-request-id, opc-retry-token, if-match | (For tenancies that support identity domains) Replicates the identity domain to a new region (provided that the region is the<br />tenancy home region or other region that the tenancy subscribes to). You can only replicate identity domains that are in an ACTIVE<br />lifecycleState and not currently updating or already replicating. You also can only trigger the replication of secondary identity domains.<br />The default identity domain is automatically replicated to all regions that the tenancy subscribes to.<br /><br />After you send the request, the state of the identity domain in the replica region is set to ENABLING_REPLICATION. When the operation<br />completes, the state is set to REPLICATION_ENABLED.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /> |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The OCID of the compartment (remember that the tenancy is simply the root compartment). |
domainId | string | The OCID of the identity domain. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
displayName | string | The mutable display name of the identity domain. |
homeRegionUrl | string | The region-specific identity domain URL. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
isForceDeactivate | boolean | Indicates whether domain can be forcefully deactivated even when there are Active Apps present |
isHiddenOnLogin | boolean | Indicates whether or not the identity domain is visible at the sign-in screen. |
licenseType | string | The license type of the identity domain. |
lifecycleState | string | A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. |
limit | integer | The maximum number of items to return in a paginated "List" call. |
name | string | A filter to only return resources that match the given name exactly. |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). |
page | string | The value of the opc-next-page response header from the previous "List" call. |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive. Note: In general, some "List" operations (for example, ListInstances) let you optionally filter by Availability Domain if the scope of the resource type is within a single Availability Domain. If you call one of these "List" operations without specifying an Availability Domain, the resources are grouped by Availability Domain, then sorted. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). The NAME sort order is case sensitive. |
type | string | The identity domain type. |
url | string | The region-agnostic identity domain URL. |
SELECT examples​
- get
- list
(For tenancies that support identity domains) Gets the specified identity domain's information.<br />
SELECT
id,
compartmentId,
definedTags,
description,
displayName,
freeformTags,
homeRegion,
homeRegionUrl,
isHiddenOnLogin,
licenseType,
lifecycleDetails,
lifecycleState,
replicaRegions,
timeCreated,
type,
url
FROM oci.identity.domains
WHERE domainId = '{{ domainId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
(For tenancies that support identity domains) Lists all identity domains within a tenancy.<br />
SELECT
id,
compartmentId,
definedTags,
description,
displayName,
freeformTags,
homeRegion,
homeRegionUrl,
isHiddenOnLogin,
licenseType,
lifecycleDetails,
lifecycleState,
replicaRegions,
timeCreated,
type,
url
FROM oci.identity.domains
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND displayName = '{{ displayName }}'
AND url = '{{ url }}'
AND homeRegionUrl = '{{ homeRegionUrl }}'
AND type = '{{ type }}'
AND licenseType = '{{ licenseType }}'
AND isHiddenOnLogin = '{{ isHiddenOnLogin }}'
AND page = '{{ page }}'
AND limit = '{{ limit }}'
AND name = '{{ name }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND opc-request-id = '{{ opc-request-id }}'
AND lifecycleState = '{{ lifecycleState }}'
;
INSERT examples​
- create
- Manifest
(For tenancies that support identity domains) Creates a new identity domain in the tenancy with the identity domain home in homeRegion.<br />After you send your request, the temporary lifecycleState of this identity domain is set to CREATING and lifecycleDetails to UPDATING.<br />When creation of the identity domain completes, this identity domain's lifecycleState is set to ACTIVE and lifecycleDetails to null.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br /><br />After creating an identity domain, first make sure its lifecycleState changes from CREATING to ACTIVE before you use it.<br />
INSERT INTO oci.identity.domains (
adminEmail,
adminFirstName,
adminLastName,
adminUserName,
compartmentId,
definedTags,
description,
displayName,
freeformTags,
homeRegion,
isHiddenOnLogin,
isNotificationBypassed,
isPrimaryEmailRequired,
licenseType,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ adminEmail }}',
'{{ adminFirstName }}',
'{{ adminLastName }}',
'{{ adminUserName }}',
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ description }}' /* required */,
'{{ displayName }}' /* required */,
'{{ freeformTags }}',
'{{ homeRegion }}' /* required */,
{{ isHiddenOnLogin }},
{{ isNotificationBypassed }},
{{ isPrimaryEmailRequired }},
'{{ licenseType }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
;
# Description fields are for documentation purposes
- name: domains
props:
- name: region
value: "{{ region }}"
description: Required parameter for the domains resource.
- name: adminEmail
value: "{{ adminEmail }}"
description: |
The administrator's email address.
- name: adminFirstName
value: "{{ adminFirstName }}"
description: |
The administrator's first name.
- name: adminLastName
value: "{{ adminLastName }}"
description: |
The administrator's last name.
- name: adminUserName
value: "{{ adminUserName }}"
description: |
The administrator's user name.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The OCID of the compartment where the identity domain is created.
- name: definedTags
value: "{{ definedTags }}"
description: |
Defined tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
Example: `{"Operations": {"CostCenter": "42"}}`
- name: description
value: "{{ description }}"
description: |
The identity domain description. You can have an empty description.
- name: displayName
value: "{{ displayName }}"
description: |
The mutable display name of the identity domain.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
Example: `{"Department": "Finance"}`
- name: homeRegion
value: "{{ homeRegion }}"
description: |
The region's name identifier. See [Regions and Availability Domains](/Content/General/Concepts/regions.htm)
for the full list of supported region names.
Example: `us-phoenix-1`
- name: isHiddenOnLogin
value: {{ isHiddenOnLogin }}
description: |
Indicates whether the identity domain is hidden on the sign-in screen or not.
- name: isNotificationBypassed
value: {{ isNotificationBypassed }}
description: |
Indicates whether or not the administrator user created in the IDCS stripe would like to receive notifications like a welcome email.
This field is required only if admin information is provided. This field is otherwise optional.
- name: isPrimaryEmailRequired
value: {{ isPrimaryEmailRequired }}
description: |
Optional field to indicate whether users in the identity domain are required to have a primary email address or not. The default is true.
- name: licenseType
value: "{{ licenseType }}"
description: |
The license type of the identity domain.
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
UPDATE examples​
- update
(For tenancies that support identity domains) Updates identity domain information and the associated Identity Cloud Service (IDCS) stripe.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
UPDATE oci.identity.domains
SET
definedTags = '{{ definedTags }}',
description = '{{ description }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
isHiddenOnLogin = {{ isHiddenOnLogin }}
WHERE
domainId = '{{ domainId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}';
DELETE examples​
- delete
(For tenancies that support identity domains) Deletes an identity domain. The identity domain must have no active apps present in<br />the underlying IDCS stripe. You must also deactivate the identity domain, rendering the lifecycleState of the identity domain INACTIVE.<br />Furthermore, as the authenticated user performing the operation, you cannot be a member of the identity domain you are deleting.<br />Lastly, you cannot delete the default identity domain. A tenancy must always have at least the default identity domain.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
DELETE FROM oci.identity.domains
WHERE domainId = '{{ domainId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;
Lifecycle Methods​
- activate_domain
- change_compartment
- change_domain_license_type
- deactivate_domain
- enable_replication_to_region
(For tenancies that support identity domains) Activates a deactivated identity domain. You can only activate identity domains that your user account is not a part of.<br /><br />After you send the request, the lifecycleDetails of the identity domain is set to ACTIVATING. When the operation completes, the<br />lifecycleDetails is set to null and the lifecycleState of the identity domain is set to ACTIVE.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
EXEC oci.identity.domains.activate_domain
@domainId='{{ domainId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}',
@if-match='{{ if-match }}'
;
(For tenancies that support identity domains) Moves the identity domain to a different compartment in the tenancy.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
EXEC oci.identity.domains.change_compartment
@domainId='{{ domainId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}',
@if-match='{{ if-match }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;
(For tenancies that support identity domains) Changes the license type of the given identity domain. The identity domain's<br />lifecycleState must be set to ACTIVE and the requested licenseType must be allowed. To retrieve the allowed licenseType for<br />the identity domain, use [ListAllowedDomainLicenseTypes](#/en/identity/20160918/Domain/ListAllowedDomainLicenseTypes).<br /><br />After you send your request, the lifecycleDetails of this identity domain is set to UPDATING. When the update of the identity<br />domain completes, then the lifecycleDetails is set to null.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
EXEC oci.identity.domains.change_domain_license_type
@domainId='{{ domainId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}',
@if-match='{{ if-match }}'
@@json=
'{
"licenseType": "{{ licenseType }}"
}'
;
(For tenancies that support identity domains) Deactivates the specified identity domain. Identity domains must be in an ACTIVE<br />lifecycleState and have no active apps present in the domain or underlying Identity Cloud Service stripe. You cannot deactivate<br />the default identity domain.<br /><br />After you send your request, the lifecycleDetails of this identity domain is set to DEACTIVATING. When the operation completes,<br />then the lifecycleDetails is set to null and the lifecycleState is set to INACTIVE.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
EXEC oci.identity.domains.deactivate_domain
@domainId='{{ domainId }}' --required,
@region='{{ region }}' --required,
@isForceDeactivate={{ isForceDeactivate }},
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}',
@if-match='{{ if-match }}'
;
(For tenancies that support identity domains) Replicates the identity domain to a new region (provided that the region is the<br />tenancy home region or other region that the tenancy subscribes to). You can only replicate identity domains that are in an ACTIVE<br />lifecycleState and not currently updating or already replicating. You also can only trigger the replication of secondary identity domains.<br />The default identity domain is automatically replicated to all regions that the tenancy subscribes to.<br /><br />After you send the request, the state of the identity domain in the replica region is set to ENABLING_REPLICATION. When the operation<br />completes, the state is set to REPLICATION_ENABLED.<br /><br />To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves<br />the operation's status.<br />
EXEC oci.identity.domains.enable_replication_to_region
@domainId='{{ domainId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}',
@if-match='{{ if-match }}'
@@json=
'{
"replicaRegion": "{{ replicaRegion }}"
}'
;