Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ServiceCatalog.getServiceCatalogAssociation
Explore with Pulumi AI
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/v2/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)
public static Output<GetServiceCatalogAssociationResult> getServiceCatalogAssociation(GetServiceCatalogAssociationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceCatalog/getServiceCatalogAssociation:getServiceCatalogAssociation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ServiceCatalog stringAssociation Id 
- The unique identifier of the service catalog association.
- ServiceCatalog stringAssociation Id 
- The unique identifier of the service catalog association.
- serviceCatalog StringAssociation Id 
- The unique identifier of the service catalog association.
- serviceCatalog stringAssociation Id 
- The unique identifier of the service catalog association.
- service_catalog_ strassociation_ id 
- The unique identifier of the service catalog association.
- serviceCatalog StringAssociation Id 
- 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.
- ServiceCatalog stringAssociation Id 
- ServiceCatalog stringId 
- 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.
- ServiceCatalog stringAssociation Id 
- ServiceCatalog stringId 
- 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.
- serviceCatalog StringAssociation Id 
- serviceCatalog StringId 
- 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.
- serviceCatalog stringAssociation Id 
- serviceCatalog stringId 
- 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_ strassociation_ id 
- service_catalog_ strid 
- 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.
- serviceCatalog StringAssociation Id 
- serviceCatalog StringId 
- 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 ociTerraform Provider.