Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.CapacityManagement.getOccCapacityRequest
Explore with Pulumi AI
This data source provides details about a specific Occ Capacity Request resource in Oracle Cloud Infrastructure Capacity Management service.
Get details about the capacity request.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccCapacityRequest = oci.CapacityManagement.getOccCapacityRequest({
    occCapacityRequestId: testOccCapacityRequestOciCapacityManagementOccCapacityRequest.id,
});
import pulumi
import pulumi_oci as oci
test_occ_capacity_request = oci.CapacityManagement.get_occ_capacity_request(occ_capacity_request_id=test_occ_capacity_request_oci_capacity_management_occ_capacity_request["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/capacitymanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := capacitymanagement.GetOccCapacityRequest(ctx, &capacitymanagement.GetOccCapacityRequestArgs{
			OccCapacityRequestId: testOccCapacityRequestOciCapacityManagementOccCapacityRequest.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testOccCapacityRequest = Oci.CapacityManagement.GetOccCapacityRequest.Invoke(new()
    {
        OccCapacityRequestId = testOccCapacityRequestOciCapacityManagementOccCapacityRequest.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.CapacityManagementFunctions;
import com.pulumi.oci.CapacityManagement.inputs.GetOccCapacityRequestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testOccCapacityRequest = CapacityManagementFunctions.getOccCapacityRequest(GetOccCapacityRequestArgs.builder()
            .occCapacityRequestId(testOccCapacityRequestOciCapacityManagementOccCapacityRequest.id())
            .build());
    }
}
variables:
  testOccCapacityRequest:
    fn::invoke:
      function: oci:CapacityManagement:getOccCapacityRequest
      arguments:
        occCapacityRequestId: ${testOccCapacityRequestOciCapacityManagementOccCapacityRequest.id}
Using getOccCapacityRequest
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getOccCapacityRequest(args: GetOccCapacityRequestArgs, opts?: InvokeOptions): Promise<GetOccCapacityRequestResult>
function getOccCapacityRequestOutput(args: GetOccCapacityRequestOutputArgs, opts?: InvokeOptions): Output<GetOccCapacityRequestResult>def get_occ_capacity_request(occ_capacity_request_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetOccCapacityRequestResult
def get_occ_capacity_request_output(occ_capacity_request_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetOccCapacityRequestResult]func LookupOccCapacityRequest(ctx *Context, args *LookupOccCapacityRequestArgs, opts ...InvokeOption) (*LookupOccCapacityRequestResult, error)
func LookupOccCapacityRequestOutput(ctx *Context, args *LookupOccCapacityRequestOutputArgs, opts ...InvokeOption) LookupOccCapacityRequestResultOutput> Note: This function is named LookupOccCapacityRequest in the Go SDK.
public static class GetOccCapacityRequest 
{
    public static Task<GetOccCapacityRequestResult> InvokeAsync(GetOccCapacityRequestArgs args, InvokeOptions? opts = null)
    public static Output<GetOccCapacityRequestResult> Invoke(GetOccCapacityRequestInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOccCapacityRequestResult> getOccCapacityRequest(GetOccCapacityRequestArgs args, InvokeOptions options)
public static Output<GetOccCapacityRequestResult> getOccCapacityRequest(GetOccCapacityRequestArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CapacityManagement/getOccCapacityRequest:getOccCapacityRequest
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OccCapacity stringRequest Id 
- The OCID of the capacity request.
- OccCapacity stringRequest Id 
- The OCID of the capacity request.
- occCapacity StringRequest Id 
- The OCID of the capacity request.
- occCapacity stringRequest Id 
- The OCID of the capacity request.
- occ_capacity_ strrequest_ id 
- The OCID of the capacity request.
- occCapacity StringRequest Id 
- The OCID of the capacity request.
getOccCapacityRequest Result
The following output properties are available:
- AvailabilityDomain string
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- CompartmentId string
- The OCID of the tenancy from which the request was made.
- DateExpected stringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Meaningful text about the capacity request.
- Details
List<GetOcc Capacity Request Detail> 
- A list of resources requested as part of this request
- DisplayName string
- The display name of the capacity request.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of the capacity request.
- LifecycleDetails string
- 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 string
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
- OccAvailability stringCatalog Id 
- The OCID of the availability catalog against which the capacity request was placed.
- OccCapacity stringRequest Id 
- OccCustomer stringGroup Id 
- The OCID of the customer group to which this customer belongs to.
- PatchOperations List<GetOcc Capacity Request Patch Operation> 
- Region string
- The name of the region for which the capacity request was made.
- RequestState string
- The different states the capacity request goes through.
- RequestType string
- Type of Capacity Request(New or Transfer)
- State string
- The current lifecycle state of the resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time when the capacity request was created.
- TimeUpdated string
- The time when the capacity request was updated.
- AvailabilityDomain string
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- CompartmentId string
- The OCID of the tenancy from which the request was made.
- DateExpected stringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Meaningful text about the capacity request.
- Details
[]GetOcc Capacity Request Detail 
- A list of resources requested as part of this request
- DisplayName string
- The display name of the capacity request.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of the capacity request.
- LifecycleDetails string
- 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 string
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
- OccAvailability stringCatalog Id 
- The OCID of the availability catalog against which the capacity request was placed.
- OccCapacity stringRequest Id 
- OccCustomer stringGroup Id 
- The OCID of the customer group to which this customer belongs to.
- PatchOperations []GetOcc Capacity Request Patch Operation 
- Region string
- The name of the region for which the capacity request was made.
- RequestState string
- The different states the capacity request goes through.
- RequestType string
- Type of Capacity Request(New or Transfer)
- State string
- The current lifecycle state of the resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time when the capacity request was created.
- TimeUpdated string
- The time when the capacity request was updated.
- availabilityDomain String
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartmentId String
- The OCID of the tenancy from which the request was made.
- dateExpected StringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Meaningful text about the capacity request.
- details
List<GetOcc Capacity Request Detail> 
- A list of resources requested as part of this request
- displayName String
- The display name of the capacity request.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of the capacity request.
- lifecycleDetails String
- 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 String
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
- occAvailability StringCatalog Id 
- The OCID of the availability catalog against which the capacity request was placed.
- occCapacity StringRequest Id 
- occCustomer StringGroup Id 
- The OCID of the customer group to which this customer belongs to.
- patchOperations List<GetOcc Capacity Request Patch Operation> 
- region String
- The name of the region for which the capacity request was made.
- requestState String
- The different states the capacity request goes through.
- requestType String
- Type of Capacity Request(New or Transfer)
- state String
- The current lifecycle state of the resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time when the capacity request was created.
- timeUpdated String
- The time when the capacity request was updated.
- availabilityDomain string
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartmentId string
- The OCID of the tenancy from which the request was made.
- dateExpected stringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- Meaningful text about the capacity request.
- details
GetOcc Capacity Request Detail[] 
- A list of resources requested as part of this request
- displayName string
- The display name of the capacity request.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The OCID of the capacity request.
- lifecycleDetails string
- 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 string
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
- occAvailability stringCatalog Id 
- The OCID of the availability catalog against which the capacity request was placed.
- occCapacity stringRequest Id 
- occCustomer stringGroup Id 
- The OCID of the customer group to which this customer belongs to.
- patchOperations GetOcc Capacity Request Patch Operation[] 
- region string
- The name of the region for which the capacity request was made.
- requestState string
- The different states the capacity request goes through.
- requestType string
- Type of Capacity Request(New or Transfer)
- state string
- The current lifecycle state of the resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time when the capacity request was created.
- timeUpdated string
- The time when the capacity request was updated.
- availability_domain str
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartment_id str
- The OCID of the tenancy from which the request was made.
- date_expected_ strcapacity_ handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- Meaningful text about the capacity request.
- details
Sequence[GetOcc Capacity Request Detail] 
- A list of resources requested as part of this request
- display_name str
- The display name of the capacity request.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The OCID of the capacity request.
- lifecycle_details str
- 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 str
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
- occ_availability_ strcatalog_ id 
- The OCID of the availability catalog against which the capacity request was placed.
- occ_capacity_ strrequest_ id 
- occ_customer_ strgroup_ id 
- The OCID of the customer group to which this customer belongs to.
- patch_operations Sequence[GetOcc Capacity Request Patch Operation] 
- region str
- The name of the region for which the capacity request was made.
- request_state str
- The different states the capacity request goes through.
- request_type str
- Type of Capacity Request(New or Transfer)
- state str
- The current lifecycle state of the resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time when the capacity request was created.
- time_updated str
- The time when the capacity request was updated.
- availabilityDomain String
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartmentId String
- The OCID of the tenancy from which the request was made.
- dateExpected StringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Meaningful text about the capacity request.
- details List<Property Map>
- A list of resources requested as part of this request
- displayName String
- The display name of the capacity request.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of the capacity request.
- lifecycleDetails String
- 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 String
- The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
- occAvailability StringCatalog Id 
- The OCID of the availability catalog against which the capacity request was placed.
- occCapacity StringRequest Id 
- occCustomer StringGroup Id 
- The OCID of the customer group to which this customer belongs to.
- patchOperations List<Property Map>
- region String
- The name of the region for which the capacity request was made.
- requestState String
- The different states the capacity request goes through.
- requestType String
- Type of Capacity Request(New or Transfer)
- state String
- The current lifecycle state of the resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time when the capacity request was created.
- timeUpdated String
- The time when the capacity request was updated.
Supporting Types
GetOccCapacityRequestDetail    
- ActualHandover stringQuantity 
- The actual handed over quantity of resources at the time of request resolution.
- AssociatedOcc List<GetHandover Resource Block Lists Occ Capacity Request Detail Associated Occ Handover Resource Block List> 
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- AvailabilityDomain string
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- DateActual stringHandover 
- The date on which the actual handover quantity of resources is delivered.
- DateExpected stringHandover 
- The date on which the latest increment to supplied quantity of resources was delivered.
- DemandQuantity string
- The number of compute server's with name required by the user.
- ExpectedHandover stringQuantity 
- The incremental quantity of resources supplied as the provisioning is underway.
- ResourceName string
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- ResourceType string
- The type of the resource against which the user wants to place a capacity request.
- SourceWorkload stringType 
- The WorkloadType from where capacity request are to be transferred.
- WorkloadType string
- The type of the workload (Generic/ROW).
- ActualHandover stringQuantity 
- The actual handed over quantity of resources at the time of request resolution.
- AssociatedOcc []GetHandover Resource Block Lists Occ Capacity Request Detail Associated Occ Handover Resource Block List 
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- AvailabilityDomain string
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- DateActual stringHandover 
- The date on which the actual handover quantity of resources is delivered.
- DateExpected stringHandover 
- The date on which the latest increment to supplied quantity of resources was delivered.
- DemandQuantity string
- The number of compute server's with name required by the user.
- ExpectedHandover stringQuantity 
- The incremental quantity of resources supplied as the provisioning is underway.
- ResourceName string
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- ResourceType string
- The type of the resource against which the user wants to place a capacity request.
- SourceWorkload stringType 
- The WorkloadType from where capacity request are to be transferred.
- WorkloadType string
- The type of the workload (Generic/ROW).
- actualHandover StringQuantity 
- The actual handed over quantity of resources at the time of request resolution.
- associatedOcc List<GetHandover Resource Block Lists Occ Capacity Request Detail Associated Occ Handover Resource Block List> 
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- availabilityDomain String
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- dateActual StringHandover 
- The date on which the actual handover quantity of resources is delivered.
- dateExpected StringHandover 
- The date on which the latest increment to supplied quantity of resources was delivered.
- demandQuantity String
- The number of compute server's with name required by the user.
- expectedHandover StringQuantity 
- The incremental quantity of resources supplied as the provisioning is underway.
- resourceName String
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resourceType String
- The type of the resource against which the user wants to place a capacity request.
- sourceWorkload StringType 
- The WorkloadType from where capacity request are to be transferred.
- workloadType String
- The type of the workload (Generic/ROW).
- actualHandover stringQuantity 
- The actual handed over quantity of resources at the time of request resolution.
- associatedOcc GetHandover Resource Block Lists Occ Capacity Request Detail Associated Occ Handover Resource Block List[] 
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- availabilityDomain string
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- dateActual stringHandover 
- The date on which the actual handover quantity of resources is delivered.
- dateExpected stringHandover 
- The date on which the latest increment to supplied quantity of resources was delivered.
- demandQuantity string
- The number of compute server's with name required by the user.
- expectedHandover stringQuantity 
- The incremental quantity of resources supplied as the provisioning is underway.
- resourceName string
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resourceType string
- The type of the resource against which the user wants to place a capacity request.
- sourceWorkload stringType 
- The WorkloadType from where capacity request are to be transferred.
- workloadType string
- The type of the workload (Generic/ROW).
- actual_handover_ strquantity 
- The actual handed over quantity of resources at the time of request resolution.
- associated_occ_ Sequence[Gethandover_ resource_ block_ lists Occ Capacity Request Detail Associated Occ Handover Resource Block List] 
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- availability_domain str
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- date_actual_ strhandover 
- The date on which the actual handover quantity of resources is delivered.
- date_expected_ strhandover 
- The date on which the latest increment to supplied quantity of resources was delivered.
- demand_quantity str
- The number of compute server's with name required by the user.
- expected_handover_ strquantity 
- The incremental quantity of resources supplied as the provisioning is underway.
- resource_name str
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resource_type str
- The type of the resource against which the user wants to place a capacity request.
- source_workload_ strtype 
- The WorkloadType from where capacity request are to be transferred.
- workload_type str
- The type of the workload (Generic/ROW).
- actualHandover StringQuantity 
- The actual handed over quantity of resources at the time of request resolution.
- associatedOcc List<Property Map>Handover Resource Block Lists 
- A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- availabilityDomain String
- The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- dateActual StringHandover 
- The date on which the actual handover quantity of resources is delivered.
- dateExpected StringHandover 
- The date on which the latest increment to supplied quantity of resources was delivered.
- demandQuantity String
- The number of compute server's with name required by the user.
- expectedHandover StringQuantity 
- The incremental quantity of resources supplied as the provisioning is underway.
- resourceName String
- The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resourceType String
- The type of the resource against which the user wants to place a capacity request.
- sourceWorkload StringType 
- The WorkloadType from where capacity request are to be transferred.
- workloadType String
- The type of the workload (Generic/ROW).
GetOccCapacityRequestDetailAssociatedOccHandoverResourceBlockList          
- HandoverQuantity string
- The total quantity of the resource that was made available to the customer as part of this resource block
- OccHandover stringResource Block Id 
- The OCID of the handed over resource block.
- HandoverQuantity string
- The total quantity of the resource that was made available to the customer as part of this resource block
- OccHandover stringResource Block Id 
- The OCID of the handed over resource block.
- handoverQuantity String
- The total quantity of the resource that was made available to the customer as part of this resource block
- occHandover StringResource Block Id 
- The OCID of the handed over resource block.
- handoverQuantity string
- The total quantity of the resource that was made available to the customer as part of this resource block
- occHandover stringResource Block Id 
- The OCID of the handed over resource block.
- handover_quantity str
- The total quantity of the resource that was made available to the customer as part of this resource block
- occ_handover_ strresource_ block_ id 
- The OCID of the handed over resource block.
- handoverQuantity String
- The total quantity of the resource that was made available to the customer as part of this resource block
- occHandover StringResource Block Id 
- The OCID of the handed over resource block.
GetOccCapacityRequestPatchOperation     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.