1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceCatalog
  5. getServiceCatalogs
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.ServiceCatalog.getServiceCatalogs

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides the list of Service Catalogs in Oracle Cloud Infrastructure Service Catalog service.

Lists all the service catalogs in the given compartment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testServiceCatalogs = oci.ServiceCatalog.getServiceCatalogs({
    compartmentId: compartmentId,
    displayName: serviceCatalogDisplayName,
    serviceCatalogId: testServiceCatalog.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_service_catalogs = oci.ServiceCatalog.get_service_catalogs(compartment_id=compartment_id,
    display_name=service_catalog_display_name,
    service_catalog_id=test_service_catalog["id"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicecatalog.GetServiceCatalogs(ctx, &servicecatalog.GetServiceCatalogsArgs{
			CompartmentId:    compartmentId,
			DisplayName:      pulumi.StringRef(serviceCatalogDisplayName),
			ServiceCatalogId: pulumi.StringRef(testServiceCatalog.Id),
		}, 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 testServiceCatalogs = Oci.ServiceCatalog.GetServiceCatalogs.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = serviceCatalogDisplayName,
        ServiceCatalogId = testServiceCatalog.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceCatalog.ServiceCatalogFunctions;
import com.pulumi.oci.ServiceCatalog.inputs.GetServiceCatalogsArgs;
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 testServiceCatalogs = ServiceCatalogFunctions.getServiceCatalogs(GetServiceCatalogsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(serviceCatalogDisplayName)
            .serviceCatalogId(testServiceCatalog.id())
            .build());

    }
}
Copy
variables:
  testServiceCatalogs:
    fn::invoke:
      function: oci:ServiceCatalog:getServiceCatalogs
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${serviceCatalogDisplayName}
        serviceCatalogId: ${testServiceCatalog.id}
Copy

Using getServiceCatalogs

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 getServiceCatalogs(args: GetServiceCatalogsArgs, opts?: InvokeOptions): Promise<GetServiceCatalogsResult>
function getServiceCatalogsOutput(args: GetServiceCatalogsOutputArgs, opts?: InvokeOptions): Output<GetServiceCatalogsResult>
Copy
def get_service_catalogs(compartment_id: Optional[str] = None,
                         display_name: Optional[str] = None,
                         filters: Optional[Sequence[_servicecatalog.GetServiceCatalogsFilter]] = None,
                         service_catalog_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetServiceCatalogsResult
def get_service_catalogs_output(compartment_id: Optional[pulumi.Input[str]] = None,
                         display_name: Optional[pulumi.Input[str]] = None,
                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_servicecatalog.GetServiceCatalogsFilterArgs]]]] = None,
                         service_catalog_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetServiceCatalogsResult]
Copy
func GetServiceCatalogs(ctx *Context, args *GetServiceCatalogsArgs, opts ...InvokeOption) (*GetServiceCatalogsResult, error)
func GetServiceCatalogsOutput(ctx *Context, args *GetServiceCatalogsOutputArgs, opts ...InvokeOption) GetServiceCatalogsResultOutput
Copy

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

public static class GetServiceCatalogs 
{
    public static Task<GetServiceCatalogsResult> InvokeAsync(GetServiceCatalogsArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceCatalogsResult> Invoke(GetServiceCatalogsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServiceCatalogsResult> getServiceCatalogs(GetServiceCatalogsArgs args, InvokeOptions options)
public static Output<GetServiceCatalogsResult> getServiceCatalogs(GetServiceCatalogsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ServiceCatalog/getServiceCatalogs:getServiceCatalogs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The unique identifier for the compartment.
DisplayName string
Exact match name filter.
Filters Changes to this property will trigger replacement. List<GetServiceCatalogsFilter>
ServiceCatalogId string
The unique identifier for the service catalog.
CompartmentId This property is required. string
The unique identifier for the compartment.
DisplayName string
Exact match name filter.
Filters Changes to this property will trigger replacement. []GetServiceCatalogsFilter
ServiceCatalogId string
The unique identifier for the service catalog.
compartmentId This property is required. String
The unique identifier for the compartment.
displayName String
Exact match name filter.
filters Changes to this property will trigger replacement. List<GetsFilter>
serviceCatalogId String
The unique identifier for the service catalog.
compartmentId This property is required. string
The unique identifier for the compartment.
displayName string
Exact match name filter.
filters Changes to this property will trigger replacement. GetServiceCatalogsFilter[]
serviceCatalogId string
The unique identifier for the service catalog.
compartment_id This property is required. str
The unique identifier for the compartment.
display_name str
Exact match name filter.
filters Changes to this property will trigger replacement. Sequence[servicecatalog.GetServiceCatalogsFilter]
service_catalog_id str
The unique identifier for the service catalog.
compartmentId This property is required. String
The unique identifier for the compartment.
displayName String
Exact match name filter.
filters Changes to this property will trigger replacement. List<Property Map>
serviceCatalogId String
The unique identifier for the service catalog.

getServiceCatalogs Result

The following output properties are available:

CompartmentId string
The Compartment id where the service catalog exists
Id string
The provider-assigned unique ID for this managed resource.
ServiceCatalogCollections List<GetServiceCatalogsServiceCatalogCollection>
The list of service_catalog_collection.
DisplayName string
The name of the service catalog.
Filters List<GetServiceCatalogsFilter>
ServiceCatalogId string
CompartmentId string
The Compartment id where the service catalog exists
Id string
The provider-assigned unique ID for this managed resource.
ServiceCatalogCollections []GetServiceCatalogsServiceCatalogCollection
The list of service_catalog_collection.
DisplayName string
The name of the service catalog.
Filters []GetServiceCatalogsFilter
ServiceCatalogId string
compartmentId String
The Compartment id where the service catalog exists
id String
The provider-assigned unique ID for this managed resource.
serviceCatalogCollections List<GetsCollection>
The list of service_catalog_collection.
displayName String
The name of the service catalog.
filters List<GetsFilter>
serviceCatalogId String
compartmentId string
The Compartment id where the service catalog exists
id string
The provider-assigned unique ID for this managed resource.
serviceCatalogCollections GetServiceCatalogsServiceCatalogCollection[]
The list of service_catalog_collection.
displayName string
The name of the service catalog.
filters GetServiceCatalogsFilter[]
serviceCatalogId string
compartment_id str
The Compartment id where the service catalog exists
id str
The provider-assigned unique ID for this managed resource.
service_catalog_collections Sequence[servicecatalog.GetServiceCatalogsServiceCatalogCollection]
The list of service_catalog_collection.
display_name str
The name of the service catalog.
filters Sequence[servicecatalog.GetServiceCatalogsFilter]
service_catalog_id str
compartmentId String
The Compartment id where the service catalog exists
id String
The provider-assigned unique ID for this managed resource.
serviceCatalogCollections List<Property Map>
The list of service_catalog_collection.
displayName String
The name of the service catalog.
filters List<Property Map>
serviceCatalogId String

Supporting Types

GetServiceCatalogsFilter

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

GetServiceCatalogsServiceCatalogCollection

items This property is required. List<GetsCollectionItem>
items This property is required. List<Property Map>

GetServiceCatalogsServiceCatalogCollectionItem

CompartmentId This property is required. string
The unique identifier for the compartment.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DisplayName This property is required. string
Exact match name filter.
FreeformTags This property is required. Dictionary<string, string>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
The unique identifier for the Service catalog.
State This property is required. string
The lifecycle state of the service catalog.
TimeCreated This property is required. string
The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
TimeUpdated This property is required. string
The date and time the service catalog was last modified, expressed in RFC 3339 timestamp format. Example: 2021-12-10T05:10:29.721Z
CompartmentId This property is required. string
The unique identifier for the compartment.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DisplayName This property is required. string
Exact match name filter.
FreeformTags This property is required. map[string]string
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
The unique identifier for the Service catalog.
State This property is required. string
The lifecycle state of the service catalog.
TimeCreated This property is required. string
The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
TimeUpdated This property is required. string
The date and time the service catalog was last modified, expressed in RFC 3339 timestamp format. Example: 2021-12-10T05:10:29.721Z
compartmentId This property is required. String
The unique identifier for the compartment.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName This property is required. String
Exact match name filter.
freeformTags This property is required. Map<String,String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
The unique identifier for the Service catalog.
state This property is required. String
The lifecycle state of the service catalog.
timeCreated This property is required. String
The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
timeUpdated This property is required. String
The date and time the service catalog was last modified, expressed in RFC 3339 timestamp format. Example: 2021-12-10T05:10:29.721Z
compartmentId This property is required. string
The unique identifier for the compartment.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName This property is required. string
Exact match name filter.
freeformTags This property is required. {[key: string]: string}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. string
The unique identifier for the Service catalog.
state This property is required. string
The lifecycle state of the service catalog.
timeCreated This property is required. string
The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
timeUpdated This property is required. string
The date and time the service catalog was last modified, expressed in RFC 3339 timestamp format. Example: 2021-12-10T05:10:29.721Z
compartment_id This property is required. str
The unique identifier for the compartment.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
display_name This property is required. str
Exact match name filter.
freeform_tags This property is required. Mapping[str, str]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. str
The unique identifier for the Service catalog.
state This property is required. str
The lifecycle state of the service catalog.
time_created This property is required. str
The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
time_updated This property is required. str
The date and time the service catalog was last modified, expressed in RFC 3339 timestamp format. Example: 2021-12-10T05:10:29.721Z
compartmentId This property is required. String
The unique identifier for the compartment.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName This property is required. String
Exact match name filter.
freeformTags This property is required. Map<String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
The unique identifier for the Service catalog.
state This property is required. String
The lifecycle state of the service catalog.
timeCreated This property is required. String
The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
timeUpdated This property is required. String
The date and time the service catalog was last modified, expressed in RFC 3339 timestamp format. Example: 2021-12-10T05:10:29.721Z

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi