published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleCustomOriginTrustStore = new cloudflare.CustomOriginTrustStore("example_custom_origin_trust_store", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
certificate: ` -----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
-----END CERTIFICATE-----
`,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_custom_origin_trust_store = cloudflare.CustomOriginTrustStore("example_custom_origin_trust_store",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
certificate=""" -----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
-----END CERTIFICATE-----
""")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewCustomOriginTrustStore(ctx, "example_custom_origin_trust_store", &cloudflare.CustomOriginTrustStoreArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Certificate: pulumi.String(" -----BEGIN CERTIFICATE-----\n MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...\n -----END CERTIFICATE-----\n\n"),
})
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 exampleCustomOriginTrustStore = new Cloudflare.CustomOriginTrustStore("example_custom_origin_trust_store", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Certificate = @" -----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
-----END CERTIFICATE-----
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CustomOriginTrustStore;
import com.pulumi.cloudflare.CustomOriginTrustStoreArgs;
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 exampleCustomOriginTrustStore = new CustomOriginTrustStore("exampleCustomOriginTrustStore", CustomOriginTrustStoreArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.certificate("""
-----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
-----END CERTIFICATE-----
""")
.build());
}
}
resources:
exampleCustomOriginTrustStore:
type: cloudflare:CustomOriginTrustStore
name: example_custom_origin_trust_store
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
certificate: |2+
-----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
-----END CERTIFICATE-----
Create CustomOriginTrustStore Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomOriginTrustStore(name: string, args: CustomOriginTrustStoreArgs, opts?: CustomResourceOptions);@overload
def CustomOriginTrustStore(resource_name: str,
args: CustomOriginTrustStoreArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomOriginTrustStore(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate: Optional[str] = None,
zone_id: Optional[str] = None)func NewCustomOriginTrustStore(ctx *Context, name string, args CustomOriginTrustStoreArgs, opts ...ResourceOption) (*CustomOriginTrustStore, error)public CustomOriginTrustStore(string name, CustomOriginTrustStoreArgs args, CustomResourceOptions? opts = null)
public CustomOriginTrustStore(String name, CustomOriginTrustStoreArgs args)
public CustomOriginTrustStore(String name, CustomOriginTrustStoreArgs args, CustomResourceOptions options)
type: cloudflare:CustomOriginTrustStore
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 CustomOriginTrustStoreArgs
- 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 CustomOriginTrustStoreArgs
- 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 CustomOriginTrustStoreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomOriginTrustStoreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomOriginTrustStoreArgs
- 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 customOriginTrustStoreResource = new Cloudflare.Index.CustomOriginTrustStore("customOriginTrustStoreResource", new()
{
Certificate = "string",
ZoneId = "string",
});
example, err := cloudflare.NewCustomOriginTrustStore(ctx, "customOriginTrustStoreResource", &cloudflare.CustomOriginTrustStoreArgs{
Certificate: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var customOriginTrustStoreResource = new CustomOriginTrustStore("customOriginTrustStoreResource", CustomOriginTrustStoreArgs.builder()
.certificate("string")
.zoneId("string")
.build());
custom_origin_trust_store_resource = cloudflare.CustomOriginTrustStore("customOriginTrustStoreResource",
certificate="string",
zone_id="string")
const customOriginTrustStoreResource = new cloudflare.CustomOriginTrustStore("customOriginTrustStoreResource", {
certificate: "string",
zoneId: "string",
});
type: cloudflare:CustomOriginTrustStore
properties:
certificate: string
zoneId: string
CustomOriginTrustStore 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 CustomOriginTrustStore resource accepts the following input properties:
- Certificate string
- The zone's SSL certificate or certificate and the intermediate(s).
- Zone
Id string - Identifier.
- Certificate string
- The zone's SSL certificate or certificate and the intermediate(s).
- Zone
Id string - Identifier.
- certificate String
- The zone's SSL certificate or certificate and the intermediate(s).
- zone
Id String - Identifier.
- certificate string
- The zone's SSL certificate or certificate and the intermediate(s).
- zone
Id string - Identifier.
- certificate str
- The zone's SSL certificate or certificate and the intermediate(s).
- zone_
id str - Identifier.
- certificate String
- The zone's SSL certificate or certificate and the intermediate(s).
- zone
Id String - Identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomOriginTrustStore resource produces the following output properties:
- Expires
On string - When the certificate expires.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
- The certificate authority that issued the certificate.
- Signature string
- The type of hash used for the certificate.
- Status string
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- Updated
At string - When the certificate was last modified.
- Uploaded
On string - When the certificate was uploaded to Cloudflare.
- Expires
On string - When the certificate expires.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
- The certificate authority that issued the certificate.
- Signature string
- The type of hash used for the certificate.
- Status string
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- Updated
At string - When the certificate was last modified.
- Uploaded
On string - When the certificate was uploaded to Cloudflare.
- expires
On String - When the certificate expires.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer String
- The certificate authority that issued the certificate.
- signature String
- The type of hash used for the certificate.
- status String
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated
At String - When the certificate was last modified.
- uploaded
On String - When the certificate was uploaded to Cloudflare.
- expires
On string - When the certificate expires.
- id string
- The provider-assigned unique ID for this managed resource.
- issuer string
- The certificate authority that issued the certificate.
- signature string
- The type of hash used for the certificate.
- status string
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated
At string - When the certificate was last modified.
- uploaded
On string - When the certificate was uploaded to Cloudflare.
- expires_
on str - When the certificate expires.
- id str
- The provider-assigned unique ID for this managed resource.
- issuer str
- The certificate authority that issued the certificate.
- signature str
- The type of hash used for the certificate.
- status str
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated_
at str - When the certificate was last modified.
- uploaded_
on str - When the certificate was uploaded to Cloudflare.
- expires
On String - When the certificate expires.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer String
- The certificate authority that issued the certificate.
- signature String
- The type of hash used for the certificate.
- status String
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated
At String - When the certificate was last modified.
- uploaded
On String - When the certificate was uploaded to Cloudflare.
Look up Existing CustomOriginTrustStore Resource
Get an existing CustomOriginTrustStore 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?: CustomOriginTrustStoreState, opts?: CustomResourceOptions): CustomOriginTrustStore@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,
signature: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None,
uploaded_on: Optional[str] = None,
zone_id: Optional[str] = None) -> CustomOriginTrustStorefunc GetCustomOriginTrustStore(ctx *Context, name string, id IDInput, state *CustomOriginTrustStoreState, opts ...ResourceOption) (*CustomOriginTrustStore, error)public static CustomOriginTrustStore Get(string name, Input<string> id, CustomOriginTrustStoreState? state, CustomResourceOptions? opts = null)public static CustomOriginTrustStore get(String name, Output<String> id, CustomOriginTrustStoreState state, CustomResourceOptions options)resources: _: type: cloudflare:CustomOriginTrustStore get: id: ${id}- 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 zone's SSL certificate or certificate and the intermediate(s).
- Expires
On string - When the certificate expires.
- Issuer string
- The certificate authority that issued the certificate.
- Signature string
- The type of hash used for the certificate.
- Status string
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- Updated
At string - When the certificate was last modified.
- Uploaded
On string - When the certificate was uploaded to Cloudflare.
- Zone
Id string - Identifier.
- Certificate string
- The zone's SSL certificate or certificate and the intermediate(s).
- Expires
On string - When the certificate expires.
- Issuer string
- The certificate authority that issued the certificate.
- Signature string
- The type of hash used for the certificate.
- Status string
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- Updated
At string - When the certificate was last modified.
- Uploaded
On string - When the certificate was uploaded to Cloudflare.
- Zone
Id string - Identifier.
- certificate String
- The zone's SSL certificate or certificate and the intermediate(s).
- expires
On String - When the certificate expires.
- issuer String
- The certificate authority that issued the certificate.
- signature String
- The type of hash used for the certificate.
- status String
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated
At String - When the certificate was last modified.
- uploaded
On String - When the certificate was uploaded to Cloudflare.
- zone
Id String - Identifier.
- certificate string
- The zone's SSL certificate or certificate and the intermediate(s).
- expires
On string - When the certificate expires.
- issuer string
- The certificate authority that issued the certificate.
- signature string
- The type of hash used for the certificate.
- status string
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated
At string - When the certificate was last modified.
- uploaded
On string - When the certificate was uploaded to Cloudflare.
- zone
Id string - Identifier.
- certificate str
- The zone's SSL certificate or certificate and the intermediate(s).
- expires_
on str - When the certificate expires.
- issuer str
- The certificate authority that issued the certificate.
- signature str
- The type of hash used for the certificate.
- status str
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated_
at str - When the certificate was last modified.
- uploaded_
on str - When the certificate was uploaded to Cloudflare.
- zone_
id str - Identifier.
- certificate String
- The zone's SSL certificate or certificate and the intermediate(s).
- expires
On String - When the certificate expires.
- issuer String
- The certificate authority that issued the certificate.
- signature String
- The type of hash used for the certificate.
- status String
- Status of the zone's custom SSL. Available values: "initializing", "pendingdeployment", "active", "pendingdeletion", "deleted", "expired".
- updated
At String - When the certificate was last modified.
- uploaded
On String - When the certificate was uploaded to Cloudflare.
- zone
Id String - Identifier.
Import
$ pulumi import cloudflare:index/customOriginTrustStore:CustomOriginTrustStore example '<zone_id>/<custom_origin_trust_store_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
cloudflareTerraform Provider.
published on Thursday, Apr 2, 2026 by Pulumi
