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

oci.CertificatesManagement.getAssociation

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 Association resource in Oracle Cloud Infrastructure Certificates Management service.

Gets details about the specified association.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAssociation = oci.CertificatesManagement.getAssociation({
    associationId: testAssociationOciCertificatesManagementAssociation.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_association = oci.CertificatesManagement.get_association(association_id=test_association_oci_certificates_management_association["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/certificatesmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := certificatesmanagement.GetAssociation(ctx, &certificatesmanagement.GetAssociationArgs{
			AssociationId: testAssociationOciCertificatesManagementAssociation.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 testAssociation = Oci.CertificatesManagement.GetAssociation.Invoke(new()
    {
        AssociationId = testAssociationOciCertificatesManagementAssociation.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CertificatesManagement.CertificatesManagementFunctions;
import com.pulumi.oci.CertificatesManagement.inputs.GetAssociationArgs;
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 testAssociation = CertificatesManagementFunctions.getAssociation(GetAssociationArgs.builder()
            .associationId(testAssociationOciCertificatesManagementAssociation.id())
            .build());

    }
}
Copy
variables:
  testAssociation:
    fn::invoke:
      function: oci:CertificatesManagement:getAssociation
      arguments:
        associationId: ${testAssociationOciCertificatesManagementAssociation.id}
Copy

Using getAssociation

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 getAssociation(args: GetAssociationArgs, opts?: InvokeOptions): Promise<GetAssociationResult>
function getAssociationOutput(args: GetAssociationOutputArgs, opts?: InvokeOptions): Output<GetAssociationResult>
Copy
def get_association(association_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAssociationResult
def get_association_output(association_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAssociationResult]
Copy
func GetAssociation(ctx *Context, args *GetAssociationArgs, opts ...InvokeOption) (*GetAssociationResult, error)
func GetAssociationOutput(ctx *Context, args *GetAssociationOutputArgs, opts ...InvokeOption) GetAssociationResultOutput
Copy

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

public static class GetAssociation 
{
    public static Task<GetAssociationResult> InvokeAsync(GetAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetAssociationResult> Invoke(GetAssociationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAssociationResult> getAssociation(GetAssociationArgs args, InvokeOptions options)
public static Output<GetAssociationResult> getAssociation(GetAssociationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:CertificatesManagement/getAssociation:getAssociation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AssociationId This property is required. string
The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
AssociationId This property is required. string
The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
associationId This property is required. String
The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
associationId This property is required. string
The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
association_id This property is required. str
The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
associationId This property is required. String
The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.

getAssociation Result

The following output properties are available:

AssociatedResourceId string
The OCID of the associated resource.
AssociationId string
AssociationType string
Type of the association.
CertificatesResourceId string
The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
CompartmentId string
The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
State string
The current lifecycle state of the association.
TimeCreated string
A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
AssociatedResourceId string
The OCID of the associated resource.
AssociationId string
AssociationType string
Type of the association.
CertificatesResourceId string
The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
CompartmentId string
The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
State string
The current lifecycle state of the association.
TimeCreated string
A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
associatedResourceId String
The OCID of the associated resource.
associationId String
associationType String
Type of the association.
certificatesResourceId String
The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
compartmentId String
The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
id String
The provider-assigned unique ID for this managed resource.
name String
A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
state String
The current lifecycle state of the association.
timeCreated String
A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
associatedResourceId string
The OCID of the associated resource.
associationId string
associationType string
Type of the association.
certificatesResourceId string
The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
compartmentId string
The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
id string
The provider-assigned unique ID for this managed resource.
name string
A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
state string
The current lifecycle state of the association.
timeCreated string
A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
associated_resource_id str
The OCID of the associated resource.
association_id str
association_type str
Type of the association.
certificates_resource_id str
The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
compartment_id str
The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
id str
The provider-assigned unique ID for this managed resource.
name str
A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
state str
The current lifecycle state of the association.
time_created str
A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
associatedResourceId String
The OCID of the associated resource.
associationId String
associationType String
Type of the association.
certificatesResourceId String
The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
compartmentId String
The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
id String
The provider-assigned unique ID for this managed resource.
name String
A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
state String
The current lifecycle state of the association.
timeCreated String
A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

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