oci_delegate_access_control_delegation_control
This resource provides the Delegation Control resource in Oracle Cloud Infrastructure Delegate Access Control service.
Creates a Delegation Control.
Example Usage
resource "oci_delegate_access_control_delegation_control" "test_delegation_control" {
#Required
compartment_id = var.compartment_id
delegation_subscription_ids = var.delegation_control_delegation_subscription_ids
display_name = var.delegation_control_display_name
notification_message_format = var.delegation_control_notification_message_format
notification_topic_id = oci_ons_notification_topic.test_notification_topic.id
resource_ids = var.delegation_control_resource_ids
resource_type = var.delegation_control_resource_type
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
description = var.delegation_control_description
freeform_tags = {"Department"= "Finance"}
is_auto_approve_during_maintenance = var.delegation_control_is_auto_approve_during_maintenance
num_approvals_required = var.delegation_control_num_approvals_required
pre_approved_service_provider_action_names = var.delegation_control_pre_approved_service_provider_action_names
vault_id = oci_kms_vault.test_vault.id
vault_key_id = oci_kms_key.test_key.id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) (Updatable) The OCID of the compartment that contains this Delegation Control.defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
delegation_subscription_ids
- (Required) (Updatable) List of Delegation Subscription OCID that are allowed for this Delegation Control. The allowed subscriptions will determine the available Service Provider Actions. Only support operators for the allowed subscriptions are allowed to create Delegated Resource Access Request.description
- (Optional) (Updatable) Description of the Delegation Control.display_name
- (Required) (Updatable) Name of the Delegation Control. The name does not need to be unique.freeform_tags
- (Optional) (Updatable) 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. Example:{"Department": "Finance"}
is_auto_approve_during_maintenance
- (Optional) (Updatable) Set to true to allow all Delegated Resource Access Request to be approved automatically during maintenance.notification_message_format
- (Required) (Updatable) The format of the Oracle Cloud Infrastructure Notification messages for this Delegation Control.notification_topic_id
- (Required) (Updatable) The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Delegation Control.num_approvals_required
- (Optional) (Updatable) number of approvals required.pre_approved_service_provider_action_names
- (Optional) (Updatable) List of pre-approved Service Provider Action names. The list of pre-defined Service Provider Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access Requests associated with a resource governed by this Delegation Control will be automatically approved if the Delegated Resource Access Request only contain Service Provider Actions in the pre-approved list.resource_ids
- (Required) (Updatable) The OCID of the selected resources that this Delegation Control is applicable to.resource_type
- (Required) Resource type for which the Delegation Control is applicable to.vault_id
- (Optional) The OCID of the Oracle Cloud Infrastructure Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the Oracle Cloud Infrastructure Vault.vault_key_id
- (Optional) The OCID of the Master Encryption Key in the Oracle Cloud Infrastructure Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER.
** 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:
compartment_id
- The OCID of the compartment that contains the Delegation Control.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
delegation_subscription_ids
- List of Delegation Subscription OCID that are allowed for this Delegation Control. The allowed subscriptions will determine the available Service Provider Actions. Only support operators for the allowed subscriptions are allowed to create Delegated Resource Access Request.description
- Description of the Delegation Control.display_name
- Name of the Delegation Control. The name does not need to be unique.freeform_tags
- 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. Example:{"Department": "Finance"}
id
- The OCID of the Delegation Control.is_auto_approve_during_maintenance
- Set to true to allow all Delegated Resource Access Request to be approved automatically during maintenance.lifecycle_state_details
- Description of the current lifecycle state in more detail.notification_message_format
- The format of the Oracle Cloud Infrastructure Notification messages for this Delegation Control.notification_topic_id
- The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Delegation Control.num_approvals_required
- number of approvals required.pre_approved_service_provider_action_names
- List of pre-approved Service Provider Action names. The list of pre-defined Service Provider Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access Requests associated with a resource governed by this Delegation Control will be automatically approved if the Delegated Resource Access Request only contain Service Provider Actions in the pre-approved list.resource_ids
- The OCID of the selected resources that this Delegation Control is applicable to.resource_type
- Resource type for which the Delegation Control is applicable to.state
- The current lifecycle state of the Delegation Control.system_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- Time when the Delegation Control was created expressed in RFC 3339 timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’time_deleted
- Time when the Delegation Control was deleted expressed in RFC 3339timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’. Note a deleted Delegation Control still stays in the system, so that you can still audit Service Provider Actions associated with Delegated Resource Access Requests raised on target resources governed by the deleted Delegation Control.time_updated
- Time when the Delegation Control was last modified expressed in RFC 3339 timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’vault_id
- The OCID of the Oracle Cloud Infrastructure Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the Oracle Cloud Infrastructure Vault.vault_key_id
- The OCID of the Master Encryption Key in the Oracle Cloud Infrastructure Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Delegation Control
* update
- (Defaults to 20 minutes), when updating the Delegation Control
* delete
- (Defaults to 20 minutes), when destroying the Delegation Control
Import
DelegationControls can be imported using the id
, e.g.
$ terraform import oci_delegate_access_control_delegation_control.test_delegation_control "id"