Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi
confluentcloud.getCertificateAuthority
Explore with Pulumi AI
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
. - Crl
Source 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
andURL
. - Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - Crl
Url 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
. - Crl
Source 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
andURL
. - Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - Crl
Url 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
. - crl
Source 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
andURL
. - crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - crl
Url 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
. - crl
Source 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
andURL
. - crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - crl
Url 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
andURL
. - crl_
updated_ strat - (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
. - crl
Source 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
andURL
. - crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - crl
Url 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:
- Certificate
Chain stringFilename - (Required String) The name of the certificate file, for example,
certificate.pem
. - Crl
Source 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
andURL
. - Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - Crl
Url 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.
- Display
Name string - (Required String) A human-readable name for the Certificate Authority.
- Expiration
Dates 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
- Serial
Numbers List<string> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- Certificate
Chain stringFilename - (Required String) The name of the certificate file, for example,
certificate.pem
. - Crl
Source 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
andURL
. - Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - Crl
Url 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.
- Display
Name string - (Required String) A human-readable name for the Certificate Authority.
- Expiration
Dates []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
- Serial
Numbers []string - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate
Chain StringFilename - (Required String) The name of the certificate file, for example,
certificate.pem
. - crl
Source 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
andURL
. - crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - crl
Url 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.
- display
Name String - (Required String) A human-readable name for the Certificate Authority.
- expiration
Dates 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
- serial
Numbers List<String> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate
Chain stringFilename - (Required String) The name of the certificate file, for example,
certificate.pem
. - crl
Source 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
andURL
. - crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - crl
Url 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.
- display
Name string - (Required String) A human-readable name for the Certificate Authority.
- expiration
Dates 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
- serial
Numbers string[] - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate_
chain_ strfilename - (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
andURL
. - crl_
updated_ strat - (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.
- certificate
Chain StringFilename - (Required String) The name of the certificate file, for example,
certificate.pem
. - crl
Source 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
andURL
. - crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated, for example,
2017-07-21T17:32:28Z
. - crl
Url 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.
- display
Name String - (Required String) A human-readable name for the Certificate Authority.
- expiration
Dates 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
- serial
Numbers 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.