cloudflare.AuthenticatedOriginPullsCertificate
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
// Per-Zone Authenticated Origin Pulls certificate
const myPerZoneAopCert = new cloudflare.AuthenticatedOriginPullsCertificate("my_per_zone_aop_cert", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
certificate: "-----INSERT CERTIFICATE-----",
privateKey: "-----INSERT PRIVATE KEY-----",
type: "per-zone",
});
// Per-Hostname Authenticated Origin Pulls certificate
const myPerHostnameAopCert = new cloudflare.AuthenticatedOriginPullsCertificate("my_per_hostname_aop_cert", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
certificate: "-----INSERT CERTIFICATE-----",
privateKey: "-----INSERT PRIVATE KEY-----",
type: "per-hostname",
});
import pulumi
import pulumi_cloudflare as cloudflare
# Per-Zone Authenticated Origin Pulls certificate
my_per_zone_aop_cert = cloudflare.AuthenticatedOriginPullsCertificate("my_per_zone_aop_cert",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
certificate="-----INSERT CERTIFICATE-----",
private_key="-----INSERT PRIVATE KEY-----",
type="per-zone")
# Per-Hostname Authenticated Origin Pulls certificate
my_per_hostname_aop_cert = cloudflare.AuthenticatedOriginPullsCertificate("my_per_hostname_aop_cert",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
certificate="-----INSERT CERTIFICATE-----",
private_key="-----INSERT PRIVATE KEY-----",
type="per-hostname")
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 {
// Per-Zone Authenticated Origin Pulls certificate
_, err := cloudflare.NewAuthenticatedOriginPullsCertificate(ctx, "my_per_zone_aop_cert", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
PrivateKey: pulumi.String("-----INSERT PRIVATE KEY-----"),
Type: pulumi.String("per-zone"),
})
if err != nil {
return err
}
// Per-Hostname Authenticated Origin Pulls certificate
_, err = cloudflare.NewAuthenticatedOriginPullsCertificate(ctx, "my_per_hostname_aop_cert", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
PrivateKey: pulumi.String("-----INSERT PRIVATE KEY-----"),
Type: pulumi.String("per-hostname"),
})
if err != nil {
return err
}
return nil
})
}
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("my_per_zone_aop_cert", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Certificate = "-----INSERT CERTIFICATE-----",
PrivateKey = "-----INSERT PRIVATE KEY-----",
Type = "per-zone",
});
// Per-Hostname Authenticated Origin Pulls certificate
var myPerHostnameAopCert = new Cloudflare.AuthenticatedOriginPullsCertificate("my_per_hostname_aop_cert", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Certificate = "-----INSERT CERTIFICATE-----",
PrivateKey = "-----INSERT PRIVATE KEY-----",
Type = "per-hostname",
});
});
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) {
// Per-Zone Authenticated Origin Pulls certificate
var myPerZoneAopCert = new AuthenticatedOriginPullsCertificate("myPerZoneAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-zone")
.build());
// Per-Hostname Authenticated Origin Pulls certificate
var myPerHostnameAopCert = new AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-hostname")
.build());
}
}
resources:
# Per-Zone Authenticated Origin Pulls certificate
myPerZoneAopCert:
type: cloudflare:AuthenticatedOriginPullsCertificate
name: my_per_zone_aop_cert
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
certificate: '-----INSERT CERTIFICATE-----'
privateKey: '-----INSERT PRIVATE KEY-----'
type: per-zone
# Per-Hostname Authenticated Origin Pulls certificate
myPerHostnameAopCert:
type: cloudflare:AuthenticatedOriginPullsCertificate
name: my_per_hostname_aop_cert
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
certificate: '-----INSERT CERTIFICATE-----'
privateKey: '-----INSERT PRIVATE KEY-----'
type: per-hostname
Create AuthenticatedOriginPullsCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthenticatedOriginPullsCertificate(name: string, args: AuthenticatedOriginPullsCertificateArgs, opts?: CustomResourceOptions);
@overload
def AuthenticatedOriginPullsCertificate(resource_name: str,
args: AuthenticatedOriginPullsCertificateArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var authenticatedOriginPullsCertificateResource = new Cloudflare.AuthenticatedOriginPullsCertificate("authenticatedOriginPullsCertificateResource", new()
{
Certificate = "string",
PrivateKey = "string",
Type = "string",
ZoneId = "string",
});
example, err := cloudflare.NewAuthenticatedOriginPullsCertificate(ctx, "authenticatedOriginPullsCertificateResource", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
Certificate: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
Type: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var authenticatedOriginPullsCertificateResource = new AuthenticatedOriginPullsCertificate("authenticatedOriginPullsCertificateResource", AuthenticatedOriginPullsCertificateArgs.builder()
.certificate("string")
.privateKey("string")
.type("string")
.zoneId("string")
.build());
authenticated_origin_pulls_certificate_resource = cloudflare.AuthenticatedOriginPullsCertificate("authenticatedOriginPullsCertificateResource",
certificate="string",
private_key="string",
type="string",
zone_id="string")
const authenticatedOriginPullsCertificateResource = new cloudflare.AuthenticatedOriginPullsCertificate("authenticatedOriginPullsCertificateResource", {
certificate: "string",
privateKey: "string",
type: "string",
zoneId: "string",
});
type: cloudflare:AuthenticatedOriginPullsCertificate
properties:
certificate: string
privateKey: string
type: string
zoneId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AuthenticatedOriginPullsCertificate resource accepts the following input properties:
- Certificate string
- The public client certificate. Modifying this attribute will force creation of a new resource.
- Private
Key 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. - Zone
Id 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.
- Private
Key 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. - Zone
Id 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.
- private
Key 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. - zone
Id 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.
- private
Key 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. - zone
Id 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.
- private
Key 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. - zone
Id 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:
- Expires
On 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.
- Serial
Number 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.
- Uploaded
On string - Modifying this attribute will force creation of a new resource.
- Expires
On 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.
- Serial
Number 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.
- Uploaded
On string - Modifying this attribute will force creation of a new resource.
- expires
On 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.
- serial
Number 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.
- uploaded
On String - Modifying this attribute will force creation of a new resource.
- expires
On 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.
- serial
Number 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.
- uploaded
On 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.
- expires
On 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.
- serial
Number 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.
- uploaded
On 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.
- Certificate string
- The public client certificate. Modifying this attribute will force creation of a new resource.
- Expires
On string - Modifying this attribute will force creation of a new resource.
- Issuer string
- Modifying this attribute will force creation of a new resource.
- Private
Key string - The private key of the client certificate. Modifying this attribute will force creation of a new resource.
- Serial
Number 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. - Uploaded
On string - Modifying this attribute will force creation of a new resource.
- Zone
Id 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.
- Expires
On string - Modifying this attribute will force creation of a new resource.
- Issuer string
- Modifying this attribute will force creation of a new resource.
- Private
Key string - The private key of the client certificate. Modifying this attribute will force creation of a new resource.
- Serial
Number 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. - Uploaded
On string - Modifying this attribute will force creation of a new resource.
- Zone
Id 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.
- expires
On String - Modifying this attribute will force creation of a new resource.
- issuer String
- Modifying this attribute will force creation of a new resource.
- private
Key String - The private key of the client certificate. Modifying this attribute will force creation of a new resource.
- serial
Number 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. - uploaded
On String - Modifying this attribute will force creation of a new resource.
- zone
Id 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.
- expires
On string - Modifying this attribute will force creation of a new resource.
- issuer string
- Modifying this attribute will force creation of a new resource.
- private
Key string - The private key of the client certificate. Modifying this attribute will force creation of a new resource.
- serial
Number 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. - uploaded
On string - Modifying this attribute will force creation of a new resource.
- zone
Id 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.
- expires
On String - Modifying this attribute will force creation of a new resource.
- issuer String
- Modifying this attribute will force creation of a new resource.
- private
Key String - The private key of the client certificate. Modifying this attribute will force creation of a new resource.
- serial
Number 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. - uploaded
On String - Modifying this attribute will force creation of a new resource.
- zone
Id 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 example <zone_id>/<certificate_type>/<certificate_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.