Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.CertificatesManagement.getAssociation
Explore with Pulumi AI
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,
});
import pulumi
import pulumi_oci as oci
test_association = oci.CertificatesManagement.get_association(association_id=test_association_oci_certificates_management_association["id"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testAssociation:
    fn::invoke:
      function: oci:CertificatesManagement:getAssociation
      arguments:
        associationId: ${testAssociationOciCertificatesManagementAssociation.id}
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>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]func GetAssociation(ctx *Context, args *GetAssociationArgs, opts ...InvokeOption) (*GetAssociationResult, error)
func GetAssociationOutput(ctx *Context, args *GetAssociationOutputArgs, opts ...InvokeOption) GetAssociationResultOutput> 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)
}public static CompletableFuture<GetAssociationResult> getAssociation(GetAssociationArgs args, InvokeOptions options)
public static Output<GetAssociationResult> getAssociation(GetAssociationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CertificatesManagement/getAssociation:getAssociation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AssociationId string
- The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
- AssociationId string
- The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
- associationId String
- The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
- associationId string
- The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
- association_id str
- The OCID of an association between a certificate-related resource and another Oracle Cloud Infrastructure resource.
- associationId 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:
- AssociatedResource stringId 
- The OCID of the associated resource.
- AssociationId string
- AssociationType string
- Type of the association.
- CertificatesResource stringId 
- 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
- AssociatedResource stringId 
- The OCID of the associated resource.
- AssociationId string
- AssociationType string
- Type of the association.
- CertificatesResource stringId 
- 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
- associatedResource StringId 
- The OCID of the associated resource.
- associationId String
- associationType String
- Type of the association.
- certificatesResource StringId 
- 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
- associatedResource stringId 
- The OCID of the associated resource.
- associationId string
- associationType string
- Type of the association.
- certificatesResource stringId 
- 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_ strid 
- The OCID of the associated resource.
- association_id str
- association_type str
- Type of the association.
- certificates_resource_ strid 
- 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
- associatedResource StringId 
- The OCID of the associated resource.
- associationId String
- associationType String
- Type of the association.
- certificatesResource StringId 
- 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 ociTerraform Provider.