1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceCatalog
  5. getServiceCatalog
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.ServiceCatalog.getServiceCatalog

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Service Catalog resource in Oracle Cloud Infrastructure Service Catalog service.

    Gets detailed information about the service catalog including name, compartmentId

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testServiceCatalog = oci.ServiceCatalog.getServiceCatalog({
        serviceCatalogId: oci_service_catalog_service_catalog.test_service_catalog.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_service_catalog = oci.ServiceCatalog.get_service_catalog(service_catalog_id=oci_service_catalog_service_catalog["test_service_catalog"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ServiceCatalog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ServiceCatalog.GetServiceCatalog(ctx, &servicecatalog.GetServiceCatalogArgs{
    			ServiceCatalogId: oci_service_catalog_service_catalog.Test_service_catalog.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 testServiceCatalog = Oci.ServiceCatalog.GetServiceCatalog.Invoke(new()
        {
            ServiceCatalogId = oci_service_catalog_service_catalog.Test_service_catalog.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.GetServiceCatalogArgs;
    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 testServiceCatalog = ServiceCatalogFunctions.getServiceCatalog(GetServiceCatalogArgs.builder()
                .serviceCatalogId(oci_service_catalog_service_catalog.test_service_catalog().id())
                .build());
    
        }
    }
    
    variables:
      testServiceCatalog:
        fn::invoke:
          Function: oci:ServiceCatalog:getServiceCatalog
          Arguments:
            serviceCatalogId: ${oci_service_catalog_service_catalog.test_service_catalog.id}
    

    Using getServiceCatalog

    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 getServiceCatalog(args: GetServiceCatalogArgs, opts?: InvokeOptions): Promise<GetServiceCatalogResult>
    function getServiceCatalogOutput(args: GetServiceCatalogOutputArgs, opts?: InvokeOptions): Output<GetServiceCatalogResult>
    def get_service_catalog(service_catalog_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServiceCatalogResult
    def get_service_catalog_output(service_catalog_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetServiceCatalogResult]
    func GetServiceCatalog(ctx *Context, args *GetServiceCatalogArgs, opts ...InvokeOption) (*GetServiceCatalogResult, error)
    func GetServiceCatalogOutput(ctx *Context, args *GetServiceCatalogOutputArgs, opts ...InvokeOption) GetServiceCatalogResultOutput

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

    public static class GetServiceCatalog 
    {
        public static Task<GetServiceCatalogResult> InvokeAsync(GetServiceCatalogArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceCatalogResult> Invoke(GetServiceCatalogInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceCatalogResult> getServiceCatalog(GetServiceCatalogArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceCatalog/getServiceCatalog:getServiceCatalog
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceCatalogId string
    The unique identifier for the service catalog.
    ServiceCatalogId string
    The unique identifier for the service catalog.
    serviceCatalogId String
    The unique identifier for the service catalog.
    serviceCatalogId string
    The unique identifier for the service catalog.
    service_catalog_id str
    The unique identifier for the service catalog.
    serviceCatalogId String
    The unique identifier for the service catalog.

    getServiceCatalog Result

    The following output properties are available:

    CompartmentId string
    The Compartment id where the service catalog exists
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    The name of the service catalog.
    FreeformTags Dictionary<string, object>
    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.
    ServiceCatalogId string
    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 Compartment id where the service catalog exists
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    The name of the service catalog.
    FreeformTags map[string]interface{}
    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.
    ServiceCatalogId string
    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 Compartment id where the service catalog exists
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    The name of the service catalog.
    freeformTags Map<String,Object>
    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.
    serviceCatalogId String
    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 Compartment id where the service catalog exists
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    The name of the service catalog.
    freeformTags {[key: string]: any}
    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.
    serviceCatalogId string
    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 Compartment id where the service catalog exists
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    The name of the service catalog.
    freeform_tags Mapping[str, Any]
    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.
    service_catalog_id str
    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 Compartment id where the service catalog exists
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    The name of the service catalog.
    freeformTags Map<Any>
    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.
    serviceCatalogId String
    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi