1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. getOccAvailabilityCatalogOccAvailabilities
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testOccAvailabilityCatalogOccAvailabilities:
    fn::invoke:
      function: oci:CapacityManagement:getOccAvailabilityCatalogOccAvailabilities
      arguments:
        occAvailabilityCatalogId: ${testOccAvailabilityCatalog.id}
        dateExpectedCapacityHandover: ${occAvailabilityCatalogOccAvailabilityDateExpectedCapacityHandover}
        resourceName: ${testResource.name}
        resourceType: ${occAvailabilityCatalogOccAvailabilityResourceType}
        workloadType: ${occAvailabilityCatalogOccAvailabilityWorkloadType}
Copy

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>
Copy
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]
Copy
func GetOccAvailabilityCatalogOccAvailabilities(ctx *Context, args *GetOccAvailabilityCatalogOccAvailabilitiesArgs, opts ...InvokeOption) (*GetOccAvailabilityCatalogOccAvailabilitiesResult, error)
func GetOccAvailabilityCatalogOccAvailabilitiesOutput(ctx *Context, args *GetOccAvailabilityCatalogOccAvailabilitiesOutputArgs, opts ...InvokeOption) GetOccAvailabilityCatalogOccAvailabilitiesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOccAvailabilityCatalogOccAvailabilitiesResult> getOccAvailabilityCatalogOccAvailabilities(GetOccAvailabilityCatalogOccAvailabilitiesArgs args, InvokeOptions options)
public static Output<GetOccAvailabilityCatalogOccAvailabilitiesResult> getOccAvailabilityCatalogOccAvailabilities(GetOccAvailabilityCatalogOccAvailabilitiesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:CapacityManagement/getOccAvailabilityCatalogOccAvailabilities:getOccAvailabilityCatalogOccAvailabilities
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OccAvailabilityCatalogId This property is required. string
The OCID of the availability catalog.
DateExpectedCapacityHandover string
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
Filters Changes to this property will trigger replacement. List<GetOccAvailabilityCatalogOccAvailabilitiesFilter>
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.
OccAvailabilityCatalogId This property is required. string
The OCID of the availability catalog.
DateExpectedCapacityHandover string
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
Filters Changes to this property will trigger replacement. []GetOccAvailabilityCatalogOccAvailabilitiesFilter
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.
occAvailabilityCatalogId This property is required. String
The OCID of the availability catalog.
dateExpectedCapacityHandover String
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
filters Changes to this property will trigger replacement. List<GetOccAvailabilityCatalogOccAvailabilitiesFilter>
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.
occAvailabilityCatalogId This property is required. string
The OCID of the availability catalog.
dateExpectedCapacityHandover string
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
filters Changes to this property will trigger replacement. GetOccAvailabilityCatalogOccAvailabilitiesFilter[]
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_catalog_id This property is required. str
The OCID of the availability catalog.
date_expected_capacity_handover str
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
filters Changes to this property will trigger replacement. Sequence[capacitymanagement.GetOccAvailabilityCatalogOccAvailabilitiesFilter]
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.
occAvailabilityCatalogId This property is required. String
The OCID of the availability catalog.
dateExpectedCapacityHandover String
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
filters Changes to this property will trigger replacement. 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.
OccAvailabilityCatalogId string
OccAvailabilityCollections List<GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection>
The list of occ_availability_collection.
DateExpectedCapacityHandover string
The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
Filters List<GetOccAvailabilityCatalogOccAvailabilitiesFilter>
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.
OccAvailabilityCatalogId string
OccAvailabilityCollections []GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection
The list of occ_availability_collection.
DateExpectedCapacityHandover string
The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
Filters []GetOccAvailabilityCatalogOccAvailabilitiesFilter
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.
occAvailabilityCatalogId String
occAvailabilityCollections List<GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection>
The list of occ_availability_collection.
dateExpectedCapacityHandover String
The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
filters List<GetOccAvailabilityCatalogOccAvailabilitiesFilter>
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.
occAvailabilityCatalogId string
occAvailabilityCollections GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection[]
The list of occ_availability_collection.
dateExpectedCapacityHandover string
The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
filters GetOccAvailabilityCatalogOccAvailabilitiesFilter[]
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_catalog_id str
occ_availability_collections Sequence[capacitymanagement.GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection]
The list of occ_availability_collection.
date_expected_capacity_handover str
The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
filters Sequence[capacitymanagement.GetOccAvailabilityCatalogOccAvailabilitiesFilter]
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.
occAvailabilityCatalogId String
occAvailabilityCollections List<Property Map>
The list of occ_availability_collection.
dateExpectedCapacityHandover String
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

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection

Items This property is required. List<GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem>
An array of capacity constraints.
Items This property is required. []GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem
An array of capacity constraints.
items This property is required. List<GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem>
An array of capacity constraints.
items This property is required. GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem[]
An array of capacity constraints.
items This property is required. List<Property Map>
An array of capacity constraints.

GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem

AvailableQuantity This property is required. string
The quantity of resource currently available that the customer can request.
CatalogId This property is required. string
The OCID of the availability catalog.
DateExpectedCapacityHandover This property is required. string
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
DateFinalCustomerOrder This property is required. string
The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
DemandedQuantity This property is required. string
The quantity of resource currently demanded by the customer.
Namespace This property is required. string
The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
ResourceName This property is required. string
The name of the resource to filter the list of capacity constraints.
ResourceType This property is required. string
Resource type using which the capacity constraints of an availability catalog can be filtered.
SystemTags This property is required. Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TotalAvailableQuantity This property is required. string
The total quantity of resource that the customer can request.
Unit This property is required. string
The unit in which the resource available is measured.
WorkloadType This property is required. string
Workload type using the resources in an availability catalog can be filtered.
AvailableQuantity This property is required. string
The quantity of resource currently available that the customer can request.
CatalogId This property is required. string
The OCID of the availability catalog.
DateExpectedCapacityHandover This property is required. string
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
DateFinalCustomerOrder This property is required. string
The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
DemandedQuantity This property is required. string
The quantity of resource currently demanded by the customer.
Namespace This property is required. string
The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
ResourceName This property is required. string
The name of the resource to filter the list of capacity constraints.
ResourceType This property is required. string
Resource type using which the capacity constraints of an availability catalog can be filtered.
SystemTags This property is required. map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TotalAvailableQuantity This property is required. string
The total quantity of resource that the customer can request.
Unit This property is required. string
The unit in which the resource available is measured.
WorkloadType This property is required. string
Workload type using the resources in an availability catalog can be filtered.
availableQuantity This property is required. String
The quantity of resource currently available that the customer can request.
catalogId This property is required. String
The OCID of the availability catalog.
dateExpectedCapacityHandover This property is required. String
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
dateFinalCustomerOrder This property is required. String
The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
demandedQuantity This property is required. String
The quantity of resource currently demanded by the customer.
namespace This property is required. String
The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
resourceName This property is required. String
The name of the resource to filter the list of capacity constraints.
resourceType This property is required. String
Resource type using which the capacity constraints of an availability catalog can be filtered.
systemTags This property is required. Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
totalAvailableQuantity This property is required. String
The total quantity of resource that the customer can request.
unit This property is required. String
The unit in which the resource available is measured.
workloadType This property is required. String
Workload type using the resources in an availability catalog can be filtered.
availableQuantity This property is required. string
The quantity of resource currently available that the customer can request.
catalogId This property is required. string
The OCID of the availability catalog.
dateExpectedCapacityHandover This property is required. string
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
dateFinalCustomerOrder This property is required. string
The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
demandedQuantity This property is required. string
The quantity of resource currently demanded by the customer.
namespace This property is required. string
The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
resourceName This property is required. string
The name of the resource to filter the list of capacity constraints.
resourceType This property is required. string
Resource type using which the capacity constraints of an availability catalog can be filtered.
systemTags This property is required. {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
totalAvailableQuantity This property is required. string
The total quantity of resource that the customer can request.
unit This property is required. string
The unit in which the resource available is measured.
workloadType This property is required. string
Workload type using the resources in an availability catalog can be filtered.
available_quantity This property is required. str
The quantity of resource currently available that the customer can request.
catalog_id This property is required. str
The OCID of the availability catalog.
date_expected_capacity_handover This property is required. str
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
date_final_customer_order This property is required. str
The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
demanded_quantity This property is required. str
The quantity of resource currently demanded by the customer.
namespace This property is required. str
The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
resource_name This property is required. str
The name of the resource to filter the list of capacity constraints.
resource_type This property is required. str
Resource type using which the capacity constraints of an availability catalog can be filtered.
system_tags This property is required. 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_quantity This property is required. str
The total quantity of resource that the customer can request.
unit This property is required. str
The unit in which the resource available is measured.
workload_type This property is required. str
Workload type using the resources in an availability catalog can be filtered.
availableQuantity This property is required. String
The quantity of resource currently available that the customer can request.
catalogId This property is required. String
The OCID of the availability catalog.
dateExpectedCapacityHandover This property is required. String
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
dateFinalCustomerOrder This property is required. String
The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
demandedQuantity This property is required. String
The quantity of resource currently demanded by the customer.
namespace This property is required. String
The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
resourceName This property is required. String
The name of the resource to filter the list of capacity constraints.
resourceType This property is required. String
Resource type using which the capacity constraints of an availability catalog can be filtered.
systemTags This property is required. Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
totalAvailableQuantity This property is required. String
The total quantity of resource that the customer can request.
unit This property is required. String
The unit in which the resource available is measured.
workloadType This property is required. 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 oci Terraform Provider.