1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getCustomOriginTrustStore
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleCustomOriginTrustStore = cloudflare.getCustomOriginTrustStore({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        customOriginTrustStoreId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_custom_origin_trust_store = cloudflare.get_custom_origin_trust_store(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        custom_origin_trust_store_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.LookupCustomOriginTrustStore(ctx, &cloudflare.LookupCustomOriginTrustStoreArgs{
    			ZoneId:                   "023e105f4ecef8ad9ca31a8372d0c353",
    			CustomOriginTrustStoreId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
    		}, 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 exampleCustomOriginTrustStore = Cloudflare.GetCustomOriginTrustStore.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            CustomOriginTrustStoreId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetCustomOriginTrustStoreArgs;
    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 exampleCustomOriginTrustStore = CloudflareFunctions.getCustomOriginTrustStore(GetCustomOriginTrustStoreArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .customOriginTrustStoreId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleCustomOriginTrustStore:
        fn::invoke:
          function: cloudflare:getCustomOriginTrustStore
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
            customOriginTrustStoreId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getCustomOriginTrustStore

    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 getCustomOriginTrustStore(args: GetCustomOriginTrustStoreArgs, opts?: InvokeOptions): Promise<GetCustomOriginTrustStoreResult>
    function getCustomOriginTrustStoreOutput(args: GetCustomOriginTrustStoreOutputArgs, opts?: InvokeOptions): Output<GetCustomOriginTrustStoreResult>
    def get_custom_origin_trust_store(custom_origin_trust_store_id: Optional[str] = None,
                                      filter: Optional[GetCustomOriginTrustStoreFilter] = None,
                                      zone_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetCustomOriginTrustStoreResult
    def get_custom_origin_trust_store_output(custom_origin_trust_store_id: Optional[pulumi.Input[str]] = None,
                                      filter: Optional[pulumi.Input[GetCustomOriginTrustStoreFilterArgs]] = None,
                                      zone_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetCustomOriginTrustStoreResult]
    func LookupCustomOriginTrustStore(ctx *Context, args *LookupCustomOriginTrustStoreArgs, opts ...InvokeOption) (*LookupCustomOriginTrustStoreResult, error)
    func LookupCustomOriginTrustStoreOutput(ctx *Context, args *LookupCustomOriginTrustStoreOutputArgs, opts ...InvokeOption) LookupCustomOriginTrustStoreResultOutput

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

    public static class GetCustomOriginTrustStore 
    {
        public static Task<GetCustomOriginTrustStoreResult> InvokeAsync(GetCustomOriginTrustStoreArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomOriginTrustStoreResult> Invoke(GetCustomOriginTrustStoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomOriginTrustStoreResult> getCustomOriginTrustStore(GetCustomOriginTrustStoreArgs args, InvokeOptions options)
    public static Output<GetCustomOriginTrustStoreResult> getCustomOriginTrustStore(GetCustomOriginTrustStoreArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getCustomOriginTrustStore:getCustomOriginTrustStore
      arguments:
        # arguments dictionary

    The following arguments are supported:

    zoneId String
    Identifier.
    customOriginTrustStoreId String
    Identifier.
    filter Property Map

    getCustomOriginTrustStore Result

    The following output properties are available:

    Certificate string
    The zone's SSL certificate or certificate and the intermediate(s).
    ExpiresOn string
    When the certificate expires.
    Id string
    Identifier.
    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".
    UpdatedAt string
    When the certificate was last modified.
    UploadedOn string
    When the certificate was uploaded to Cloudflare.
    ZoneId string
    Identifier.
    CustomOriginTrustStoreId string
    Identifier.
    Filter GetCustomOriginTrustStoreFilter
    Certificate string
    The zone's SSL certificate or certificate and the intermediate(s).
    ExpiresOn string
    When the certificate expires.
    Id string
    Identifier.
    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".
    UpdatedAt string
    When the certificate was last modified.
    UploadedOn string
    When the certificate was uploaded to Cloudflare.
    ZoneId string
    Identifier.
    CustomOriginTrustStoreId string
    Identifier.
    Filter GetCustomOriginTrustStoreFilter
    certificate String
    The zone's SSL certificate or certificate and the intermediate(s).
    expiresOn String
    When the certificate expires.
    id String
    Identifier.
    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".
    updatedAt String
    When the certificate was last modified.
    uploadedOn String
    When the certificate was uploaded to Cloudflare.
    zoneId String
    Identifier.
    customOriginTrustStoreId String
    Identifier.
    filter GetCustomOriginTrustStoreFilter
    certificate string
    The zone's SSL certificate or certificate and the intermediate(s).
    expiresOn string
    When the certificate expires.
    id string
    Identifier.
    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".
    updatedAt string
    When the certificate was last modified.
    uploadedOn string
    When the certificate was uploaded to Cloudflare.
    zoneId string
    Identifier.
    customOriginTrustStoreId string
    Identifier.
    filter GetCustomOriginTrustStoreFilter
    certificate str
    The zone's SSL certificate or certificate and the intermediate(s).
    expires_on str
    When the certificate expires.
    id str
    Identifier.
    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.
    custom_origin_trust_store_id str
    Identifier.
    filter GetCustomOriginTrustStoreFilter
    certificate String
    The zone's SSL certificate or certificate and the intermediate(s).
    expiresOn String
    When the certificate expires.
    id String
    Identifier.
    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".
    updatedAt String
    When the certificate was last modified.
    uploadedOn String
    When the certificate was uploaded to Cloudflare.
    zoneId String
    Identifier.
    customOriginTrustStoreId String
    Identifier.
    filter Property Map

    Supporting Types

    GetCustomOriginTrustStoreFilter

    Limit int
    Limit to the number of records returned.
    Offset int
    Offset the results
    Limit int
    Limit to the number of records returned.
    Offset int
    Offset the results
    limit Integer
    Limit to the number of records returned.
    offset Integer
    Offset the results
    limit number
    Limit to the number of records returned.
    offset number
    Offset the results
    limit int
    Limit to the number of records returned.
    offset int
    Offset the results
    limit Number
    Limit to the number of records returned.
    offset Number
    Offset the results

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.14.0
    published on Thursday, Apr 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.