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

oci.ServiceCatalog.getServiceCatalog

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 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: testServiceCatalogOciServiceCatalogServiceCatalog.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_service_catalog = oci.ServiceCatalog.get_service_catalog(service_catalog_id=test_service_catalog_oci_service_catalog_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.GetServiceCatalog(ctx, &servicecatalog.GetServiceCatalogArgs{
			ServiceCatalogId: testServiceCatalogOciServiceCatalogServiceCatalog.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 testServiceCatalog = Oci.ServiceCatalog.GetServiceCatalog.Invoke(new()
    {
        ServiceCatalogId = testServiceCatalogOciServiceCatalogServiceCatalog.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.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(testServiceCatalogOciServiceCatalogServiceCatalog.id())
            .build());

    }
}
Copy
variables:
  testServiceCatalog:
    fn::invoke:
      function: oci:ServiceCatalog:getServiceCatalog
      arguments:
        serviceCatalogId: ${testServiceCatalogOciServiceCatalogServiceCatalog.id}
Copy

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>
Copy
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]
Copy
func GetServiceCatalog(ctx *Context, args *GetServiceCatalogArgs, opts ...InvokeOption) (*GetServiceCatalogResult, error)
func GetServiceCatalogOutput(ctx *Context, args *GetServiceCatalogOutputArgs, opts ...InvokeOption) GetServiceCatalogResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetServiceCatalogResult> getServiceCatalog(GetServiceCatalogArgs args, InvokeOptions options)
public static Output<GetServiceCatalogResult> getServiceCatalog(GetServiceCatalogArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ServiceCatalog/getServiceCatalog:getServiceCatalog
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServiceCatalogId This property is required. string
The unique identifier for the service catalog.
ServiceCatalogId This property is required. string
The unique identifier for the service catalog.
serviceCatalogId This property is required. String
The unique identifier for the service catalog.
serviceCatalogId This property is required. string
The unique identifier for the service catalog.
service_catalog_id This property is required. str
The unique identifier for the service catalog.
serviceCatalogId This property is required. 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, string>
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, 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.
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]string
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]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.
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,String>
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,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.
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]: string}
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]: 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.
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, str]
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, 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.
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<String>
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>
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.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi