1. Packages
  2. Cloudflare
  3. API Docs
  4. AuthenticatedOriginPullsCertificate
Cloudflare v5.11.0 published on Wednesday, Sep 20, 2023 by Pulumi

cloudflare.AuthenticatedOriginPullsCertificate

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.11.0 published on Wednesday, Sep 20, 2023 by Pulumi

    Provides a Cloudflare Authenticated Origin Pulls certificate resource. An uploaded client certificate is required to use Per-Zone or Per-Hostname Authenticated Origin Pulls.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        // Per-Zone Authenticated Origin Pulls certificate
        var myPerZoneAopCert = new Cloudflare.AuthenticatedOriginPullsCertificate("myPerZoneAopCert", new()
        {
            Certificate = "-----INSERT CERTIFICATE-----",
            PrivateKey = "-----INSERT PRIVATE KEY-----",
            Type = "per-zone",
            ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
        });
    
        // Per-Hostname Authenticated Origin Pulls certificate
        var myPerHostnameAopCert = new Cloudflare.AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", new()
        {
            Certificate = "-----INSERT CERTIFICATE-----",
            PrivateKey = "-----INSERT PRIVATE KEY-----",
            Type = "per-hostname",
            ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
        });
    
    });
    
    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.NewAuthenticatedOriginPullsCertificate(ctx, "myPerZoneAopCert", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
    			Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
    			PrivateKey:  pulumi.String("-----INSERT PRIVATE KEY-----"),
    			Type:        pulumi.String("per-zone"),
    			ZoneId:      pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudflare.NewAuthenticatedOriginPullsCertificate(ctx, "myPerHostnameAopCert", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
    			Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
    			PrivateKey:  pulumi.String("-----INSERT PRIVATE KEY-----"),
    			Type:        pulumi.String("per-hostname"),
    			ZoneId:      pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.AuthenticatedOriginPullsCertificate;
    import com.pulumi.cloudflare.AuthenticatedOriginPullsCertificateArgs;
    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) {
            var myPerZoneAopCert = new AuthenticatedOriginPullsCertificate("myPerZoneAopCert", AuthenticatedOriginPullsCertificateArgs.builder()        
                .certificate("-----INSERT CERTIFICATE-----")
                .privateKey("-----INSERT PRIVATE KEY-----")
                .type("per-zone")
                .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
                .build());
    
            var myPerHostnameAopCert = new AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", AuthenticatedOriginPullsCertificateArgs.builder()        
                .certificate("-----INSERT CERTIFICATE-----")
                .privateKey("-----INSERT PRIVATE KEY-----")
                .type("per-hostname")
                .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    # Per-Zone Authenticated Origin Pulls certificate
    my_per_zone_aop_cert = cloudflare.AuthenticatedOriginPullsCertificate("myPerZoneAopCert",
        certificate="-----INSERT CERTIFICATE-----",
        private_key="-----INSERT PRIVATE KEY-----",
        type="per-zone",
        zone_id="0da42c8d2132a9ddaf714f9e7c920711")
    # Per-Hostname Authenticated Origin Pulls certificate
    my_per_hostname_aop_cert = cloudflare.AuthenticatedOriginPullsCertificate("myPerHostnameAopCert",
        certificate="-----INSERT CERTIFICATE-----",
        private_key="-----INSERT PRIVATE KEY-----",
        type="per-hostname",
        zone_id="0da42c8d2132a9ddaf714f9e7c920711")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    // Per-Zone Authenticated Origin Pulls certificate
    const myPerZoneAopCert = new cloudflare.AuthenticatedOriginPullsCertificate("myPerZoneAopCert", {
        certificate: "-----INSERT CERTIFICATE-----",
        privateKey: "-----INSERT PRIVATE KEY-----",
        type: "per-zone",
        zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
    });
    // Per-Hostname Authenticated Origin Pulls certificate
    const myPerHostnameAopCert = new cloudflare.AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", {
        certificate: "-----INSERT CERTIFICATE-----",
        privateKey: "-----INSERT PRIVATE KEY-----",
        type: "per-hostname",
        zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
    });
    
    resources:
      # Per-Zone Authenticated Origin Pulls certificate
      myPerZoneAopCert:
        type: cloudflare:AuthenticatedOriginPullsCertificate
        properties:
          certificate: '-----INSERT CERTIFICATE-----'
          privateKey: '-----INSERT PRIVATE KEY-----'
          type: per-zone
          zoneId: 0da42c8d2132a9ddaf714f9e7c920711
      # Per-Hostname Authenticated Origin Pulls certificate
      myPerHostnameAopCert:
        type: cloudflare:AuthenticatedOriginPullsCertificate
        properties:
          certificate: '-----INSERT CERTIFICATE-----'
          privateKey: '-----INSERT PRIVATE KEY-----'
          type: per-hostname
          zoneId: 0da42c8d2132a9ddaf714f9e7c920711
    

    Create AuthenticatedOriginPullsCertificate Resource

    new AuthenticatedOriginPullsCertificate(name: string, args: AuthenticatedOriginPullsCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def AuthenticatedOriginPullsCertificate(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            certificate: Optional[str] = None,
                                            private_key: Optional[str] = None,
                                            type: Optional[str] = None,
                                            zone_id: Optional[str] = None)
    @overload
    def AuthenticatedOriginPullsCertificate(resource_name: str,
                                            args: AuthenticatedOriginPullsCertificateArgs,
                                            opts: Optional[ResourceOptions] = None)
    func NewAuthenticatedOriginPullsCertificate(ctx *Context, name string, args AuthenticatedOriginPullsCertificateArgs, opts ...ResourceOption) (*AuthenticatedOriginPullsCertificate, error)
    public AuthenticatedOriginPullsCertificate(string name, AuthenticatedOriginPullsCertificateArgs args, CustomResourceOptions? opts = null)
    public AuthenticatedOriginPullsCertificate(String name, AuthenticatedOriginPullsCertificateArgs args)
    public AuthenticatedOriginPullsCertificate(String name, AuthenticatedOriginPullsCertificateArgs args, CustomResourceOptions options)
    
    type: cloudflare:AuthenticatedOriginPullsCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AuthenticatedOriginPullsCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AuthenticatedOriginPullsCertificateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AuthenticatedOriginPullsCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthenticatedOriginPullsCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthenticatedOriginPullsCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AuthenticatedOriginPullsCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AuthenticatedOriginPullsCertificate resource accepts the following input properties:

    Certificate string

    The public client certificate. Modifying this attribute will force creation of a new resource.

    PrivateKey string

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    Type string

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    ZoneId string

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Certificate string

    The public client certificate. Modifying this attribute will force creation of a new resource.

    PrivateKey string

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    Type string

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    ZoneId string

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate String

    The public client certificate. Modifying this attribute will force creation of a new resource.

    privateKey String

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    type String

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    zoneId String

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate string

    The public client certificate. Modifying this attribute will force creation of a new resource.

    privateKey string

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    type string

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    zoneId string

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate str

    The public client certificate. Modifying this attribute will force creation of a new resource.

    private_key str

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    type str

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    zone_id str

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate String

    The public client certificate. Modifying this attribute will force creation of a new resource.

    privateKey String

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    type String

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    zoneId String

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthenticatedOriginPullsCertificate resource produces the following output properties:

    ExpiresOn string

    Modifying this attribute will force creation of a new resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    Issuer string

    Modifying this attribute will force creation of a new resource.

    SerialNumber string

    Modifying this attribute will force creation of a new resource.

    Signature string

    Modifying this attribute will force creation of a new resource.

    Status string

    Modifying this attribute will force creation of a new resource.

    UploadedOn string

    Modifying this attribute will force creation of a new resource.

    ExpiresOn string

    Modifying this attribute will force creation of a new resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    Issuer string

    Modifying this attribute will force creation of a new resource.

    SerialNumber string

    Modifying this attribute will force creation of a new resource.

    Signature string

    Modifying this attribute will force creation of a new resource.

    Status string

    Modifying this attribute will force creation of a new resource.

    UploadedOn string

    Modifying this attribute will force creation of a new resource.

    expiresOn String

    Modifying this attribute will force creation of a new resource.

    id String

    The provider-assigned unique ID for this managed resource.

    issuer String

    Modifying this attribute will force creation of a new resource.

    serialNumber String

    Modifying this attribute will force creation of a new resource.

    signature String

    Modifying this attribute will force creation of a new resource.

    status String

    Modifying this attribute will force creation of a new resource.

    uploadedOn String

    Modifying this attribute will force creation of a new resource.

    expiresOn string

    Modifying this attribute will force creation of a new resource.

    id string

    The provider-assigned unique ID for this managed resource.

    issuer string

    Modifying this attribute will force creation of a new resource.

    serialNumber string

    Modifying this attribute will force creation of a new resource.

    signature string

    Modifying this attribute will force creation of a new resource.

    status string

    Modifying this attribute will force creation of a new resource.

    uploadedOn string

    Modifying this attribute will force creation of a new resource.

    expires_on str

    Modifying this attribute will force creation of a new resource.

    id str

    The provider-assigned unique ID for this managed resource.

    issuer str

    Modifying this attribute will force creation of a new resource.

    serial_number str

    Modifying this attribute will force creation of a new resource.

    signature str

    Modifying this attribute will force creation of a new resource.

    status str

    Modifying this attribute will force creation of a new resource.

    uploaded_on str

    Modifying this attribute will force creation of a new resource.

    expiresOn String

    Modifying this attribute will force creation of a new resource.

    id String

    The provider-assigned unique ID for this managed resource.

    issuer String

    Modifying this attribute will force creation of a new resource.

    serialNumber String

    Modifying this attribute will force creation of a new resource.

    signature String

    Modifying this attribute will force creation of a new resource.

    status String

    Modifying this attribute will force creation of a new resource.

    uploadedOn String

    Modifying this attribute will force creation of a new resource.

    Look up Existing AuthenticatedOriginPullsCertificate Resource

    Get an existing AuthenticatedOriginPullsCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AuthenticatedOriginPullsCertificateState, opts?: CustomResourceOptions): AuthenticatedOriginPullsCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate: Optional[str] = None,
            expires_on: Optional[str] = None,
            issuer: Optional[str] = None,
            private_key: Optional[str] = None,
            serial_number: Optional[str] = None,
            signature: Optional[str] = None,
            status: Optional[str] = None,
            type: Optional[str] = None,
            uploaded_on: Optional[str] = None,
            zone_id: Optional[str] = None) -> AuthenticatedOriginPullsCertificate
    func GetAuthenticatedOriginPullsCertificate(ctx *Context, name string, id IDInput, state *AuthenticatedOriginPullsCertificateState, opts ...ResourceOption) (*AuthenticatedOriginPullsCertificate, error)
    public static AuthenticatedOriginPullsCertificate Get(string name, Input<string> id, AuthenticatedOriginPullsCertificateState? state, CustomResourceOptions? opts = null)
    public static AuthenticatedOriginPullsCertificate get(String name, Output<String> id, AuthenticatedOriginPullsCertificateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Certificate string

    The public client certificate. Modifying this attribute will force creation of a new resource.

    ExpiresOn string

    Modifying this attribute will force creation of a new resource.

    Issuer string

    Modifying this attribute will force creation of a new resource.

    PrivateKey string

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    SerialNumber string

    Modifying this attribute will force creation of a new resource.

    Signature string

    Modifying this attribute will force creation of a new resource.

    Status string

    Modifying this attribute will force creation of a new resource.

    Type string

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    UploadedOn string

    Modifying this attribute will force creation of a new resource.

    ZoneId string

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Certificate string

    The public client certificate. Modifying this attribute will force creation of a new resource.

    ExpiresOn string

    Modifying this attribute will force creation of a new resource.

    Issuer string

    Modifying this attribute will force creation of a new resource.

    PrivateKey string

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    SerialNumber string

    Modifying this attribute will force creation of a new resource.

    Signature string

    Modifying this attribute will force creation of a new resource.

    Status string

    Modifying this attribute will force creation of a new resource.

    Type string

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    UploadedOn string

    Modifying this attribute will force creation of a new resource.

    ZoneId string

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate String

    The public client certificate. Modifying this attribute will force creation of a new resource.

    expiresOn String

    Modifying this attribute will force creation of a new resource.

    issuer String

    Modifying this attribute will force creation of a new resource.

    privateKey String

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    serialNumber String

    Modifying this attribute will force creation of a new resource.

    signature String

    Modifying this attribute will force creation of a new resource.

    status String

    Modifying this attribute will force creation of a new resource.

    type String

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    uploadedOn String

    Modifying this attribute will force creation of a new resource.

    zoneId String

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate string

    The public client certificate. Modifying this attribute will force creation of a new resource.

    expiresOn string

    Modifying this attribute will force creation of a new resource.

    issuer string

    Modifying this attribute will force creation of a new resource.

    privateKey string

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    serialNumber string

    Modifying this attribute will force creation of a new resource.

    signature string

    Modifying this attribute will force creation of a new resource.

    status string

    Modifying this attribute will force creation of a new resource.

    type string

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    uploadedOn string

    Modifying this attribute will force creation of a new resource.

    zoneId string

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate str

    The public client certificate. Modifying this attribute will force creation of a new resource.

    expires_on str

    Modifying this attribute will force creation of a new resource.

    issuer str

    Modifying this attribute will force creation of a new resource.

    private_key str

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    serial_number str

    Modifying this attribute will force creation of a new resource.

    signature str

    Modifying this attribute will force creation of a new resource.

    status str

    Modifying this attribute will force creation of a new resource.

    type str

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    uploaded_on str

    Modifying this attribute will force creation of a new resource.

    zone_id str

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    certificate String

    The public client certificate. Modifying this attribute will force creation of a new resource.

    expiresOn String

    Modifying this attribute will force creation of a new resource.

    issuer String

    Modifying this attribute will force creation of a new resource.

    privateKey String

    The private key of the client certificate. Modifying this attribute will force creation of a new resource.

    serialNumber String

    Modifying this attribute will force creation of a new resource.

    signature String

    Modifying this attribute will force creation of a new resource.

    status String

    Modifying this attribute will force creation of a new resource.

    type String

    The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

    uploadedOn String

    Modifying this attribute will force creation of a new resource.

    zoneId String

    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Import

     $ pulumi import cloudflare:index/authenticatedOriginPullsCertificate:AuthenticatedOriginPullsCertificate 2458ce5a-0c35-4c7f-82c7-8e9487d3ff60 <zone_id>/<certificate_type>/<certificate_id>
    

    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.11.0 published on Wednesday, Sep 20, 2023 by Pulumi