cloudflare.ZeroTrustGatewayCertificate
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustGatewayCertificate = new cloudflare.ZeroTrustGatewayCertificate("example_zero_trust_gateway_certificate", {
accountId: "699d98642c564d2e855e9661899b7252",
validityPeriodDays: 1826,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_gateway_certificate = cloudflare.ZeroTrustGatewayCertificate("example_zero_trust_gateway_certificate",
account_id="699d98642c564d2e855e9661899b7252",
validity_period_days=1826)
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.NewZeroTrustGatewayCertificate(ctx, "example_zero_trust_gateway_certificate", &cloudflare.ZeroTrustGatewayCertificateArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
ValidityPeriodDays: pulumi.Int(1826),
})
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 exampleZeroTrustGatewayCertificate = new Cloudflare.ZeroTrustGatewayCertificate("example_zero_trust_gateway_certificate", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
ValidityPeriodDays = 1826,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustGatewayCertificate;
import com.pulumi.cloudflare.ZeroTrustGatewayCertificateArgs;
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 exampleZeroTrustGatewayCertificate = new ZeroTrustGatewayCertificate("exampleZeroTrustGatewayCertificate", ZeroTrustGatewayCertificateArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.validityPeriodDays(1826)
.build());
}
}
resources:
exampleZeroTrustGatewayCertificate:
type: cloudflare:ZeroTrustGatewayCertificate
name: example_zero_trust_gateway_certificate
properties:
accountId: 699d98642c564d2e855e9661899b7252
validityPeriodDays: 1826
Create ZeroTrustGatewayCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustGatewayCertificate(name: string, args: ZeroTrustGatewayCertificateArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustGatewayCertificate(resource_name: str,
args: ZeroTrustGatewayCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustGatewayCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
validity_period_days: Optional[int] = None)
func NewZeroTrustGatewayCertificate(ctx *Context, name string, args ZeroTrustGatewayCertificateArgs, opts ...ResourceOption) (*ZeroTrustGatewayCertificate, error)
public ZeroTrustGatewayCertificate(string name, ZeroTrustGatewayCertificateArgs args, CustomResourceOptions? opts = null)
public ZeroTrustGatewayCertificate(String name, ZeroTrustGatewayCertificateArgs args)
public ZeroTrustGatewayCertificate(String name, ZeroTrustGatewayCertificateArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustGatewayCertificate
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 ZeroTrustGatewayCertificateArgs
- 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 ZeroTrustGatewayCertificateArgs
- 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 ZeroTrustGatewayCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustGatewayCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustGatewayCertificateArgs
- 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 zeroTrustGatewayCertificateResource = new Cloudflare.ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource", new()
{
AccountId = "string",
ValidityPeriodDays = 0,
});
example, err := cloudflare.NewZeroTrustGatewayCertificate(ctx, "zeroTrustGatewayCertificateResource", &cloudflare.ZeroTrustGatewayCertificateArgs{
AccountId: pulumi.String("string"),
ValidityPeriodDays: pulumi.Int(0),
})
var zeroTrustGatewayCertificateResource = new ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource", ZeroTrustGatewayCertificateArgs.builder()
.accountId("string")
.validityPeriodDays(0)
.build());
zero_trust_gateway_certificate_resource = cloudflare.ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource",
account_id="string",
validity_period_days=0)
const zeroTrustGatewayCertificateResource = new cloudflare.ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource", {
accountId: "string",
validityPeriodDays: 0,
});
type: cloudflare:ZeroTrustGatewayCertificate
properties:
accountId: string
validityPeriodDays: 0
ZeroTrustGatewayCertificate 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 ZeroTrustGatewayCertificate resource accepts the following input properties:
- Account
Id string - Validity
Period intDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- Account
Id string - Validity
Period intDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account
Id String - validity
Period IntegerDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account
Id string - validity
Period numberDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account_
id str - validity_
period_ intdays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account
Id String - validity
Period NumberDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustGatewayCertificate resource produces the following output properties:
- Binding
Status string - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- Certificate string
- The CA certificate
- Created
At string - Expires
On string - Fingerprint string
- The SHA256 fingerprint of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Use bool - Use this certificate for Gateway TLS interception
- Issuer
Org string - The organization that issued the certificate.
- Issuer
Raw string - The entire issuer field of the certificate.
- Type string
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- Updated
At string - Uploaded
On string
- Binding
Status string - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- Certificate string
- The CA certificate
- Created
At string - Expires
On string - Fingerprint string
- The SHA256 fingerprint of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Use bool - Use this certificate for Gateway TLS interception
- Issuer
Org string - The organization that issued the certificate.
- Issuer
Raw string - The entire issuer field of the certificate.
- Type string
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- Updated
At string - Uploaded
On string
- binding
Status String - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate String
- The CA certificate
- created
At String - expires
On String - fingerprint String
- The SHA256 fingerprint of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- in
Use Boolean - Use this certificate for Gateway TLS interception
- issuer
Org String - The organization that issued the certificate.
- issuer
Raw String - The entire issuer field of the certificate.
- type String
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated
At String - uploaded
On String
- binding
Status string - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate string
- The CA certificate
- created
At string - expires
On string - fingerprint string
- The SHA256 fingerprint of the certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- in
Use boolean - Use this certificate for Gateway TLS interception
- issuer
Org string - The organization that issued the certificate.
- issuer
Raw string - The entire issuer field of the certificate.
- type string
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated
At string - uploaded
On string
- binding_
status str - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate str
- The CA certificate
- created_
at str - expires_
on str - fingerprint str
- The SHA256 fingerprint of the certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- in_
use bool - Use this certificate for Gateway TLS interception
- issuer_
org str - The organization that issued the certificate.
- issuer_
raw str - The entire issuer field of the certificate.
- type str
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated_
at str - uploaded_
on str
- binding
Status String - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate String
- The CA certificate
- created
At String - expires
On String - fingerprint String
- The SHA256 fingerprint of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- in
Use Boolean - Use this certificate for Gateway TLS interception
- issuer
Org String - The organization that issued the certificate.
- issuer
Raw String - The entire issuer field of the certificate.
- type String
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated
At String - uploaded
On String
Look up Existing ZeroTrustGatewayCertificate Resource
Get an existing ZeroTrustGatewayCertificate 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?: ZeroTrustGatewayCertificateState, opts?: CustomResourceOptions): ZeroTrustGatewayCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
binding_status: Optional[str] = None,
certificate: Optional[str] = None,
created_at: Optional[str] = None,
expires_on: Optional[str] = None,
fingerprint: Optional[str] = None,
in_use: Optional[bool] = None,
issuer_org: Optional[str] = None,
issuer_raw: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None,
uploaded_on: Optional[str] = None,
validity_period_days: Optional[int] = None) -> ZeroTrustGatewayCertificate
func GetZeroTrustGatewayCertificate(ctx *Context, name string, id IDInput, state *ZeroTrustGatewayCertificateState, opts ...ResourceOption) (*ZeroTrustGatewayCertificate, error)
public static ZeroTrustGatewayCertificate Get(string name, Input<string> id, ZeroTrustGatewayCertificateState? state, CustomResourceOptions? opts = null)
public static ZeroTrustGatewayCertificate get(String name, Output<String> id, ZeroTrustGatewayCertificateState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustGatewayCertificate 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.
- Account
Id string - Binding
Status string - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- Certificate string
- The CA certificate
- Created
At string - Expires
On string - Fingerprint string
- The SHA256 fingerprint of the certificate.
- In
Use bool - Use this certificate for Gateway TLS interception
- Issuer
Org string - The organization that issued the certificate.
- Issuer
Raw string - The entire issuer field of the certificate.
- Type string
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- Updated
At string - Uploaded
On string - Validity
Period intDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- Account
Id string - Binding
Status string - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- Certificate string
- The CA certificate
- Created
At string - Expires
On string - Fingerprint string
- The SHA256 fingerprint of the certificate.
- In
Use bool - Use this certificate for Gateway TLS interception
- Issuer
Org string - The organization that issued the certificate.
- Issuer
Raw string - The entire issuer field of the certificate.
- Type string
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- Updated
At string - Uploaded
On string - Validity
Period intDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account
Id String - binding
Status String - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate String
- The CA certificate
- created
At String - expires
On String - fingerprint String
- The SHA256 fingerprint of the certificate.
- in
Use Boolean - Use this certificate for Gateway TLS interception
- issuer
Org String - The organization that issued the certificate.
- issuer
Raw String - The entire issuer field of the certificate.
- type String
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated
At String - uploaded
On String - validity
Period IntegerDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account
Id string - binding
Status string - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate string
- The CA certificate
- created
At string - expires
On string - fingerprint string
- The SHA256 fingerprint of the certificate.
- in
Use boolean - Use this certificate for Gateway TLS interception
- issuer
Org string - The organization that issued the certificate.
- issuer
Raw string - The entire issuer field of the certificate.
- type string
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated
At string - uploaded
On string - validity
Period numberDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account_
id str - binding_
status str - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate str
- The CA certificate
- created_
at str - expires_
on str - fingerprint str
- The SHA256 fingerprint of the certificate.
- in_
use bool - Use this certificate for Gateway TLS interception
- issuer_
org str - The organization that issued the certificate.
- issuer_
raw str - The entire issuer field of the certificate.
- type str
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated_
at str - uploaded_
on str - validity_
period_ intdays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
- account
Id String - binding
Status String - The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".
- certificate String
- The CA certificate
- created
At String - expires
On String - fingerprint String
- The SHA256 fingerprint of the certificate.
- in
Use Boolean - Use this certificate for Gateway TLS interception
- issuer
Org String - The organization that issued the certificate.
- issuer
Raw String - The entire issuer field of the certificate.
- type String
- The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
- updated
At String - uploaded
On String - validity
Period NumberDays - Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
Import
$ pulumi import cloudflare:index/zeroTrustGatewayCertificate:ZeroTrustGatewayCertificate example '<account_id>/<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.