Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_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:
- Compartment
Id string - The unique identifier for the compartment.
- Display
Name string - Exact match name filter.
- Filters
List<Get
Service Catalogs Filter> - Service
Catalog stringId - The unique identifier for the service catalog.
- Compartment
Id string - The unique identifier for the compartment.
- Display
Name string - Exact match name filter.
- Filters
[]Get
Service Catalogs Filter - Service
Catalog stringId - The unique identifier for the service catalog.
- compartment
Id String - The unique identifier for the compartment.
- display
Name String - Exact match name filter.
- filters
List<Gets
Filter> - service
Catalog StringId - The unique identifier for the service catalog.
- compartment
Id string - The unique identifier for the compartment.
- display
Name string - Exact match name filter.
- filters
Get
Service Catalogs Filter[] - service
Catalog 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[servicecatalog.
Get Service Catalogs Filter] - service_
catalog_ strid - The unique identifier for the service catalog.
- compartment
Id String - The unique identifier for the compartment.
- display
Name String - Exact match name filter.
- filters List<Property Map>
- service
Catalog StringId - The unique identifier for the service catalog.
getServiceCatalogs Result
The following output properties are available:
- Compartment
Id string - The Compartment id where the service catalog exists
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Catalog List<GetCollections Service Catalogs Service Catalog Collection> - The list of service_catalog_collection.
- Display
Name string - The name of the service catalog.
- Filters
List<Get
Service Catalogs Filter> - Service
Catalog stringId
- Compartment
Id string - The Compartment id where the service catalog exists
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Catalog []GetCollections Service Catalogs Service Catalog Collection - The list of service_catalog_collection.
- Display
Name string - The name of the service catalog.
- Filters
[]Get
Service Catalogs Filter - Service
Catalog stringId
- compartment
Id String - The Compartment id where the service catalog exists
- id String
- The provider-assigned unique ID for this managed resource.
- service
Catalog List<GetsCollections Collection> - The list of service_catalog_collection.
- display
Name String - The name of the service catalog.
- filters
List<Gets
Filter> - service
Catalog StringId
- compartment
Id string - The Compartment id where the service catalog exists
- id string
- The provider-assigned unique ID for this managed resource.
- service
Catalog GetCollections Service Catalogs Service Catalog Collection[] - The list of service_catalog_collection.
- display
Name string - The name of the service catalog.
- filters
Get
Service Catalogs Filter[] - service
Catalog 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[servicecatalog.collections Get Service Catalogs Service Catalog Collection] - The list of service_catalog_collection.
- display_
name str - The name of the service catalog.
- filters
Sequence[servicecatalog.
Get Service Catalogs Filter] - service_
catalog_ strid
- compartment
Id String - The Compartment id where the service catalog exists
- id String
- The provider-assigned unique ID for this managed resource.
- service
Catalog List<Property Map>Collections - The list of service_catalog_collection.
- display
Name String - The name of the service catalog.
- filters List<Property Map>
- service
Catalog StringId
Supporting Types
GetServiceCatalogsFilter
GetServiceCatalogsServiceCatalogCollection
GetServiceCatalogsServiceCatalogCollectionItem
- Compartment
Id 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"}
- Display
Name 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.
- 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 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"}
- Display
Name 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.
- 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 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"}
- display
Name 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.
- 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 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"}
- display
Name 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.
- 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 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
- compartment
Id 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"}
- display
Name 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.
- 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.