Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ServiceCatalog.getServiceCatalogs
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testServiceCatalogs:
    fn::invoke:
      function: oci:ServiceCatalog:getServiceCatalogs
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${serviceCatalogDisplayName}
        serviceCatalogId: ${testServiceCatalog.id}
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>def get_service_catalogs(compartment_id: Optional[str] = None,
                         display_name: Optional[str] = None,
                         filters: Optional[Sequence[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[GetServiceCatalogsFilterArgs]]]] = None,
                         service_catalog_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetServiceCatalogsResult]func GetServiceCatalogs(ctx *Context, args *GetServiceCatalogsArgs, opts ...InvokeOption) (*GetServiceCatalogsResult, error)
func GetServiceCatalogsOutput(ctx *Context, args *GetServiceCatalogsOutputArgs, opts ...InvokeOption) GetServiceCatalogsResultOutput> 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)
}public static CompletableFuture<GetServiceCatalogsResult> getServiceCatalogs(GetServiceCatalogsArgs args, InvokeOptions options)
public static Output<GetServiceCatalogsResult> getServiceCatalogs(GetServiceCatalogsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceCatalog/getServiceCatalogs:getServiceCatalogs
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The unique identifier for the compartment.
- DisplayName string
- Exact match name filter.
- Filters
List<GetService Catalogs Filter> 
- ServiceCatalog stringId 
- The unique identifier for the service catalog.
- CompartmentId string
- The unique identifier for the compartment.
- DisplayName string
- Exact match name filter.
- Filters
[]GetService Catalogs Filter 
- ServiceCatalog stringId 
- The unique identifier for the service catalog.
- compartmentId String
- The unique identifier for the compartment.
- displayName String
- Exact match name filter.
- filters
List<GetsFilter> 
- serviceCatalog StringId 
- The unique identifier for the service catalog.
- compartmentId string
- The unique identifier for the compartment.
- displayName string
- Exact match name filter.
- filters
GetService Catalogs Filter[] 
- serviceCatalog stringId 
- The unique identifier for the service catalog.
- compartment_id str
- The unique identifier for the compartment.
- display_name str
- Exact match name filter.
- filters
Sequence[GetService Catalogs Filter] 
- service_catalog_ strid 
- The unique identifier for the service catalog.
- compartmentId String
- The unique identifier for the compartment.
- displayName String
- Exact match name filter.
- filters List<Property Map>
- serviceCatalog StringId 
- 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.
- ServiceCatalog List<GetCollections Service Catalogs Service Catalog Collection> 
- The list of service_catalog_collection.
- DisplayName string
- The name of the service catalog.
- Filters
List<GetService Catalogs Filter> 
- ServiceCatalog stringId 
- CompartmentId string
- The Compartment id where the service catalog exists
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceCatalog []GetCollections Service Catalogs Service Catalog Collection 
- The list of service_catalog_collection.
- DisplayName string
- The name of the service catalog.
- Filters
[]GetService Catalogs Filter 
- ServiceCatalog stringId 
- compartmentId String
- The Compartment id where the service catalog exists
- id String
- The provider-assigned unique ID for this managed resource.
- serviceCatalog List<GetsCollections Collection> 
- The list of service_catalog_collection.
- displayName String
- The name of the service catalog.
- filters
List<GetsFilter> 
- serviceCatalog StringId 
- compartmentId string
- The Compartment id where the service catalog exists
- id string
- The provider-assigned unique ID for this managed resource.
- serviceCatalog GetCollections Service Catalogs Service Catalog Collection[] 
- The list of service_catalog_collection.
- displayName string
- The name of the service catalog.
- filters
GetService Catalogs Filter[] 
- serviceCatalog stringId 
- compartment_id str
- The Compartment id where the service catalog exists
- id str
- The provider-assigned unique ID for this managed resource.
- service_catalog_ Sequence[Getcollections Service Catalogs Service Catalog Collection] 
- The list of service_catalog_collection.
- display_name str
- The name of the service catalog.
- filters
Sequence[GetService Catalogs Filter] 
- service_catalog_ strid 
- compartmentId String
- The Compartment id where the service catalog exists
- id String
- The provider-assigned unique ID for this managed resource.
- serviceCatalog List<Property Map>Collections 
- The list of service_catalog_collection.
- displayName String
- The name of the service catalog.
- filters List<Property Map>
- serviceCatalog StringId 
Supporting Types
GetServiceCatalogsFilter   
GetServiceCatalogsServiceCatalogCollection     
GetServiceCatalogsServiceCatalogCollectionItem      
- CompartmentId string
- The unique identifier for the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- Exact match name filter.
- 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 string
- The unique identifier for the Service catalog.
- State string
- The lifecycle state of the service catalog.
- TimeCreated string
- The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
- TimeUpdated 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 string
- The unique identifier for the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- Exact match name filter.
- 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 string
- The unique identifier for the Service catalog.
- State string
- The lifecycle state of the service catalog.
- TimeCreated string
- The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
- TimeUpdated 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 String
- The unique identifier for the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- Exact match name filter.
- 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 String
- The unique identifier for the Service catalog.
- state String
- The lifecycle state of the service catalog.
- timeCreated String
- The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
- timeUpdated 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 string
- The unique identifier for the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- Exact match name filter.
- {[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 string
- The unique identifier for the Service catalog.
- state string
- The lifecycle state of the service catalog.
- timeCreated string
- The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
- timeUpdated 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 str
- The unique identifier for the compartment.
- 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 str
- Exact match name filter.
- 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 str
- The unique identifier for the Service catalog.
- state str
- The lifecycle state of the service catalog.
- time_created 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 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 String
- The unique identifier for the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- Exact match name filter.
- 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 String
- The unique identifier for the Service catalog.
- state String
- The lifecycle state of the service catalog.
- timeCreated String
- The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example: 2021-05-26T21:10:29.600Z
- timeUpdated 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 ociTerraform Provider.