Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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 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:
- Occ
Capacity stringRequest Id - The OCID of the capacity request.
- Occ
Capacity stringRequest Id - The OCID of the capacity request.
- occ
Capacity StringRequest Id - The OCID of the capacity request.
- occ
Capacity stringRequest Id - The OCID of the capacity request.
- occ_
capacity_ strrequest_ id - The OCID of the capacity request.
- occ
Capacity StringRequest Id - The OCID of the capacity request.
getOccCapacityRequest Result
The following output properties are available:
- Availability
Domain string - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- Compartment
Id string - The OCID of the tenancy from which the request was made.
- Date
Expected 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<Get
Occ Capacity Request Detail> - A list of resources requested as part of this request
- Display
Name 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.
- Lifecycle
Details 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.
- Occ
Availability stringCatalog Id - The OCID of the availability catalog against which the capacity request was placed.
- Occ
Capacity stringRequest Id - Occ
Customer stringGroup Id - The OCID of the customer group to which this customer belongs to.
- Patch
Operations List<GetOcc Capacity Request Patch Operation> - Region string
- The name of the region for which the capacity request was made.
- Request
State string - The different states the capacity request goes through.
- Request
Type 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"}
- Time
Created string - The time when the capacity request was created.
- Time
Updated string - The time when the capacity request was updated.
- Availability
Domain string - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- Compartment
Id string - The OCID of the tenancy from which the request was made.
- Date
Expected 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
[]Get
Occ Capacity Request Detail - A list of resources requested as part of this request
- Display
Name 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.
- Lifecycle
Details 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.
- Occ
Availability stringCatalog Id - The OCID of the availability catalog against which the capacity request was placed.
- Occ
Capacity stringRequest Id - Occ
Customer stringGroup Id - The OCID of the customer group to which this customer belongs to.
- Patch
Operations []GetOcc Capacity Request Patch Operation - Region string
- The name of the region for which the capacity request was made.
- Request
State string - The different states the capacity request goes through.
- Request
Type 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"}
- Time
Created string - The time when the capacity request was created.
- Time
Updated string - The time when the capacity request was updated.
- availability
Domain String - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartment
Id String - The OCID of the tenancy from which the request was made.
- date
Expected 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<Get
Occ Capacity Request Detail> - A list of resources requested as part of this request
- display
Name 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.
- lifecycle
Details 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.
- occ
Availability StringCatalog Id - The OCID of the availability catalog against which the capacity request was placed.
- occ
Capacity StringRequest Id - occ
Customer StringGroup Id - The OCID of the customer group to which this customer belongs to.
- patch
Operations List<GetOcc Capacity Request Patch Operation> - region String
- The name of the region for which the capacity request was made.
- request
State String - The different states the capacity request goes through.
- request
Type 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"}
- time
Created String - The time when the capacity request was created.
- time
Updated String - The time when the capacity request was updated.
- availability
Domain string - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartment
Id string - The OCID of the tenancy from which the request was made.
- date
Expected 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
Get
Occ Capacity Request Detail[] - A list of resources requested as part of this request
- display
Name 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.
- lifecycle
Details 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.
- occ
Availability stringCatalog Id - The OCID of the availability catalog against which the capacity request was placed.
- occ
Capacity stringRequest Id - occ
Customer stringGroup Id - The OCID of the customer group to which this customer belongs to.
- patch
Operations GetOcc Capacity Request Patch Operation[] - region string
- The name of the region for which the capacity request was made.
- request
State string - The different states the capacity request goes through.
- request
Type 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"}
- time
Created string - The time when the capacity request was created.
- time
Updated 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[capacitymanagement.
Get Occ 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[capacitymanagement.Get Occ 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.
- availability
Domain String - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- compartment
Id String - The OCID of the tenancy from which the request was made.
- date
Expected 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
- display
Name 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.
- lifecycle
Details 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.
- occ
Availability StringCatalog Id - The OCID of the availability catalog against which the capacity request was placed.
- occ
Capacity StringRequest Id - occ
Customer StringGroup Id - The OCID of the customer group to which this customer belongs to.
- patch
Operations List<Property Map> - region String
- The name of the region for which the capacity request was made.
- request
State String - The different states the capacity request goes through.
- request
Type 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"}
- time
Created String - The time when the capacity request was created.
- time
Updated String - The time when the capacity request was updated.
Supporting Types
GetOccCapacityRequestDetail
- Actual
Handover stringQuantity - The actual handed over quantity of resources at the time of request resolution.
- Associated
Occ 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.
- Availability
Domain string - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- Date
Actual stringHandover - The date on which the actual handover quantity of resources is delivered.
- Date
Expected stringHandover - The date on which the latest increment to supplied quantity of resources was delivered.
- Demand
Quantity string - The number of compute server's with name required by the user.
- Expected
Handover stringQuantity - The incremental quantity of resources supplied as the provisioning is underway.
- Resource
Name string - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- Resource
Type string - The type of the resource against which the user wants to place a capacity request.
- Source
Workload stringType - The WorkloadType from where capacity request are to be transferred.
- Workload
Type string - The type of the workload (Generic/ROW).
- Actual
Handover stringQuantity - The actual handed over quantity of resources at the time of request resolution.
- Associated
Occ []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 string - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- Date
Actual stringHandover - The date on which the actual handover quantity of resources is delivered.
- Date
Expected stringHandover - The date on which the latest increment to supplied quantity of resources was delivered.
- Demand
Quantity string - The number of compute server's with name required by the user.
- Expected
Handover stringQuantity - The incremental quantity of resources supplied as the provisioning is underway.
- Resource
Name string - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- Resource
Type string - The type of the resource against which the user wants to place a capacity request.
- Source
Workload stringType - The WorkloadType from where capacity request are to be transferred.
- Workload
Type string - The type of the workload (Generic/ROW).
- actual
Handover StringQuantity - The actual handed over quantity of resources at the time of request resolution.
- associated
Occ 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.
- availability
Domain String - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- date
Actual StringHandover - The date on which the actual handover quantity of resources is delivered.
- date
Expected StringHandover - The date on which the latest increment to supplied quantity of resources was delivered.
- demand
Quantity String - The number of compute server's with name required by the user.
- expected
Handover StringQuantity - The incremental quantity of resources supplied as the provisioning is underway.
- resource
Name String - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resource
Type String - The type of the resource against which the user wants to place a capacity request.
- source
Workload StringType - The WorkloadType from where capacity request are to be transferred.
- workload
Type String - The type of the workload (Generic/ROW).
- actual
Handover stringQuantity - The actual handed over quantity of resources at the time of request resolution.
- associated
Occ 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 string - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- date
Actual stringHandover - The date on which the actual handover quantity of resources is delivered.
- date
Expected stringHandover - The date on which the latest increment to supplied quantity of resources was delivered.
- demand
Quantity string - The number of compute server's with name required by the user.
- expected
Handover stringQuantity - The incremental quantity of resources supplied as the provisioning is underway.
- resource
Name string - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resource
Type string - The type of the resource against which the user wants to place a capacity request.
- source
Workload stringType - The WorkloadType from where capacity request are to be transferred.
- workload
Type 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[capacitymanagement.handover_ resource_ block_ lists Get 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).
- actual
Handover StringQuantity - The actual handed over quantity of resources at the time of request resolution.
- associated
Occ List<Property Map>Handover Resource Block Lists - A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
- availability
Domain String - The availability domain of the resource which is to be transferred. Note that this is only required for Capacity Request Transfer requests.
- date
Actual StringHandover - The date on which the actual handover quantity of resources is delivered.
- date
Expected StringHandover - The date on which the latest increment to supplied quantity of resources was delivered.
- demand
Quantity String - The number of compute server's with name required by the user.
- expected
Handover StringQuantity - The incremental quantity of resources supplied as the provisioning is underway.
- resource
Name String - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
- resource
Type String - The type of the resource against which the user wants to place a capacity request.
- source
Workload StringType - The WorkloadType from where capacity request are to be transferred.
- workload
Type String - The type of the workload (Generic/ROW).
GetOccCapacityRequestDetailAssociatedOccHandoverResourceBlockList
- Handover
Quantity string - The total quantity of the resource that was made available to the customer as part of this resource block
- Occ
Handover stringResource Block Id - The OCID of the handed over resource block.
- Handover
Quantity string - The total quantity of the resource that was made available to the customer as part of this resource block
- Occ
Handover stringResource Block Id - The OCID of the handed over resource block.
- handover
Quantity String - The total quantity of the resource that was made available to the customer as part of this resource block
- occ
Handover StringResource Block Id - The OCID of the handed over resource block.
- handover
Quantity string - The total quantity of the resource that was made available to the customer as part of this resource block
- occ
Handover 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.
- handover
Quantity String - The total quantity of the resource that was made available to the customer as part of this resource block
- occ
Handover 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
oci
Terraform Provider.