1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceCatalog
  5. getServiceCatalogAssociations
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ServiceCatalog.getServiceCatalogAssociations

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_servicecatalog.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[_servicecatalog.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceCatalog/getServiceCatalogAssociations:getServiceCatalogAssociations
      arguments:
        # arguments dictionary

    The 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<GetServiceCatalogAssociationsFilter>
    ServiceCatalogAssociationId string
    The unique identifier for the service catalog association.
    ServiceCatalogId string
    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 []GetServiceCatalogAssociationsFilter
    ServiceCatalogAssociationId string
    The unique identifier for the service catalog association.
    ServiceCatalogId string
    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<GetAssociationsFilter>
    serviceCatalogAssociationId String
    The unique identifier for the service catalog association.
    serviceCatalogId String
    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 GetServiceCatalogAssociationsFilter[]
    serviceCatalogAssociationId string
    The unique identifier for the service catalog association.
    serviceCatalogId string
    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[servicecatalog.GetServiceCatalogAssociationsFilter]
    service_catalog_association_id str
    The unique identifier for the service catalog association.
    service_catalog_id str
    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>
    serviceCatalogAssociationId String
    The unique identifier for the service catalog association.
    serviceCatalogId String
    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.
    ServiceCatalogAssociationCollections List<GetServiceCatalogAssociationsServiceCatalogAssociationCollection>
    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<GetServiceCatalogAssociationsFilter>
    ServiceCatalogAssociationId string
    ServiceCatalogId string
    Identifier of the service catalog.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceCatalogAssociationCollections []GetServiceCatalogAssociationsServiceCatalogAssociationCollection
    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 []GetServiceCatalogAssociationsFilter
    ServiceCatalogAssociationId string
    ServiceCatalogId string
    Identifier of the service catalog.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceCatalogAssociationCollections List<GetAssociationsAssociationCollection>
    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<GetAssociationsFilter>
    serviceCatalogAssociationId String
    serviceCatalogId String
    Identifier of the service catalog.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceCatalogAssociationCollections GetServiceCatalogAssociationsServiceCatalogAssociationCollection[]
    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 GetServiceCatalogAssociationsFilter[]
    serviceCatalogAssociationId string
    serviceCatalogId string
    Identifier of the service catalog.
    id str
    The provider-assigned unique ID for this managed resource.
    service_catalog_association_collections Sequence[servicecatalog.GetServiceCatalogAssociationsServiceCatalogAssociationCollection]
    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[servicecatalog.GetServiceCatalogAssociationsFilter]
    service_catalog_association_id str
    service_catalog_id str
    Identifier of the service catalog.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceCatalogAssociationCollections List<Property Map>
    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>
    serviceCatalogAssociationId String
    serviceCatalogId String
    Identifier of the service catalog.

    Supporting Types

    GetServiceCatalogAssociationsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.
    ServiceCatalogId string
    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.
    ServiceCatalogId string
    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.
    serviceCatalogId String
    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.
    serviceCatalogId string
    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_id str
    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.
    serviceCatalogId String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi