1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. getOccCapacityRequest
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

oci.CapacityManagement.getOccCapacityRequest

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

    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/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 GetOccCapacityRequest(ctx *Context, args *GetOccCapacityRequestArgs, opts ...InvokeOption) (*GetOccCapacityRequestResult, error)
    func GetOccCapacityRequestOutput(ctx *Context, args *GetOccCapacityRequestOutputArgs, opts ...InvokeOption) GetOccCapacityRequestResultOutput

    > Note: This function is named GetOccCapacityRequest 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CapacityManagement/getOccCapacityRequest:getOccCapacityRequest
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OccCapacityRequestId string
    The OCID of the capacity request.
    OccCapacityRequestId string
    The OCID of the capacity request.
    occCapacityRequestId String
    The OCID of the capacity request.
    occCapacityRequestId string
    The OCID of the capacity request.
    occ_capacity_request_id str
    The OCID of the capacity request.
    occCapacityRequestId String
    The OCID of the capacity request.

    getOccCapacityRequest Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain (AD) for which the capacity request was made.
    CompartmentId string
    The OCID of the tenancy from which the request was made.
    DateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    DefinedTags Dictionary<string, object>
    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<GetOccCapacityRequestDetail>
    A list of resources requested as part of this request
    DisplayName string
    The display name of the capacity request.
    FreeformTags Dictionary<string, object>
    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.
    OccAvailabilityCatalogId string
    The OCID of the availability catalog against which the capacity request was placed.
    OccCapacityRequestId string
    OccCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    PatchOperations List<GetOccCapacityRequestPatchOperation>
    Region string
    The name of the region for which the capacity request was made.
    RequestState string
    The different states the capacity request goes through.
    State string
    The current lifecycle state of the resource.
    SystemTags Dictionary<string, object>
    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 (AD) for which the capacity request was made.
    CompartmentId string
    The OCID of the tenancy from which the request was made.
    DateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    DefinedTags map[string]interface{}
    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 []GetOccCapacityRequestDetail
    A list of resources requested as part of this request
    DisplayName string
    The display name of the capacity request.
    FreeformTags map[string]interface{}
    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.
    OccAvailabilityCatalogId string
    The OCID of the availability catalog against which the capacity request was placed.
    OccCapacityRequestId string
    OccCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    PatchOperations []GetOccCapacityRequestPatchOperation
    Region string
    The name of the region for which the capacity request was made.
    RequestState string
    The different states the capacity request goes through.
    State string
    The current lifecycle state of the resource.
    SystemTags map[string]interface{}
    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 (AD) for which the capacity request was made.
    compartmentId String
    The OCID of the tenancy from which the request was made.
    dateExpectedCapacityHandover String
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    definedTags Map<String,Object>
    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<GetOccCapacityRequestDetail>
    A list of resources requested as part of this request
    displayName String
    The display name of the capacity request.
    freeformTags Map<String,Object>
    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.
    occAvailabilityCatalogId String
    The OCID of the availability catalog against which the capacity request was placed.
    occCapacityRequestId String
    occCustomerGroupId String
    The OCID of the customer group to which this customer belongs to.
    patchOperations List<GetOccCapacityRequestPatchOperation>
    region String
    The name of the region for which the capacity request was made.
    requestState String
    The different states the capacity request goes through.
    state String
    The current lifecycle state of the resource.
    systemTags Map<String,Object>
    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 (AD) for which the capacity request was made.
    compartmentId string
    The OCID of the tenancy from which the request was made.
    dateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    definedTags {[key: string]: any}
    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 GetOccCapacityRequestDetail[]
    A list of resources requested as part of this request
    displayName string
    The display name of the capacity request.
    freeformTags {[key: string]: any}
    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.
    occAvailabilityCatalogId string
    The OCID of the availability catalog against which the capacity request was placed.
    occCapacityRequestId string
    occCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    patchOperations GetOccCapacityRequestPatchOperation[]
    region string
    The name of the region for which the capacity request was made.
    requestState string
    The different states the capacity request goes through.
    state string
    The current lifecycle state of the resource.
    systemTags {[key: string]: any}
    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 (AD) for which the capacity request was made.
    compartment_id str
    The OCID of the tenancy from which the request was made.
    date_expected_capacity_handover str
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    defined_tags Mapping[str, Any]
    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[capacitymanagement.GetOccCapacityRequestDetail]
    A list of resources requested as part of this request
    display_name str
    The display name of the capacity request.
    freeform_tags Mapping[str, Any]
    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_catalog_id str
    The OCID of the availability catalog against which the capacity request was placed.
    occ_capacity_request_id str
    occ_customer_group_id str
    The OCID of the customer group to which this customer belongs to.
    patch_operations Sequence[capacitymanagement.GetOccCapacityRequestPatchOperation]
    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.
    state str
    The current lifecycle state of the resource.
    system_tags Mapping[str, Any]
    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 (AD) for which the capacity request was made.
    compartmentId String
    The OCID of the tenancy from which the request was made.
    dateExpectedCapacityHandover String
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    definedTags Map<Any>
    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.
    freeformTags Map<Any>
    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.
    occAvailabilityCatalogId String
    The OCID of the availability catalog against which the capacity request was placed.
    occCapacityRequestId String
    occCustomerGroupId String
    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.
    state String
    The current lifecycle state of the resource.
    systemTags Map<Any>
    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

    ActualHandoverQuantity string
    The actual handed over quantity of resources at the time of request resolution.
    DateActualHandover string
    The date on which the actual handover quantity of resources is delivered.
    DateExpectedHandover string
    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.
    ExpectedHandoverQuantity string
    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.
    WorkloadType string
    The type of the workload (Generic/ROW).
    ActualHandoverQuantity string
    The actual handed over quantity of resources at the time of request resolution.
    DateActualHandover string
    The date on which the actual handover quantity of resources is delivered.
    DateExpectedHandover string
    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.
    ExpectedHandoverQuantity string
    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.
    WorkloadType string
    The type of the workload (Generic/ROW).
    actualHandoverQuantity String
    The actual handed over quantity of resources at the time of request resolution.
    dateActualHandover String
    The date on which the actual handover quantity of resources is delivered.
    dateExpectedHandover String
    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.
    expectedHandoverQuantity String
    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.
    workloadType String
    The type of the workload (Generic/ROW).
    actualHandoverQuantity string
    The actual handed over quantity of resources at the time of request resolution.
    dateActualHandover string
    The date on which the actual handover quantity of resources is delivered.
    dateExpectedHandover string
    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.
    expectedHandoverQuantity string
    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.
    workloadType string
    The type of the workload (Generic/ROW).
    actual_handover_quantity str
    The actual handed over quantity of resources at the time of request resolution.
    date_actual_handover str
    The date on which the actual handover quantity of resources is delivered.
    date_expected_handover str
    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_quantity str
    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.
    workload_type str
    The type of the workload (Generic/ROW).
    actualHandoverQuantity String
    The actual handed over quantity of resources at the time of request resolution.
    dateActualHandover String
    The date on which the actual handover quantity of resources is delivered.
    dateExpectedHandover String
    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.
    expectedHandoverQuantity String
    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.
    workloadType String
    The type of the workload (Generic/ROW).

    GetOccCapacityRequestPatchOperation

    From string
    Operation string
    Position string
    SelectedItem string
    Selection string
    Value Dictionary<string, object>
    From string
    Operation string
    Position string
    SelectedItem string
    Selection string
    Value map[string]interface{}
    from String
    operation String
    position String
    selectedItem String
    selection String
    value Map<String,Object>
    from string
    operation string
    position string
    selectedItem string
    selection string
    value {[key: string]: any}
    from_ str
    operation str
    position str
    selected_item str
    selection str
    value Mapping[str, Any]
    from String
    operation String
    position String
    selectedItem String
    selection String
    value Map<Any>

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi