1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceCatalog
  5. getServiceCatalogAssociation
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.ServiceCatalog.getServiceCatalogAssociation

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testServiceCatalogAssociation:
    fn::invoke:
      function: oci:ServiceCatalog:getServiceCatalogAssociation
      arguments:
        serviceCatalogAssociationId: ${testServiceCatalogAssociationOciServiceCatalogServiceCatalogAssociation.id}
Copy

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>
Copy
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]
Copy
func GetServiceCatalogAssociation(ctx *Context, args *GetServiceCatalogAssociationArgs, opts ...InvokeOption) (*GetServiceCatalogAssociationResult, error)
func GetServiceCatalogAssociationOutput(ctx *Context, args *GetServiceCatalogAssociationOutputArgs, opts ...InvokeOption) GetServiceCatalogAssociationResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetServiceCatalogAssociationResult> getServiceCatalogAssociation(GetServiceCatalogAssociationArgs args, InvokeOptions options)
public static Output<GetServiceCatalogAssociationResult> getServiceCatalogAssociation(GetServiceCatalogAssociationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ServiceCatalog/getServiceCatalogAssociation:getServiceCatalogAssociation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServiceCatalogAssociationId This property is required. string
The unique identifier of the service catalog association.
ServiceCatalogAssociationId This property is required. string
The unique identifier of the service catalog association.
serviceCatalogAssociationId This property is required. String
The unique identifier of the service catalog association.
serviceCatalogAssociationId This property is required. string
The unique identifier of the service catalog association.
service_catalog_association_id This property is required. str
The unique identifier of the service catalog association.
serviceCatalogAssociationId This property is required. 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.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi