1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getOriginCaCertificate
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

cloudflare.getOriginCaCertificate

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

    Use this data source to retrieve an existing origin ca certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = cloudflare.getOriginCaCertificate({
        id: "REPLACE_ME",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.get_origin_ca_certificate(id="REPLACE_ME")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupOriginCaCertificate(ctx, &cloudflare.LookupOriginCaCertificateArgs{
    			Id: "REPLACE_ME",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Cloudflare.GetOriginCaCertificate.Invoke(new()
        {
            Id = "REPLACE_ME",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetOriginCaCertificateArgs;
    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 example = CloudflareFunctions.getOriginCaCertificate(GetOriginCaCertificateArgs.builder()
                .id("REPLACE_ME")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: cloudflare:getOriginCaCertificate
          Arguments:
            id: REPLACE_ME
    

    Using getOriginCaCertificate

    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 getOriginCaCertificate(args: GetOriginCaCertificateArgs, opts?: InvokeOptions): Promise<GetOriginCaCertificateResult>
    function getOriginCaCertificateOutput(args: GetOriginCaCertificateOutputArgs, opts?: InvokeOptions): Output<GetOriginCaCertificateResult>
    def get_origin_ca_certificate(id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetOriginCaCertificateResult
    def get_origin_ca_certificate_output(id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetOriginCaCertificateResult]
    func LookupOriginCaCertificate(ctx *Context, args *LookupOriginCaCertificateArgs, opts ...InvokeOption) (*LookupOriginCaCertificateResult, error)
    func LookupOriginCaCertificateOutput(ctx *Context, args *LookupOriginCaCertificateOutputArgs, opts ...InvokeOption) LookupOriginCaCertificateResultOutput

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

    public static class GetOriginCaCertificate 
    {
        public static Task<GetOriginCaCertificateResult> InvokeAsync(GetOriginCaCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetOriginCaCertificateResult> Invoke(GetOriginCaCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOriginCaCertificateResult> getOriginCaCertificate(GetOriginCaCertificateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: cloudflare:index/getOriginCaCertificate:getOriginCaCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The Origin CA Certificate unique identifier.
    Id string
    The Origin CA Certificate unique identifier.
    id String
    The Origin CA Certificate unique identifier.
    id string
    The Origin CA Certificate unique identifier.
    id str
    The Origin CA Certificate unique identifier.
    id String
    The Origin CA Certificate unique identifier.

    getOriginCaCertificate Result

    The following output properties are available:

    Certificate string
    The Origin CA certificate.
    ExpiresOn string
    The timestamp when the certificate will expire.
    Hostnames List<string>
    A list of hostnames or wildcard names bound to the certificate.
    Id string
    The Origin CA Certificate unique identifier.
    RequestType string
    The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate
    RevokedAt string
    The timestamp when the certificate was revoked.
    Certificate string
    The Origin CA certificate.
    ExpiresOn string
    The timestamp when the certificate will expire.
    Hostnames []string
    A list of hostnames or wildcard names bound to the certificate.
    Id string
    The Origin CA Certificate unique identifier.
    RequestType string
    The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate
    RevokedAt string
    The timestamp when the certificate was revoked.
    certificate String
    The Origin CA certificate.
    expiresOn String
    The timestamp when the certificate will expire.
    hostnames List<String>
    A list of hostnames or wildcard names bound to the certificate.
    id String
    The Origin CA Certificate unique identifier.
    requestType String
    The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate
    revokedAt String
    The timestamp when the certificate was revoked.
    certificate string
    The Origin CA certificate.
    expiresOn string
    The timestamp when the certificate will expire.
    hostnames string[]
    A list of hostnames or wildcard names bound to the certificate.
    id string
    The Origin CA Certificate unique identifier.
    requestType string
    The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate
    revokedAt string
    The timestamp when the certificate was revoked.
    certificate str
    The Origin CA certificate.
    expires_on str
    The timestamp when the certificate will expire.
    hostnames Sequence[str]
    A list of hostnames or wildcard names bound to the certificate.
    id str
    The Origin CA Certificate unique identifier.
    request_type str
    The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate
    revoked_at str
    The timestamp when the certificate was revoked.
    certificate String
    The Origin CA certificate.
    expiresOn String
    The timestamp when the certificate will expire.
    hostnames List<String>
    A list of hostnames or wildcard names bound to the certificate.
    id String
    The Origin CA Certificate unique identifier.
    requestType String
    The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate
    revokedAt String
    The timestamp when the certificate was revoked.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi