1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. getOccAvailabilityCatalogOccAvailabilities
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.CapacityManagement.getOccAvailabilityCatalogOccAvailabilities

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

    The following arguments are supported:

    OccAvailabilityCatalogId 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 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 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 []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 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 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 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 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 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 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 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 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollection

    items List<Property Map>
    An array of capacity constraints.

    GetOccAvailabilityCatalogOccAvailabilitiesOccAvailabilityCollectionItem

    AvailableQuantity string
    The quantity of available resource that the customer can request.
    CatalogId string
    The OCID of the availability catalog.
    DateExpectedCapacityHandover string
    The capacity handover date of the capacity constraint to filter the list of capacity constraints.
    DateFinalCustomerOrder string
    The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
    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.
    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 available resource that the customer can request.
    CatalogId string
    The OCID of the availability catalog.
    DateExpectedCapacityHandover string
    The capacity handover date of the capacity constraint to filter the list of capacity constraints.
    DateFinalCustomerOrder string
    The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
    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.
    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 available resource that the customer can request.
    catalogId String
    The OCID of the availability catalog.
    dateExpectedCapacityHandover String
    The capacity handover date of the capacity constraint to filter the list of capacity constraints.
    dateFinalCustomerOrder String
    The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
    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.
    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 available resource that the customer can request.
    catalogId string
    The OCID of the availability catalog.
    dateExpectedCapacityHandover string
    The capacity handover date of the capacity constraint to filter the list of capacity constraints.
    dateFinalCustomerOrder string
    The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
    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.
    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 available resource that the customer can request.
    catalog_id 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.
    date_final_customer_order str
    The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
    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.
    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 available resource that the customer can request.
    catalogId String
    The OCID of the availability catalog.
    dateExpectedCapacityHandover String
    The capacity handover date of the capacity constraint to filter the list of capacity constraints.
    dateFinalCustomerOrder String
    The date by which the customer must place the order to have their capacity requirements met by the customer handover date.
    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.
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi