Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CapacityManagement.getOccAvailabilityCatalogContent
Explore with Pulumi AI
This data source provides details about a specific Occ Availability Catalog Content resource in Oracle Cloud Infrastructure Capacity Management service.
Returns the binary contents of the availability catalog. Can be saved as a csv file.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccAvailabilityCatalogContent = oci.CapacityManagement.getOccAvailabilityCatalogContent({
occAvailabilityCatalogId: testOccAvailabilityCatalog.id,
});
import pulumi
import pulumi_oci as oci
test_occ_availability_catalog_content = oci.CapacityManagement.get_occ_availability_catalog_content(occ_availability_catalog_id=test_occ_availability_catalog["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CapacityManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CapacityManagement.GetOccAvailabilityCatalogContent(ctx, &capacitymanagement.GetOccAvailabilityCatalogContentArgs{
OccAvailabilityCatalogId: testOccAvailabilityCatalog.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testOccAvailabilityCatalogContent = Oci.CapacityManagement.GetOccAvailabilityCatalogContent.Invoke(new()
{
OccAvailabilityCatalogId = testOccAvailabilityCatalog.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.CapacityManagementFunctions;
import com.pulumi.oci.CapacityManagement.inputs.GetOccAvailabilityCatalogContentArgs;
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 testOccAvailabilityCatalogContent = CapacityManagementFunctions.getOccAvailabilityCatalogContent(GetOccAvailabilityCatalogContentArgs.builder()
.occAvailabilityCatalogId(testOccAvailabilityCatalog.id())
.build());
}
}
variables:
testOccAvailabilityCatalogContent:
fn::invoke:
Function: oci:CapacityManagement:getOccAvailabilityCatalogContent
Arguments:
occAvailabilityCatalogId: ${testOccAvailabilityCatalog.id}
Using getOccAvailabilityCatalogContent
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 getOccAvailabilityCatalogContent(args: GetOccAvailabilityCatalogContentArgs, opts?: InvokeOptions): Promise<GetOccAvailabilityCatalogContentResult>
function getOccAvailabilityCatalogContentOutput(args: GetOccAvailabilityCatalogContentOutputArgs, opts?: InvokeOptions): Output<GetOccAvailabilityCatalogContentResult>
def get_occ_availability_catalog_content(occ_availability_catalog_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOccAvailabilityCatalogContentResult
def get_occ_availability_catalog_content_output(occ_availability_catalog_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccAvailabilityCatalogContentResult]
func GetOccAvailabilityCatalogContent(ctx *Context, args *GetOccAvailabilityCatalogContentArgs, opts ...InvokeOption) (*GetOccAvailabilityCatalogContentResult, error)
func GetOccAvailabilityCatalogContentOutput(ctx *Context, args *GetOccAvailabilityCatalogContentOutputArgs, opts ...InvokeOption) GetOccAvailabilityCatalogContentResultOutput
> Note: This function is named GetOccAvailabilityCatalogContent
in the Go SDK.
public static class GetOccAvailabilityCatalogContent
{
public static Task<GetOccAvailabilityCatalogContentResult> InvokeAsync(GetOccAvailabilityCatalogContentArgs args, InvokeOptions? opts = null)
public static Output<GetOccAvailabilityCatalogContentResult> Invoke(GetOccAvailabilityCatalogContentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOccAvailabilityCatalogContentResult> getOccAvailabilityCatalogContent(GetOccAvailabilityCatalogContentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CapacityManagement/getOccAvailabilityCatalogContent:getOccAvailabilityCatalogContent
arguments:
# arguments dictionary
The following arguments are supported:
- Occ
Availability stringCatalog Id - The OCID of the availability catalog.
- Occ
Availability stringCatalog Id - The OCID of the availability catalog.
- occ
Availability StringCatalog Id - The OCID of the availability catalog.
- occ
Availability stringCatalog Id - The OCID of the availability catalog.
- occ_
availability_ strcatalog_ id - The OCID of the availability catalog.
- occ
Availability StringCatalog Id - The OCID of the availability catalog.
getOccAvailabilityCatalogContent Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Occ
Availability stringCatalog Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Occ
Availability stringCatalog Id
- id String
- The provider-assigned unique ID for this managed resource.
- occ
Availability StringCatalog Id
- id string
- The provider-assigned unique ID for this managed resource.
- occ
Availability stringCatalog Id
- id str
- The provider-assigned unique ID for this managed resource.
- occ_
availability_ strcatalog_ id
- id String
- The provider-assigned unique ID for this managed resource.
- occ
Availability StringCatalog Id
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.