1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceCatalog
  5. getServiceCatalogAssociation
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.ServiceCatalog.getServiceCatalogAssociation

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    This data source provides details about a specific Service Catalog Association resource in Oracle Cloud Infrastructure Service Catalog service.

    Gets detailed information about specific service catalog association.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testServiceCatalogAssociation = oci.ServiceCatalog.getServiceCatalogAssociation({
        serviceCatalogAssociationId: testServiceCatalogAssociationOciServiceCatalogServiceCatalogAssociation.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_service_catalog_association = oci.ServiceCatalog.get_service_catalog_association(service_catalog_association_id=test_service_catalog_association_oci_service_catalog_service_catalog_association["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.GetServiceCatalogAssociation(ctx, &servicecatalog.GetServiceCatalogAssociationArgs{
    			ServiceCatalogAssociationId: testServiceCatalogAssociationOciServiceCatalogServiceCatalogAssociation.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 testServiceCatalogAssociation = Oci.ServiceCatalog.GetServiceCatalogAssociation.Invoke(new()
        {
            ServiceCatalogAssociationId = testServiceCatalogAssociationOciServiceCatalogServiceCatalogAssociation.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.GetServiceCatalogAssociationArgs;
    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 testServiceCatalogAssociation = ServiceCatalogFunctions.getServiceCatalogAssociation(GetServiceCatalogAssociationArgs.builder()
                .serviceCatalogAssociationId(testServiceCatalogAssociationOciServiceCatalogServiceCatalogAssociation.id())
                .build());
    
        }
    }
    
    variables:
      testServiceCatalogAssociation:
        fn::invoke:
          Function: oci:ServiceCatalog:getServiceCatalogAssociation
          Arguments:
            serviceCatalogAssociationId: ${testServiceCatalogAssociationOciServiceCatalogServiceCatalogAssociation.id}
    

    Using getServiceCatalogAssociation

    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 getServiceCatalogAssociation(args: GetServiceCatalogAssociationArgs, opts?: InvokeOptions): Promise<GetServiceCatalogAssociationResult>
    function getServiceCatalogAssociationOutput(args: GetServiceCatalogAssociationOutputArgs, opts?: InvokeOptions): Output<GetServiceCatalogAssociationResult>
    def get_service_catalog_association(service_catalog_association_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetServiceCatalogAssociationResult
    def get_service_catalog_association_output(service_catalog_association_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetServiceCatalogAssociationResult]
    func GetServiceCatalogAssociation(ctx *Context, args *GetServiceCatalogAssociationArgs, opts ...InvokeOption) (*GetServiceCatalogAssociationResult, error)
    func GetServiceCatalogAssociationOutput(ctx *Context, args *GetServiceCatalogAssociationOutputArgs, opts ...InvokeOption) GetServiceCatalogAssociationResultOutput

    > Note: This function is named GetServiceCatalogAssociation in the Go SDK.

    public static class GetServiceCatalogAssociation 
    {
        public static Task<GetServiceCatalogAssociationResult> InvokeAsync(GetServiceCatalogAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceCatalogAssociationResult> Invoke(GetServiceCatalogAssociationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceCatalogAssociationResult> getServiceCatalogAssociation(GetServiceCatalogAssociationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceCatalog/getServiceCatalogAssociation:getServiceCatalogAssociation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceCatalogAssociationId string
    The unique identifier of the service catalog association.
    ServiceCatalogAssociationId string
    The unique identifier of the service catalog association.
    serviceCatalogAssociationId String
    The unique identifier of the service catalog association.
    serviceCatalogAssociationId string
    The unique identifier of the service catalog association.
    service_catalog_association_id str
    The unique identifier of the service catalog association.
    serviceCatalogAssociationId String
    The unique identifier of the service catalog association.

    getServiceCatalogAssociation Result

    The following output properties are available:

    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.
    Id string
    Identifier of the association.
    ServiceCatalogAssociationId string
    ServiceCatalogId string
    Identifier of the service catalog.
    TimeCreated string
    Timestamp of when the resource was associated with service catalog.
    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.
    Id string
    Identifier of the association.
    ServiceCatalogAssociationId string
    ServiceCatalogId string
    Identifier of the service catalog.
    TimeCreated string
    Timestamp of when the resource was associated with service catalog.
    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.
    id String
    Identifier of the association.
    serviceCatalogAssociationId String
    serviceCatalogId String
    Identifier of the service catalog.
    timeCreated String
    Timestamp of when the resource was associated with service catalog.
    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.
    id string
    Identifier of the association.
    serviceCatalogAssociationId string
    serviceCatalogId string
    Identifier of the service catalog.
    timeCreated string
    Timestamp of when the resource was associated with service catalog.
    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.
    id str
    Identifier of the association.
    service_catalog_association_id str
    service_catalog_id str
    Identifier of the service catalog.
    time_created str
    Timestamp of when the resource was associated with service catalog.
    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.
    id String
    Identifier of the association.
    serviceCatalogAssociationId String
    serviceCatalogId String
    Identifier of 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 v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi