Certificate
Provides a Hetzner Clould Certificate to represent a TLS certificate in the Hetzner Cloud.
Create a Certificate Resource
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);def Certificate(resource_name, opts=None, certificate=None, labels=None, name=None, private_key=None, __props__=None);func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Certificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Certificate resource accepts the following input properties:
- Certificate
Contents string - Private
Key string - Labels Dictionary<string, object>
- Name string
- Certificate string
- Private
Key string - Labels map[string]interface{}
- Name string
- certificate string
- private
Key string - labels {[key: string]: any}
- name string
- certificate str
- private_
key str - labels Dict[str, Any]
- name str
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Created string
- Domain
Names List<string> - Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- Not
Valid stringAfter - Not
Valid stringBefore
- Created string
- Domain
Names []string - Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- Not
Valid stringAfter - Not
Valid stringBefore
- created string
- domain
Names string[] - fingerprint string
- id string
- The provider-assigned unique ID for this managed resource.
- not
Valid stringAfter - not
Valid stringBefore
- created str
- domain_
names List[str] - fingerprint str
- id str
- The provider-assigned unique ID for this managed resource.
- not_
valid_ strafter - not_
valid_ strbefore
Look up an Existing Certificate Resource
Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificatestatic get(resource_name, id, opts=None, certificate=None, created=None, domain_names=None, fingerprint=None, labels=None, name=None, not_valid_after=None, not_valid_before=None, private_key=None, __props__=None);func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
Package Details
- Repository
- https://github.com/pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcloudTerraform Provider.