1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceCatalog
  5. getServiceCatalogs
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ServiceCatalog.getServiceCatalogs

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceCatalog/getServiceCatalogs:getServiceCatalogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The unique identifier for the compartment.
    DisplayName string
    Exact match name filter.
    Filters List<GetServiceCatalogsFilter>
    ServiceCatalogId string
    The unique identifier for the service catalog.
    CompartmentId string
    The unique identifier for the compartment.
    DisplayName string
    Exact match name filter.
    Filters []GetServiceCatalogsFilter
    ServiceCatalogId string
    The unique identifier for the service catalog.
    compartmentId String
    The unique identifier for the compartment.
    displayName String
    Exact match name filter.
    filters List<GetsFilter>
    serviceCatalogId String
    The unique identifier for the service catalog.
    compartmentId string
    The unique identifier for the compartment.
    displayName string
    Exact match name filter.
    filters GetServiceCatalogsFilter[]
    serviceCatalogId string
    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[servicecatalog.GetServiceCatalogsFilter]
    service_catalog_id str
    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>
    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 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

    GetServiceCatalogsServiceCatalogCollection

    GetServiceCatalogsServiceCatalogCollectionItem

    CompartmentId string
    The unique identifier for the compartment.
    DefinedTags 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.
    FreeformTags 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.
    DefinedTags 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.
    FreeformTags 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.
    definedTags 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.
    freeformTags 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.
    definedTags {[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.
    freeformTags {[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.
    defined_tags 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.
    freeform_tags 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.
    definedTags 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.
    freeformTags 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi