Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ServiceCatalog.getServiceCatalog
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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: testServiceCatalogOciServiceCatalogServiceCatalog.id,
});
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"])
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: testServiceCatalogOciServiceCatalogServiceCatalog.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 = testServiceCatalogOciServiceCatalogServiceCatalog.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(testServiceCatalogOciServiceCatalogServiceCatalog.id())
.build());
}
}
variables:
testServiceCatalog:
fn::invoke:
Function: oci:ServiceCatalog:getServiceCatalog
Arguments:
serviceCatalogId: ${testServiceCatalogOciServiceCatalogServiceCatalog.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:
- Service
Catalog stringId - The unique identifier for the service catalog.
- Service
Catalog stringId - The unique identifier for the service catalog.
- service
Catalog StringId - The unique identifier for the service catalog.
- service
Catalog stringId - The unique identifier for the service catalog.
- service_
catalog_ strid - The unique identifier for the service catalog.
- service
Catalog StringId - The unique identifier for the service catalog.
getServiceCatalog Result
The following output properties are available:
- Compartment
Id string - The Compartment id where the service catalog exists
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - The name of the service catalog.
- 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.
- Service
Catalog stringId - State string
- The lifecycle state of the service catalog.
- Time
Created string - The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example:
2021-05-26T21:10:29.600Z
- Time
Updated 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 string - The Compartment id where the service catalog exists
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - The name of the service catalog.
- 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.
- Service
Catalog stringId - State string
- The lifecycle state of the service catalog.
- Time
Created string - The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example:
2021-05-26T21:10:29.600Z
- Time
Updated 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 String - The Compartment id where the service catalog exists
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - The name of the service catalog.
- 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.
- service
Catalog StringId - state String
- The lifecycle state of the service catalog.
- time
Created String - The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example:
2021-05-26T21:10:29.600Z
- time
Updated 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 string - The Compartment id where the service catalog exists
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - The name of the service catalog.
- {[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.
- service
Catalog stringId - state string
- The lifecycle state of the service catalog.
- time
Created string - The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example:
2021-05-26T21:10:29.600Z
- time
Updated 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
- 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.
- 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_ strid - 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
- compartment
Id String - The Compartment id where the service catalog exists
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - The name of the service catalog.
- 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.
- service
Catalog StringId - state String
- The lifecycle state of the service catalog.
- time
Created String - The date and time the service catalog was created, expressed in RFC 3339 timestamp format. Example:
2021-05-26T21:10:29.600Z
- time
Updated 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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi