Data Source: oci_capacity_management_occ_capacity_requests
This data source provides the list of Occ Capacity Requests in Oracle Cloud Infrastructure Capacity Management service.
Lists all capacity requests.
Example Usage
data "oci_capacity_management_occ_capacity_requests" "test_occ_capacity_requests" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.occ_capacity_request_display_name
id = var.occ_capacity_request_id
namespace = var.occ_capacity_request_namespace
occ_availability_catalog_id = oci_capacity_management_occ_availability_catalog.test_occ_availability_catalog.id
request_type = var.occ_capacity_request_request_type
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.display_name
- (Optional) A filter to return only the resources that match the entire display name. The match is not case sensitive.id
- (Optional) A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission.namespace
- (Optional) The namespace by which we would filter the list.occ_availability_catalog_id
- (Optional) A filter to return the list of capacity requests based on the OCID of the availability catalog against which they were created.request_type
- (Optional) A filter to return only the resources that match the request type. The match is not case sensitive.
Attributes Reference
The following attributes are exported:
occ_capacity_request_collection
- The list of occ_capacity_request_collection.
OccCapacityRequest Reference
The following attributes are exported:
availability_domain
- The availability domain (AD) for which the capacity request was made.compartment_id
- The OCID of the tenancy from which the request was made.date_expected_capacity_handover
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- Meaningful text about the capacity request.details
- A list of resources requested as part of this requestactual_handover_quantity
- The actual handed over quantity of resources at the time of request resolution.associated_occ_handover_resource_block_list
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.handover_quantity
- The total quantity of the resource that was made available to the customer as part of this resource blockocc_handover_resource_block_id
- The OCID of the handed over resource block.
availability_domain
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.date_actual_handover
- The date on which the actual handover quantity of resources is delivered.date_expected_handover
- The date on which the latest increment to supplied quantity of resources was delivered.demand_quantity
- The number of compute server’s with namerequired by the user. expected_handover_quantity
- The incremental quantity of resources supplied as the provisioning is underway.resource_name
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.resource_type
- The type of the resource against which the user wants to place a capacity request.source_workload_type
- The WorkloadType from where capacity request are to be transferred.workload_type
- The type of the workload (Generic/ROW).
display_name
- The display name of the capacity request.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- The OCID of the capacity request.lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.namespace
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.occ_availability_catalog_id
- The OCID of the availability catalog against which the capacity request was placed.occ_customer_group_id
- The OCID of the customer group to which this customer belongs to.region
- The name of the region for which the capacity request was made.request_state
- The different states the capacity request goes through.request_type
- Type of Capacity Request(New or Transfer)state
- The current lifecycle state of the resource.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
- The time when the capacity request was created.time_updated
- The time when the capacity request was updated.