1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CertificatesManagement
  5. getAssociation
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.CertificatesManagement.getAssociation

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 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: oci_certificates_management_association.test_association.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_association = oci.CertificatesManagement.get_association(association_id=oci_certificates_management_association["test_association"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: oci_certificates_management_association.Test_association.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 = oci_certificates_management_association.Test_association.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(oci_certificates_management_association.test_association().id())
                .build());
    
        }
    }
    
    variables:
      testAssociation:
        fn::invoke:
          Function: oci:CertificatesManagement:getAssociation
          Arguments:
            associationId: ${oci_certificates_management_association.test_association.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CertificatesManagement/getAssociation:getAssociation
      arguments:
        # arguments dictionary

    The 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:

    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.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi