1. Packages
  2. Confluent Provider
  3. API Docs
  4. getCertificateAuthority
Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

confluentcloud.getCertificateAuthority

Explore with Pulumi AI

confluentcloud logo
Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

    General Availability

    confluentcloud.CertificateAuthority describes a Certificate Authority data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    const main = confluentcloud.getCertificateAuthority({
        id: "op-abc123",
    });
    export const certificateAuthority = main;
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    main = confluentcloud.get_certificate_authority(id="op-abc123")
    pulumi.export("certificateAuthority", main)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		main, err := confluentcloud.LookupCertificateAuthority(ctx, &confluentcloud.LookupCertificateAuthorityArgs{
    			Id: "op-abc123",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("certificateAuthority", main)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var main = ConfluentCloud.GetCertificateAuthority.Invoke(new()
        {
            Id = "op-abc123",
        });
    
        return new Dictionary<string, object?>
        {
            ["certificateAuthority"] = main,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.confluentcloud.ConfluentcloudFunctions;
    import com.pulumi.confluentcloud.inputs.GetCertificateAuthorityArgs;
    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 main = ConfluentcloudFunctions.getCertificateAuthority(GetCertificateAuthorityArgs.builder()
                .id("op-abc123")
                .build());
    
            ctx.export("certificateAuthority", main.applyValue(getCertificateAuthorityResult -> getCertificateAuthorityResult));
        }
    }
    
    variables:
      main:
        fn::invoke:
          Function: confluentcloud:getCertificateAuthority
          Arguments:
            id: op-abc123
    outputs:
      certificateAuthority: ${main}
    

    Using getCertificateAuthority

    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 getCertificateAuthority(args: GetCertificateAuthorityArgs, opts?: InvokeOptions): Promise<GetCertificateAuthorityResult>
    function getCertificateAuthorityOutput(args: GetCertificateAuthorityOutputArgs, opts?: InvokeOptions): Output<GetCertificateAuthorityResult>
    def get_certificate_authority(crl_source: Optional[str] = None,
                                  crl_updated_at: Optional[str] = None,
                                  crl_url: Optional[str] = None,
                                  id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCertificateAuthorityResult
    def get_certificate_authority_output(crl_source: Optional[pulumi.Input[str]] = None,
                                  crl_updated_at: Optional[pulumi.Input[str]] = None,
                                  crl_url: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCertificateAuthorityResult]
    func LookupCertificateAuthority(ctx *Context, args *LookupCertificateAuthorityArgs, opts ...InvokeOption) (*LookupCertificateAuthorityResult, error)
    func LookupCertificateAuthorityOutput(ctx *Context, args *LookupCertificateAuthorityOutputArgs, opts ...InvokeOption) LookupCertificateAuthorityResultOutput

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

    public static class GetCertificateAuthority 
    {
        public static Task<GetCertificateAuthorityResult> InvokeAsync(GetCertificateAuthorityArgs args, InvokeOptions? opts = null)
        public static Output<GetCertificateAuthorityResult> Invoke(GetCertificateAuthorityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCertificateAuthorityResult> getCertificateAuthority(GetCertificateAuthorityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: confluentcloud:index/getCertificateAuthority:getCertificateAuthority
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the Certificate Authority, for example, op-abc123.
    CrlSource string
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    CrlUpdatedAt string
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    CrlUrl string
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    Id string
    The ID of the Certificate Authority, for example, op-abc123.
    CrlSource string
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    CrlUpdatedAt string
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    CrlUrl string
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    id String
    The ID of the Certificate Authority, for example, op-abc123.
    crlSource String
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crlUpdatedAt String
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crlUrl String
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    id string
    The ID of the Certificate Authority, for example, op-abc123.
    crlSource string
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crlUpdatedAt string
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crlUrl string
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    id str
    The ID of the Certificate Authority, for example, op-abc123.
    crl_source str
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crl_updated_at str
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crl_url str
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    id String
    The ID of the Certificate Authority, for example, op-abc123.
    crlSource String
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crlUpdatedAt String
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crlUrl String
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.

    getCertificateAuthority Result

    The following output properties are available:

    CertificateChainFilename string
    (Required String) The name of the certificate file, for example, certificate.pem.
    CrlSource string
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    CrlUpdatedAt string
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    CrlUrl string
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    Description string
    (Required String) A description for the Certificate Authority.
    DisplayName string
    (Required String) A human-readable name for the Certificate Authority.
    ExpirationDates List<string>
    (Required List of Strings) The expiration dates of certificates in the chain, for example, ["2017-07-21T17:32:28Z"].
    Fingerprints List<string>
    (Required List of Strings) The fingerprints for each certificate in the certificate chain, for example, ["B1BC968BD4f49D622AA89A81F2150152A41D829C"].
    Id string
    SerialNumbers List<string>
    (Required List of Strings) The serial numbers for each certificate in the certificate chain.
    CertificateChainFilename string
    (Required String) The name of the certificate file, for example, certificate.pem.
    CrlSource string
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    CrlUpdatedAt string
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    CrlUrl string
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    Description string
    (Required String) A description for the Certificate Authority.
    DisplayName string
    (Required String) A human-readable name for the Certificate Authority.
    ExpirationDates []string
    (Required List of Strings) The expiration dates of certificates in the chain, for example, ["2017-07-21T17:32:28Z"].
    Fingerprints []string
    (Required List of Strings) The fingerprints for each certificate in the certificate chain, for example, ["B1BC968BD4f49D622AA89A81F2150152A41D829C"].
    Id string
    SerialNumbers []string
    (Required List of Strings) The serial numbers for each certificate in the certificate chain.
    certificateChainFilename String
    (Required String) The name of the certificate file, for example, certificate.pem.
    crlSource String
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crlUpdatedAt String
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crlUrl String
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    description String
    (Required String) A description for the Certificate Authority.
    displayName String
    (Required String) A human-readable name for the Certificate Authority.
    expirationDates List<String>
    (Required List of Strings) The expiration dates of certificates in the chain, for example, ["2017-07-21T17:32:28Z"].
    fingerprints List<String>
    (Required List of Strings) The fingerprints for each certificate in the certificate chain, for example, ["B1BC968BD4f49D622AA89A81F2150152A41D829C"].
    id String
    serialNumbers List<String>
    (Required List of Strings) The serial numbers for each certificate in the certificate chain.
    certificateChainFilename string
    (Required String) The name of the certificate file, for example, certificate.pem.
    crlSource string
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crlUpdatedAt string
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crlUrl string
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    description string
    (Required String) A description for the Certificate Authority.
    displayName string
    (Required String) A human-readable name for the Certificate Authority.
    expirationDates string[]
    (Required List of Strings) The expiration dates of certificates in the chain, for example, ["2017-07-21T17:32:28Z"].
    fingerprints string[]
    (Required List of Strings) The fingerprints for each certificate in the certificate chain, for example, ["B1BC968BD4f49D622AA89A81F2150152A41D829C"].
    id string
    serialNumbers string[]
    (Required List of Strings) The serial numbers for each certificate in the certificate chain.
    certificate_chain_filename str
    (Required String) The name of the certificate file, for example, certificate.pem.
    crl_source str
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crl_updated_at str
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crl_url str
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    description str
    (Required String) A description for the Certificate Authority.
    display_name str
    (Required String) A human-readable name for the Certificate Authority.
    expiration_dates Sequence[str]
    (Required List of Strings) The expiration dates of certificates in the chain, for example, ["2017-07-21T17:32:28Z"].
    fingerprints Sequence[str]
    (Required List of Strings) The fingerprints for each certificate in the certificate chain, for example, ["B1BC968BD4f49D622AA89A81F2150152A41D829C"].
    id str
    serial_numbers Sequence[str]
    (Required List of Strings) The serial numbers for each certificate in the certificate chain.
    certificateChainFilename String
    (Required String) The name of the certificate file, for example, certificate.pem.
    crlSource String
    (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). Accepted values are LOCAL and URL.
    crlUpdatedAt String
    (Optional String) The timestamp for when CRL was last updated, for example, 2017-07-21T17:32:28Z.
    crlUrl String
    (Optional String) The url from which to fetch the CRL for the certificate authority if crl_source is URL.
    description String
    (Required String) A description for the Certificate Authority.
    displayName String
    (Required String) A human-readable name for the Certificate Authority.
    expirationDates List<String>
    (Required List of Strings) The expiration dates of certificates in the chain, for example, ["2017-07-21T17:32:28Z"].
    fingerprints List<String>
    (Required List of Strings) The fingerprints for each certificate in the certificate chain, for example, ["B1BC968BD4f49D622AA89A81F2150152A41D829C"].
    id String
    serialNumbers List<String>
    (Required List of Strings) The serial numbers for each certificate in the certificate chain.

    Package Details

    Repository
    Confluent Cloud pulumi/pulumi-confluentcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the confluent Terraform Provider.
    confluentcloud logo
    Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi