Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getCategories

This data source provides the list of Categories in Oracle Cloud Infrastructure Marketplace service.

Gets the list of all the categories for listings published to Oracle Cloud Infrastructure Marketplace. Categories apply to the software product provided by the listing.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testCategories = Output.Create(Oci.Marketplace.GetCategories.InvokeAsync(new Oci.Marketplace.GetCategoriesArgs
        {
            CompartmentId = @var.Compartment_id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Marketplace"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Marketplace.GetCategories(ctx, &marketplace.GetCategoriesArgs{
			CompartmentId: pulumi.StringRef(_var.Compartment_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_categories = oci.Marketplace.get_categories(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCategories = oci.Marketplace.getCategories({
    compartmentId: _var.compartment_id,
});

Coming soon!

Using getCategories

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 getCategories(args: GetCategoriesArgs, opts?: InvokeOptions): Promise<GetCategoriesResult>
function getCategoriesOutput(args: GetCategoriesOutputArgs, opts?: InvokeOptions): Output<GetCategoriesResult>
def get_categories(compartment_id: Optional[str] = None,
                   filters: Optional[Sequence[_marketplace.GetCategoriesFilter]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetCategoriesResult
def get_categories_output(compartment_id: Optional[pulumi.Input[str]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_marketplace.GetCategoriesFilterArgs]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetCategoriesResult]
func GetCategories(ctx *Context, args *GetCategoriesArgs, opts ...InvokeOption) (*GetCategoriesResult, error)
func GetCategoriesOutput(ctx *Context, args *GetCategoriesOutputArgs, opts ...InvokeOption) GetCategoriesResultOutput

> Note: This function is named GetCategories in the Go SDK.

public static class GetCategories 
{
    public static Task<GetCategoriesResult> InvokeAsync(GetCategoriesArgs args, InvokeOptions? opts = null)
    public static Output<GetCategoriesResult> Invoke(GetCategoriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCategoriesResult> getCategories(GetCategoriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Marketplace/getCategories:getCategories
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The unique identifier for the compartment.

Filters List<GetCategoriesFilter>
CompartmentId string

The unique identifier for the compartment.

Filters []GetCategoriesFilter
compartmentId String

The unique identifier for the compartment.

filters List<GetCategoriesFilter>
compartmentId string

The unique identifier for the compartment.

filters GetCategoriesFilter[]
compartment_id str

The unique identifier for the compartment.

filters GetCategoriesFilter]
compartmentId String

The unique identifier for the compartment.

filters List<Property Map>

getCategories Result

The following output properties are available:

Categories List<GetCategoriesCategory>

The list of categories.

Id string

The provider-assigned unique ID for this managed resource.

CompartmentId string
Filters List<GetCategoriesFilter>
Categories []GetCategoriesCategory

The list of categories.

Id string

The provider-assigned unique ID for this managed resource.

CompartmentId string
Filters []GetCategoriesFilter
categories List<GetCategoriesCategory>

The list of categories.

id String

The provider-assigned unique ID for this managed resource.

compartmentId String
filters List<GetCategoriesFilter>
categories GetCategoriesCategory[]

The list of categories.

id string

The provider-assigned unique ID for this managed resource.

compartmentId string
filters GetCategoriesFilter[]
categories GetCategoriesCategory]

The list of categories.

id str

The provider-assigned unique ID for this managed resource.

compartment_id str
filters GetCategoriesFilter]
categories List<Property Map>

The list of categories.

id String

The provider-assigned unique ID for this managed resource.

compartmentId String
filters List<Property Map>

Supporting Types

GetCategoriesCategory

Name string

Name of the product category.

Name string

Name of the product category.

name String

Name of the product category.

name string

Name of the product category.

name str

Name of the product category.

name String

Name of the product category.

GetCategoriesFilter

Name string

Name of the product category.

Values List<string>
Regex bool
Name string

Name of the product category.

Values []string
Regex bool
name String

Name of the product category.

values List<String>
regex Boolean
name string

Name of the product category.

values string[]
regex boolean
name str

Name of the product category.

values Sequence[str]
regex bool
name String

Name of the product category.

values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.