Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 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:
- OccAvailability stringCatalog Id 
- The OCID of the availability catalog.
- DateExpected stringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- Filters
List<GetOcc Availability Catalog Occ Availabilities Filter> 
- ResourceName string
- The name of the resource to filter the list of capacity constraints.
- ResourceType string
- Resource type using which the capacity constraints of an availability catalog can be filtered.
- WorkloadType string
- Workload type using the resources in an availability catalog can be filtered.
- OccAvailability stringCatalog Id 
- The OCID of the availability catalog.
- DateExpected stringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- Filters
[]GetOcc Availability Catalog Occ Availabilities Filter 
- ResourceName string
- The name of the resource to filter the list of capacity constraints.
- ResourceType string
- Resource type using which the capacity constraints of an availability catalog can be filtered.
- WorkloadType string
- Workload type using the resources in an availability catalog can be filtered.
- occAvailability StringCatalog Id 
- The OCID of the availability catalog.
- dateExpected StringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- filters
List<GetOcc Availability Catalog Occ Availabilities Filter> 
- resourceName String
- The name of the resource to filter the list of capacity constraints.
- resourceType String
- Resource type using which the capacity constraints of an availability catalog can be filtered.
- workloadType String
- Workload type using the resources in an availability catalog can be filtered.
- occAvailability stringCatalog Id 
- The OCID of the availability catalog.
- dateExpected stringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- filters
GetOcc Availability Catalog Occ Availabilities Filter[] 
- resourceName string
- The name of the resource to filter the list of capacity constraints.
- resourceType string
- Resource type using which the capacity constraints of an availability catalog can be filtered.
- workloadType 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.
- occAvailability StringCatalog Id 
- The OCID of the availability catalog.
- dateExpected StringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- filters List<Property Map>
- resourceName String
- The name of the resource to filter the list of capacity constraints.
- resourceType String
- Resource type using which the capacity constraints of an availability catalog can be filtered.
- workloadType 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.
- OccAvailability stringCatalog Id 
- OccAvailability List<GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection> 
- The list of occ_availability_collection.
- DateExpected stringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- Filters
List<GetOcc Availability Catalog Occ Availabilities Filter> 
- ResourceName string
- The name of the resource that the customer can request.
- ResourceType string
- The different types of resources against which customers can place capacity requests.
- WorkloadType string
- The type of workload (Generic/ROW).
- Id string
- The provider-assigned unique ID for this managed resource.
- OccAvailability stringCatalog Id 
- OccAvailability []GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection 
- The list of occ_availability_collection.
- DateExpected stringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- Filters
[]GetOcc Availability Catalog Occ Availabilities Filter 
- ResourceName string
- The name of the resource that the customer can request.
- ResourceType string
- The different types of resources against which customers can place capacity requests.
- WorkloadType string
- The type of workload (Generic/ROW).
- id String
- The provider-assigned unique ID for this managed resource.
- occAvailability StringCatalog Id 
- occAvailability List<GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection> 
- The list of occ_availability_collection.
- dateExpected StringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- filters
List<GetOcc Availability Catalog Occ Availabilities Filter> 
- resourceName String
- The name of the resource that the customer can request.
- resourceType String
- The different types of resources against which customers can place capacity requests.
- workloadType String
- The type of workload (Generic/ROW).
- id string
- The provider-assigned unique ID for this managed resource.
- occAvailability stringCatalog Id 
- occAvailability GetCollections Occ Availability Catalog Occ Availabilities Occ Availability Collection[] 
- The list of occ_availability_collection.
- dateExpected stringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- filters
GetOcc Availability Catalog Occ Availabilities Filter[] 
- resourceName string
- The name of the resource that the customer can request.
- resourceType string
- The different types of resources against which customers can place capacity requests.
- workloadType 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.
- occAvailability StringCatalog Id 
- occAvailability List<Property Map>Collections 
- The list of occ_availability_collection.
- dateExpected StringCapacity Handover 
- The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
- filters List<Property Map>
- resourceName String
- The name of the resource that the customer can request.
- resourceType String
- The different types of resources against which customers can place capacity requests.
- workloadType String
- The type of workload (Generic/ROW).
Supporting Types
GetOccAvailabilityCatalogOccAvailabilitiesFilter      
GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection        
- Items
List<GetOcc Availability Catalog Occ Availabilities Occ Availability Collection Item> 
- An array of capacity constraints.
- Items
[]GetOcc Availability Catalog Occ Availabilities Occ Availability Collection Item 
- An array of capacity constraints.
- items
List<GetOcc Availability Catalog Occ Availabilities Occ Availability Collection Item> 
- An array of capacity constraints.
- items
GetOcc 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         
- AvailableQuantity string
- The quantity of resource currently available that the customer can request.
- CatalogId string
- The OCID of the availability catalog.
- DateExpected stringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- DateFinal stringCustomer Order 
- The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
- DemandedQuantity 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.
- ResourceName string
- The name of the resource to filter the list of capacity constraints.
- ResourceType 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"}
- TotalAvailable stringQuantity 
- The total quantity of resource that the customer can request.
- Unit string
- The unit in which the resource available is measured.
- WorkloadType string
- Workload type using the resources in an availability catalog can be filtered.
- AvailableQuantity string
- The quantity of resource currently available that the customer can request.
- CatalogId string
- The OCID of the availability catalog.
- DateExpected stringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- DateFinal stringCustomer Order 
- The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
- DemandedQuantity 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.
- ResourceName string
- The name of the resource to filter the list of capacity constraints.
- ResourceType 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"}
- TotalAvailable stringQuantity 
- The total quantity of resource that the customer can request.
- Unit string
- The unit in which the resource available is measured.
- WorkloadType string
- Workload type using the resources in an availability catalog can be filtered.
- availableQuantity String
- The quantity of resource currently available that the customer can request.
- catalogId String
- The OCID of the availability catalog.
- dateExpected StringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- dateFinal StringCustomer Order 
- The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
- demandedQuantity 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.
- resourceName String
- The name of the resource to filter the list of capacity constraints.
- resourceType 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"}
- totalAvailable StringQuantity 
- The total quantity of resource that the customer can request.
- unit String
- The unit in which the resource available is measured.
- workloadType String
- Workload type using the resources in an availability catalog can be filtered.
- availableQuantity string
- The quantity of resource currently available that the customer can request.
- catalogId string
- The OCID of the availability catalog.
- dateExpected stringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- dateFinal stringCustomer Order 
- The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
- demandedQuantity 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.
- resourceName string
- The name of the resource to filter the list of capacity constraints.
- resourceType 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"}
- totalAvailable stringQuantity 
- The total quantity of resource that the customer can request.
- unit string
- The unit in which the resource available is measured.
- workloadType 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.
- availableQuantity String
- The quantity of resource currently available that the customer can request.
- catalogId String
- The OCID of the availability catalog.
- dateExpected StringCapacity Handover 
- The capacity handover date of the capacity constraint to filter the list of capacity constraints.
- dateFinal StringCustomer Order 
- The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
- demandedQuantity 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.
- resourceName String
- The name of the resource to filter the list of capacity constraints.
- resourceType 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"}
- totalAvailable StringQuantity 
- The total quantity of resource that the customer can request.
- unit String
- The unit in which the resource available is measured.
- workloadType 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.