Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.CapacityManagement.getOccAvailabilityCatalogOccAvailabilities
Explore with Pulumi AI
This data source provides the list of Occ Availability Catalog Occ Availabilities in Oracle Cloud Infrastructure Capacity Management service.
Lists availabilities for a particular availability catalog.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccAvailabilityCatalogOccAvailabilities = oci.CapacityManagement.getOccAvailabilityCatalogOccAvailabilities({
    occAvailabilityCatalogId: testOccAvailabilityCatalog.id,
    dateExpectedCapacityHandover: occAvailabilityCatalogOccAvailabilityDateExpectedCapacityHandover,
    resourceName: testResource.name,
    resourceType: occAvailabilityCatalogOccAvailabilityResourceType,
    workloadType: occAvailabilityCatalogOccAvailabilityWorkloadType,
});
import pulumi
import pulumi_oci as oci
test_occ_availability_catalog_occ_availabilities = oci.CapacityManagement.get_occ_availability_catalog_occ_availabilities(occ_availability_catalog_id=test_occ_availability_catalog["id"],
    date_expected_capacity_handover=occ_availability_catalog_occ_availability_date_expected_capacity_handover,
    resource_name=test_resource["name"],
    resource_type=occ_availability_catalog_occ_availability_resource_type,
    workload_type=occ_availability_catalog_occ_availability_workload_type)
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.GetOccAvailabilityCatalogOccAvailabilities(ctx, &capacitymanagement.GetOccAvailabilityCatalogOccAvailabilitiesArgs{
			OccAvailabilityCatalogId:     testOccAvailabilityCatalog.Id,
			DateExpectedCapacityHandover: pulumi.StringRef(occAvailabilityCatalogOccAvailabilityDateExpectedCapacityHandover),
			ResourceName:                 pulumi.StringRef(testResource.Name),
			ResourceType:                 pulumi.StringRef(occAvailabilityCatalogOccAvailabilityResourceType),
			WorkloadType:                 pulumi.StringRef(occAvailabilityCatalogOccAvailabilityWorkloadType),
		}, 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 testOccAvailabilityCatalogOccAvailabilities = Oci.CapacityManagement.GetOccAvailabilityCatalogOccAvailabilities.Invoke(new()
    {
        OccAvailabilityCatalogId = testOccAvailabilityCatalog.Id,
        DateExpectedCapacityHandover = occAvailabilityCatalogOccAvailabilityDateExpectedCapacityHandover,
        ResourceName = testResource.Name,
        ResourceType = occAvailabilityCatalogOccAvailabilityResourceType,
        WorkloadType = occAvailabilityCatalogOccAvailabilityWorkloadType,
    });
});
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.GetOccAvailabilityCatalogOccAvailabilitiesArgs;
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 testOccAvailabilityCatalogOccAvailabilities = CapacityManagementFunctions.getOccAvailabilityCatalogOccAvailabilities(GetOccAvailabilityCatalogOccAvailabilitiesArgs.builder()
            .occAvailabilityCatalogId(testOccAvailabilityCatalog.id())
            .dateExpectedCapacityHandover(occAvailabilityCatalogOccAvailabilityDateExpectedCapacityHandover)
            .resourceName(testResource.name())
            .resourceType(occAvailabilityCatalogOccAvailabilityResourceType)
            .workloadType(occAvailabilityCatalogOccAvailabilityWorkloadType)
            .build());
    }
}
variables:
  testOccAvailabilityCatalogOccAvailabilities:
    fn::invoke:
      function: oci:CapacityManagement:getOccAvailabilityCatalogOccAvailabilities
      arguments:
        occAvailabilityCatalogId: ${testOccAvailabilityCatalog.id}
        dateExpectedCapacityHandover: ${occAvailabilityCatalogOccAvailabilityDateExpectedCapacityHandover}
        resourceName: ${testResource.name}
        resourceType: ${occAvailabilityCatalogOccAvailabilityResourceType}
        workloadType: ${occAvailabilityCatalogOccAvailabilityWorkloadType}
Using getOccAvailabilityCatalogOccAvailabilities
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 getOccAvailabilityCatalogOccAvailabilities(args: GetOccAvailabilityCatalogOccAvailabilitiesArgs, opts?: InvokeOptions): Promise<GetOccAvailabilityCatalogOccAvailabilitiesResult>
function getOccAvailabilityCatalogOccAvailabilitiesOutput(args: GetOccAvailabilityCatalogOccAvailabilitiesOutputArgs, opts?: InvokeOptions): Output<GetOccAvailabilityCatalogOccAvailabilitiesResult>def get_occ_availability_catalog_occ_availabilities(date_expected_capacity_handover: Optional[str] = None,
                                                    filters: Optional[Sequence[_capacitymanagement.GetOccAvailabilityCatalogOccAvailabilitiesFilter]] = None,
                                                    occ_availability_catalog_id: Optional[str] = None,
                                                    resource_name: Optional[str] = None,
                                                    resource_type: Optional[str] = None,
                                                    workload_type: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetOccAvailabilityCatalogOccAvailabilitiesResult
def get_occ_availability_catalog_occ_availabilities_output(date_expected_capacity_handover: Optional[pulumi.Input[str]] = None,
                                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[_capacitymanagement.GetOccAvailabilityCatalogOccAvailabilitiesFilterArgs]]]] = None,
                                                    occ_availability_catalog_id: Optional[pulumi.Input[str]] = None,
                                                    resource_name: Optional[pulumi.Input[str]] = None,
                                                    resource_type: Optional[pulumi.Input[str]] = None,
                                                    workload_type: Optional[pulumi.Input[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetOccAvailabilityCatalogOccAvailabilitiesResult]func GetOccAvailabilityCatalogOccAvailabilities(ctx *Context, args *GetOccAvailabilityCatalogOccAvailabilitiesArgs, opts ...InvokeOption) (*GetOccAvailabilityCatalogOccAvailabilitiesResult, error)
func GetOccAvailabilityCatalogOccAvailabilitiesOutput(ctx *Context, args *GetOccAvailabilityCatalogOccAvailabilitiesOutputArgs, opts ...InvokeOption) GetOccAvailabilityCatalogOccAvailabilitiesResultOutput> Note: This function is named GetOccAvailabilityCatalogOccAvailabilities in the Go SDK.
public static class GetOccAvailabilityCatalogOccAvailabilities 
{
    public static Task<GetOccAvailabilityCatalogOccAvailabilitiesResult> InvokeAsync(GetOccAvailabilityCatalogOccAvailabilitiesArgs args, InvokeOptions? opts = null)
    public static Output<GetOccAvailabilityCatalogOccAvailabilitiesResult> Invoke(GetOccAvailabilityCatalogOccAvailabilitiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOccAvailabilityCatalogOccAvailabilitiesResult> getOccAvailabilityCatalogOccAvailabilities(GetOccAvailabilityCatalogOccAvailabilitiesArgs args, InvokeOptions options)
public static Output<GetOccAvailabilityCatalogOccAvailabilitiesResult> getOccAvailabilityCatalogOccAvailabilities(GetOccAvailabilityCatalogOccAvailabilitiesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CapacityManagement/getOccAvailabilityCatalogOccAvailabilities:getOccAvailabilityCatalogOccAvailabilities
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Occ
Availability stringCatalog Id  - The OCID of the availability catalog.
 - Date
Expected stringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - Filters
List<Get
Occ Availability Catalog Occ Availabilities Filter>  - Resource
Name string - The name of the resource to filter the list of capacity constraints.
 - Resource
Type string - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - Workload
Type string - Workload type using the resources in an availability catalog can be filtered.
 
- Occ
Availability stringCatalog Id  - The OCID of the availability catalog.
 - Date
Expected stringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - Filters
[]Get
Occ Availability Catalog Occ Availabilities Filter  - Resource
Name string - The name of the resource to filter the list of capacity constraints.
 - Resource
Type string - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - Workload
Type string - Workload type using the resources in an availability catalog can be filtered.
 
- occ
Availability StringCatalog Id  - The OCID of the availability catalog.
 - date
Expected StringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - filters
List<Get
Occ Availability Catalog Occ Availabilities Filter>  - resource
Name String - The name of the resource to filter the list of capacity constraints.
 - resource
Type String - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - workload
Type String - Workload type using the resources in an availability catalog can be filtered.
 
- occ
Availability stringCatalog Id  - The OCID of the availability catalog.
 - date
Expected stringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - filters
Get
Occ Availability Catalog Occ Availabilities Filter[]  - resource
Name string - The name of the resource to filter the list of capacity constraints.
 - resource
Type string - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - workload
Type string - Workload type using the resources in an availability catalog can be filtered.
 
- occ_
availability_ strcatalog_ id  - The OCID of the availability catalog.
 - date_
expected_ strcapacity_ handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - filters
Sequence[capacitymanagement.
Get Occ Availability Catalog Occ Availabilities Filter]  - resource_
name str - The name of the resource to filter the list of capacity constraints.
 - resource_
type str - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - workload_
type str - Workload type using the resources in an availability catalog can be filtered.
 
- occ
Availability StringCatalog Id  - The OCID of the availability catalog.
 - date
Expected StringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - filters List<Property Map>
 - resource
Name String - The name of the resource to filter the list of capacity constraints.
 - resource
Type String - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - workload
Type String - Workload type using the resources in an availability catalog can be filtered.
 
getOccAvailabilityCatalogOccAvailabilities Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Occ
Availability stringCatalog Id  - Occ
Availability List<GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection>  - The list of occ_availability_collection.
 - Date
Expected stringCapacity Handover  - The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
 - Filters
List<Get
Occ Availability Catalog Occ Availabilities Filter>  - Resource
Name string - The name of the resource that the customer can request.
 - Resource
Type string - The different types of resources against which customers can place capacity requests.
 - Workload
Type string - The type of workload (Generic/ROW).
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Occ
Availability stringCatalog Id  - Occ
Availability []GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection  - The list of occ_availability_collection.
 - Date
Expected stringCapacity Handover  - The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
 - Filters
[]Get
Occ Availability Catalog Occ Availabilities Filter  - Resource
Name string - The name of the resource that the customer can request.
 - Resource
Type string - The different types of resources against which customers can place capacity requests.
 - Workload
Type string - The type of workload (Generic/ROW).
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - occ
Availability StringCatalog Id  - occ
Availability List<GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection>  - The list of occ_availability_collection.
 - date
Expected StringCapacity Handover  - The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
 - filters
List<Get
Occ Availability Catalog Occ Availabilities Filter>  - resource
Name String - The name of the resource that the customer can request.
 - resource
Type String - The different types of resources against which customers can place capacity requests.
 - workload
Type String - The type of workload (Generic/ROW).
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - occ
Availability stringCatalog Id  - occ
Availability GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection[]  - The list of occ_availability_collection.
 - date
Expected stringCapacity Handover  - The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
 - filters
Get
Occ Availability Catalog Occ Availabilities Filter[]  - resource
Name string - The name of the resource that the customer can request.
 - resource
Type string - The different types of resources against which customers can place capacity requests.
 - workload
Type string - The type of workload (Generic/ROW).
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - occ_
availability_ strcatalog_ id  - occ_
availability_ Sequence[capacitymanagement.collections Get Occ Availability Catalog Occ Availabilities Occ Availability Collection]  - The list of occ_availability_collection.
 - date_
expected_ strcapacity_ handover  - The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
 - filters
Sequence[capacitymanagement.
Get Occ Availability Catalog Occ Availabilities Filter]  - resource_
name str - The name of the resource that the customer can request.
 - resource_
type str - The different types of resources against which customers can place capacity requests.
 - workload_
type str - The type of workload (Generic/ROW).
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - occ
Availability StringCatalog Id  - occ
Availability List<Property Map>Collections  - The list of occ_availability_collection.
 - date
Expected StringCapacity Handover  - The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
 - filters List<Property Map>
 - resource
Name String - The name of the resource that the customer can request.
 - resource
Type String - The different types of resources against which customers can place capacity requests.
 - workload
Type String - The type of workload (Generic/ROW).
 
Supporting Types
GetOccAvailabilityCatalogOccAvailabilitiesFilter      
GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection        
- Items
List<Get
Occ Availability Catalog Occ Availabilities Occ Availability Collection Item>  - An array of capacity constraints.
 
- Items
[]Get
Occ Availability Catalog Occ Availabilities Occ Availability Collection Item  - An array of capacity constraints.
 
- items
List<Get
Occ Availability Catalog Occ Availabilities Occ Availability Collection Item>  - An array of capacity constraints.
 
- items
Get
Occ Availability Catalog Occ Availabilities Occ Availability Collection Item[]  - An array of capacity constraints.
 
- items
Sequence[capacitymanagement.
Get Occ Availability Catalog Occ Availabilities Occ Availability Collection Item]  - An array of capacity constraints.
 
- items List<Property Map>
 - An array of capacity constraints.
 
GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem         
- Available
Quantity string - The quantity of resource currently available that the customer can request.
 - Catalog
Id string - The OCID of the availability catalog.
 - Date
Expected stringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - Date
Final stringCustomer Order  - The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
 - Demanded
Quantity string - The quantity of resource currently demanded by the customer.
 - Namespace string
 - The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
 - Resource
Name string - The name of the resource to filter the list of capacity constraints.
 - Resource
Type string - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - Dictionary<string, string>
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Total
Available stringQuantity  - The total quantity of resource that the customer can request.
 - Unit string
 - The unit in which the resource available is measured.
 - Workload
Type string - Workload type using the resources in an availability catalog can be filtered.
 
- Available
Quantity string - The quantity of resource currently available that the customer can request.
 - Catalog
Id string - The OCID of the availability catalog.
 - Date
Expected stringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - Date
Final stringCustomer Order  - The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
 - Demanded
Quantity string - The quantity of resource currently demanded by the customer.
 - Namespace string
 - The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
 - Resource
Name string - The name of the resource to filter the list of capacity constraints.
 - Resource
Type string - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - map[string]string
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Total
Available stringQuantity  - The total quantity of resource that the customer can request.
 - Unit string
 - The unit in which the resource available is measured.
 - Workload
Type string - Workload type using the resources in an availability catalog can be filtered.
 
- available
Quantity String - The quantity of resource currently available that the customer can request.
 - catalog
Id String - The OCID of the availability catalog.
 - date
Expected StringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - date
Final StringCustomer Order  - The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
 - demanded
Quantity String - The quantity of resource currently demanded by the customer.
 - namespace String
 - The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
 - resource
Name String - The name of the resource to filter the list of capacity constraints.
 - resource
Type String - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - Map<String,String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - total
Available StringQuantity  - The total quantity of resource that the customer can request.
 - unit String
 - The unit in which the resource available is measured.
 - workload
Type String - Workload type using the resources in an availability catalog can be filtered.
 
- available
Quantity string - The quantity of resource currently available that the customer can request.
 - catalog
Id string - The OCID of the availability catalog.
 - date
Expected stringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - date
Final stringCustomer Order  - The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
 - demanded
Quantity string - The quantity of resource currently demanded by the customer.
 - namespace string
 - The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
 - resource
Name string - The name of the resource to filter the list of capacity constraints.
 - resource
Type string - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - {[key: string]: string}
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - total
Available stringQuantity  - The total quantity of resource that the customer can request.
 - unit string
 - The unit in which the resource available is measured.
 - workload
Type string - Workload type using the resources in an availability catalog can be filtered.
 
- available_
quantity str - The quantity of resource currently available that the customer can request.
 - catalog_
id str - The OCID of the availability catalog.
 - date_
expected_ strcapacity_ handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - date_
final_ strcustomer_ order  - The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
 - demanded_
quantity str - The quantity of resource currently demanded by the customer.
 - namespace str
 - The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
 - resource_
name str - The name of the resource to filter the list of capacity constraints.
 - resource_
type str - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - Mapping[str, str]
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - total_
available_ strquantity  - The total quantity of resource that the customer can request.
 - unit str
 - The unit in which the resource available is measured.
 - workload_
type str - Workload type using the resources in an availability catalog can be filtered.
 
- available
Quantity String - The quantity of resource currently available that the customer can request.
 - catalog
Id String - The OCID of the availability catalog.
 - date
Expected StringCapacity Handover  - The capacity handover date of the capacity constraint to filter the list of capacity constraints.
 - date
Final StringCustomer Order  - The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
 - demanded
Quantity String - The quantity of resource currently demanded by the customer.
 - namespace String
 - The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
 - resource
Name String - The name of the resource to filter the list of capacity constraints.
 - resource
Type String - Resource type using which the capacity constraints of an availability catalog can be filtered.
 - Map<String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - total
Available StringQuantity  - The total quantity of resource that the customer can request.
 - unit String
 - The unit in which the resource available is measured.
 - workload
Type String - Workload type using the resources in an availability catalog can be filtered.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.