Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ServiceCatalog.getServiceCatalogAssociations
Explore with Pulumi AI
This data source provides the list of Service Catalog Associations in Oracle Cloud Infrastructure Service Catalog service.
Lists all the resource associations for a specific service catalog.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testServiceCatalogAssociations = oci.ServiceCatalog.getServiceCatalogAssociations({
    entityId: testEntity.id,
    entityType: serviceCatalogAssociationEntityType,
    serviceCatalogAssociationId: testServiceCatalogAssociation.id,
    serviceCatalogId: testServiceCatalog.id,
});
import pulumi
import pulumi_oci as oci
test_service_catalog_associations = oci.ServiceCatalog.get_service_catalog_associations(entity_id=test_entity["id"],
    entity_type=service_catalog_association_entity_type,
    service_catalog_association_id=test_service_catalog_association["id"],
    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.GetServiceCatalogAssociations(ctx, &servicecatalog.GetServiceCatalogAssociationsArgs{
			EntityId:                    pulumi.StringRef(testEntity.Id),
			EntityType:                  pulumi.StringRef(serviceCatalogAssociationEntityType),
			ServiceCatalogAssociationId: pulumi.StringRef(testServiceCatalogAssociation.Id),
			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 testServiceCatalogAssociations = Oci.ServiceCatalog.GetServiceCatalogAssociations.Invoke(new()
    {
        EntityId = testEntity.Id,
        EntityType = serviceCatalogAssociationEntityType,
        ServiceCatalogAssociationId = testServiceCatalogAssociation.Id,
        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.GetServiceCatalogAssociationsArgs;
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 testServiceCatalogAssociations = ServiceCatalogFunctions.getServiceCatalogAssociations(GetServiceCatalogAssociationsArgs.builder()
            .entityId(testEntity.id())
            .entityType(serviceCatalogAssociationEntityType)
            .serviceCatalogAssociationId(testServiceCatalogAssociation.id())
            .serviceCatalogId(testServiceCatalog.id())
            .build());
    }
}
variables:
  testServiceCatalogAssociations:
    fn::invoke:
      function: oci:ServiceCatalog:getServiceCatalogAssociations
      arguments:
        entityId: ${testEntity.id}
        entityType: ${serviceCatalogAssociationEntityType}
        serviceCatalogAssociationId: ${testServiceCatalogAssociation.id}
        serviceCatalogId: ${testServiceCatalog.id}
Using getServiceCatalogAssociations
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 getServiceCatalogAssociations(args: GetServiceCatalogAssociationsArgs, opts?: InvokeOptions): Promise<GetServiceCatalogAssociationsResult>
function getServiceCatalogAssociationsOutput(args: GetServiceCatalogAssociationsOutputArgs, opts?: InvokeOptions): Output<GetServiceCatalogAssociationsResult>def get_service_catalog_associations(entity_id: Optional[str] = None,
                                     entity_type: Optional[str] = None,
                                     filters: Optional[Sequence[GetServiceCatalogAssociationsFilter]] = None,
                                     service_catalog_association_id: Optional[str] = None,
                                     service_catalog_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetServiceCatalogAssociationsResult
def get_service_catalog_associations_output(entity_id: Optional[pulumi.Input[str]] = None,
                                     entity_type: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetServiceCatalogAssociationsFilterArgs]]]] = None,
                                     service_catalog_association_id: Optional[pulumi.Input[str]] = None,
                                     service_catalog_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetServiceCatalogAssociationsResult]func GetServiceCatalogAssociations(ctx *Context, args *GetServiceCatalogAssociationsArgs, opts ...InvokeOption) (*GetServiceCatalogAssociationsResult, error)
func GetServiceCatalogAssociationsOutput(ctx *Context, args *GetServiceCatalogAssociationsOutputArgs, opts ...InvokeOption) GetServiceCatalogAssociationsResultOutput> Note: This function is named GetServiceCatalogAssociations in the Go SDK.
public static class GetServiceCatalogAssociations 
{
    public static Task<GetServiceCatalogAssociationsResult> InvokeAsync(GetServiceCatalogAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceCatalogAssociationsResult> Invoke(GetServiceCatalogAssociationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceCatalogAssociationsResult> getServiceCatalogAssociations(GetServiceCatalogAssociationsArgs args, InvokeOptions options)
public static Output<GetServiceCatalogAssociationsResult> getServiceCatalogAssociations(GetServiceCatalogAssociationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceCatalog/getServiceCatalogAssociations:getServiceCatalogAssociations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EntityId string
- The unique identifier of the entity associated with service catalog.
- EntityType string
- The type of the application in the service catalog.
- Filters
List<GetService Catalog Associations Filter> 
- ServiceCatalog stringAssociation Id 
- The unique identifier for the service catalog association.
- ServiceCatalog stringId 
- The unique identifier for the service catalog.
- EntityId string
- The unique identifier of the entity associated with service catalog.
- EntityType string
- The type of the application in the service catalog.
- Filters
[]GetService Catalog Associations Filter 
- ServiceCatalog stringAssociation Id 
- The unique identifier for the service catalog association.
- ServiceCatalog stringId 
- The unique identifier for the service catalog.
- entityId String
- The unique identifier of the entity associated with service catalog.
- entityType String
- The type of the application in the service catalog.
- filters
List<GetAssociations Filter> 
- serviceCatalog StringAssociation Id 
- The unique identifier for the service catalog association.
- serviceCatalog StringId 
- The unique identifier for the service catalog.
- entityId string
- The unique identifier of the entity associated with service catalog.
- entityType string
- The type of the application in the service catalog.
- filters
GetService Catalog Associations Filter[] 
- serviceCatalog stringAssociation Id 
- The unique identifier for the service catalog association.
- serviceCatalog stringId 
- The unique identifier for the service catalog.
- entity_id str
- The unique identifier of the entity associated with service catalog.
- entity_type str
- The type of the application in the service catalog.
- filters
Sequence[GetService Catalog Associations Filter] 
- service_catalog_ strassociation_ id 
- The unique identifier for the service catalog association.
- service_catalog_ strid 
- The unique identifier for the service catalog.
- entityId String
- The unique identifier of the entity associated with service catalog.
- entityType String
- The type of the application in the service catalog.
- filters List<Property Map>
- serviceCatalog StringAssociation Id 
- The unique identifier for the service catalog association.
- serviceCatalog StringId 
- The unique identifier for the service catalog.
getServiceCatalogAssociations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceCatalog List<GetAssociation Collections Service Catalog Associations Service Catalog Association Collection> 
- The list of service_catalog_association_collection.
- EntityId string
- Identifier of the entity being associated with service catalog.
- EntityType string
- The type of the entity that is associated with the service catalog.
- Filters
List<GetService Catalog Associations Filter> 
- ServiceCatalog stringAssociation Id 
- ServiceCatalog stringId 
- Identifier of the service catalog.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceCatalog []GetAssociation Collections Service Catalog Associations Service Catalog Association Collection 
- The list of service_catalog_association_collection.
- EntityId string
- Identifier of the entity being associated with service catalog.
- EntityType string
- The type of the entity that is associated with the service catalog.
- Filters
[]GetService Catalog Associations Filter 
- ServiceCatalog stringAssociation Id 
- ServiceCatalog stringId 
- Identifier of the service catalog.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceCatalog List<GetAssociation Collections Associations Association Collection> 
- The list of service_catalog_association_collection.
- entityId String
- Identifier of the entity being associated with service catalog.
- entityType String
- The type of the entity that is associated with the service catalog.
- filters
List<GetAssociations Filter> 
- serviceCatalog StringAssociation Id 
- serviceCatalog StringId 
- Identifier of the service catalog.
- id string
- The provider-assigned unique ID for this managed resource.
- serviceCatalog GetAssociation Collections Service Catalog Associations Service Catalog Association Collection[] 
- The list of service_catalog_association_collection.
- entityId string
- Identifier of the entity being associated with service catalog.
- entityType string
- The type of the entity that is associated with the service catalog.
- filters
GetService Catalog Associations Filter[] 
- serviceCatalog stringAssociation Id 
- serviceCatalog stringId 
- Identifier of the service catalog.
- id str
- The provider-assigned unique ID for this managed resource.
- service_catalog_ Sequence[Getassociation_ collections Service Catalog Associations Service Catalog Association Collection] 
- The list of service_catalog_association_collection.
- entity_id str
- Identifier of the entity being associated with service catalog.
- entity_type str
- The type of the entity that is associated with the service catalog.
- filters
Sequence[GetService Catalog Associations Filter] 
- service_catalog_ strassociation_ id 
- service_catalog_ strid 
- Identifier of the service catalog.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceCatalog List<Property Map>Association Collections 
- The list of service_catalog_association_collection.
- entityId String
- Identifier of the entity being associated with service catalog.
- entityType String
- The type of the entity that is associated with the service catalog.
- filters List<Property Map>
- serviceCatalog StringAssociation Id 
- serviceCatalog StringId 
- Identifier of the service catalog.
Supporting Types
GetServiceCatalogAssociationsFilter    
GetServiceCatalogAssociationsServiceCatalogAssociationCollection       
GetServiceCatalogAssociationsServiceCatalogAssociationCollectionItem        
- EntityId string
- The unique identifier of the entity associated with service catalog.
- EntityType string
- The type of the application in the service catalog.
- Id string
- Identifier of the association.
- ServiceCatalog stringId 
- The unique identifier for the service catalog.
- TimeCreated string
- Timestamp of when the resource was associated with service catalog.
- EntityId string
- The unique identifier of the entity associated with service catalog.
- EntityType string
- The type of the application in the service catalog.
- Id string
- Identifier of the association.
- ServiceCatalog stringId 
- The unique identifier for the service catalog.
- TimeCreated string
- Timestamp of when the resource was associated with service catalog.
- entityId String
- The unique identifier of the entity associated with service catalog.
- entityType String
- The type of the application in the service catalog.
- id String
- Identifier of the association.
- serviceCatalog StringId 
- The unique identifier for the service catalog.
- timeCreated String
- Timestamp of when the resource was associated with service catalog.
- entityId string
- The unique identifier of the entity associated with service catalog.
- entityType string
- The type of the application in the service catalog.
- id string
- Identifier of the association.
- serviceCatalog stringId 
- The unique identifier for the service catalog.
- timeCreated string
- Timestamp of when the resource was associated with service catalog.
- entity_id str
- The unique identifier of the entity associated with service catalog.
- entity_type str
- The type of the application in the service catalog.
- id str
- Identifier of the association.
- service_catalog_ strid 
- The unique identifier for the service catalog.
- time_created str
- Timestamp of when the resource was associated with service catalog.
- entityId String
- The unique identifier of the entity associated with service catalog.
- entityType String
- The type of the application in the service catalog.
- id String
- Identifier of the association.
- serviceCatalog StringId 
- The unique identifier for the service catalog.
- timeCreated String
- Timestamp of when the resource was associated with service catalog.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.