1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getOriginCaRootCertificate
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

cloudflare.getOriginCaRootCertificate

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

    Use this data source to get the Origin CA root certificate for a given algorithm."

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = cloudflare.getOriginCaRootCertificate({
        algorithm: "rsa",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.get_origin_ca_root_certificate(algorithm="rsa")
    
    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.GetOriginCaRootCertificate(ctx, &cloudflare.GetOriginCaRootCertificateArgs{
    			Algorithm: "rsa",
    		}, 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.GetOriginCaRootCertificate.Invoke(new()
        {
            Algorithm = "rsa",
        });
    
    });
    
    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.GetOriginCaRootCertificateArgs;
    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.getOriginCaRootCertificate(GetOriginCaRootCertificateArgs.builder()
                .algorithm("rsa")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: cloudflare:getOriginCaRootCertificate
          Arguments:
            algorithm: rsa
    

    Using getOriginCaRootCertificate

    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 getOriginCaRootCertificate(args: GetOriginCaRootCertificateArgs, opts?: InvokeOptions): Promise<GetOriginCaRootCertificateResult>
    function getOriginCaRootCertificateOutput(args: GetOriginCaRootCertificateOutputArgs, opts?: InvokeOptions): Output<GetOriginCaRootCertificateResult>
    def get_origin_ca_root_certificate(algorithm: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetOriginCaRootCertificateResult
    def get_origin_ca_root_certificate_output(algorithm: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetOriginCaRootCertificateResult]
    func GetOriginCaRootCertificate(ctx *Context, args *GetOriginCaRootCertificateArgs, opts ...InvokeOption) (*GetOriginCaRootCertificateResult, error)
    func GetOriginCaRootCertificateOutput(ctx *Context, args *GetOriginCaRootCertificateOutputArgs, opts ...InvokeOption) GetOriginCaRootCertificateResultOutput

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

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

    The following arguments are supported:

    Algorithm string
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    Algorithm string
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    algorithm String
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    algorithm string
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    algorithm str
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    algorithm String
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.

    getOriginCaRootCertificate Result

    The following output properties are available:

    Algorithm string
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    CertPem string
    The Origin CA root certificate in PEM format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Algorithm string
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    CertPem string
    The Origin CA root certificate in PEM format.
    Id string
    The provider-assigned unique ID for this managed resource.
    algorithm String
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    certPem String
    The Origin CA root certificate in PEM format.
    id String
    The provider-assigned unique ID for this managed resource.
    algorithm string
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    certPem string
    The Origin CA root certificate in PEM format.
    id string
    The provider-assigned unique ID for this managed resource.
    algorithm str
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    cert_pem str
    The Origin CA root certificate in PEM format.
    id str
    The provider-assigned unique ID for this managed resource.
    algorithm String
    The name of the algorithm used when creating an Origin CA certificate. Available values: rsa, ecc.
    certPem String
    The Origin CA root certificate in PEM format.
    id String
    The provider-assigned unique ID for this managed resource.

    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.39.1 published on Tuesday, Sep 24, 2024 by Pulumi