ionoscloud.Certificate
Explore with Pulumi AI
Create Certificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
args: CertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Certificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate: Optional[str] = None,
private_key: Optional[str] = None,
certificate_chain: Optional[str] = None,
certificate_id: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CertificateTimeoutsArgs] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: ionoscloud:Certificate
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 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.
- args CertificateArgs
- 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 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.
- name String
- The unique name of the resource.
- args CertificateArgs
- 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 certificateResource = new Ionoscloud.Certificate("certificateResource", new()
{
Certificate = "string",
PrivateKey = "string",
CertificateChain = "string",
CertificateId = "string",
Name = "string",
Timeouts = new Ionoscloud.Inputs.CertificateTimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
});
example, err := ionoscloud.NewCertificate(ctx, "certificateResource", &ionoscloud.CertificateArgs{
Certificate: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
CertificateChain: pulumi.String("string"),
CertificateId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &ionoscloud.CertificateTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var certificateResource = new Certificate("certificateResource", CertificateArgs.builder()
.certificate("string")
.privateKey("string")
.certificateChain("string")
.certificateId("string")
.name("string")
.timeouts(CertificateTimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.build());
certificate_resource = ionoscloud.Certificate("certificateResource",
certificate="string",
private_key="string",
certificate_chain="string",
certificate_id="string",
name="string",
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
})
const certificateResource = new ionoscloud.Certificate("certificateResource", {
certificate: "string",
privateKey: "string",
certificateChain: "string",
certificateId: "string",
name: "string",
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
});
type: ionoscloud:Certificate
properties:
certificate: string
certificateChain: string
certificateId: string
name: string
privateKey: string
timeouts:
create: string
default: string
delete: string
update: string
Certificate 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 Certificate resource accepts the following input properties:
- Certificate string
- The certificate body in PEM format. This attribute is immutable.
- Private
Key string - The private key blob. This attribute is immutable.
- Certificate
Chain string - The certificate chain. This attribute is immutable.
- Certificate
Id string - Name string
- The certificate name
- Timeouts
Certificate
Timeouts
- Certificate string
- The certificate body in PEM format. This attribute is immutable.
- Private
Key string - The private key blob. This attribute is immutable.
- Certificate
Chain string - The certificate chain. This attribute is immutable.
- Certificate
Id string - Name string
- The certificate name
- Timeouts
Certificate
Timeouts Args
- certificate String
- The certificate body in PEM format. This attribute is immutable.
- private
Key String - The private key blob. This attribute is immutable.
- certificate
Chain String - The certificate chain. This attribute is immutable.
- certificate
Id String - name String
- The certificate name
- timeouts
Certificate
Timeouts
- certificate string
- The certificate body in PEM format. This attribute is immutable.
- private
Key string - The private key blob. This attribute is immutable.
- certificate
Chain string - The certificate chain. This attribute is immutable.
- certificate
Id string - name string
- The certificate name
- timeouts
Certificate
Timeouts
- certificate str
- The certificate body in PEM format. This attribute is immutable.
- private_
key str - The private key blob. This attribute is immutable.
- certificate_
chain str - The certificate chain. This attribute is immutable.
- certificate_
id str - name str
- The certificate name
- timeouts
Certificate
Timeouts Args
- certificate String
- The certificate body in PEM format. This attribute is immutable.
- private
Key String - The private key blob. This attribute is immutable.
- certificate
Chain String - The certificate chain. This attribute is immutable.
- certificate
Id String - name String
- The certificate name
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): Certificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate: Optional[str] = None,
certificate_chain: Optional[str] = None,
certificate_id: Optional[str] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
timeouts: Optional[CertificateTimeoutsArgs] = None) -> Certificate
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)
public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
resources: _: type: ionoscloud:Certificate 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 certificate body in PEM format. This attribute is immutable.
- Certificate
Chain string - The certificate chain. This attribute is immutable.
- Certificate
Id string - Name string
- The certificate name
- Private
Key string - The private key blob. This attribute is immutable.
- Timeouts
Certificate
Timeouts
- Certificate string
- The certificate body in PEM format. This attribute is immutable.
- Certificate
Chain string - The certificate chain. This attribute is immutable.
- Certificate
Id string - Name string
- The certificate name
- Private
Key string - The private key blob. This attribute is immutable.
- Timeouts
Certificate
Timeouts Args
- certificate String
- The certificate body in PEM format. This attribute is immutable.
- certificate
Chain String - The certificate chain. This attribute is immutable.
- certificate
Id String - name String
- The certificate name
- private
Key String - The private key blob. This attribute is immutable.
- timeouts
Certificate
Timeouts
- certificate string
- The certificate body in PEM format. This attribute is immutable.
- certificate
Chain string - The certificate chain. This attribute is immutable.
- certificate
Id string - name string
- The certificate name
- private
Key string - The private key blob. This attribute is immutable.
- timeouts
Certificate
Timeouts
- certificate str
- The certificate body in PEM format. This attribute is immutable.
- certificate_
chain str - The certificate chain. This attribute is immutable.
- certificate_
id str - name str
- The certificate name
- private_
key str - The private key blob. This attribute is immutable.
- timeouts
Certificate
Timeouts Args
- certificate String
- The certificate body in PEM format. This attribute is immutable.
- certificate
Chain String - The certificate chain. This attribute is immutable.
- certificate
Id String - name String
- The certificate name
- private
Key String - The private key blob. This attribute is immutable.
- timeouts Property Map
Supporting Types
CertificateTimeouts, CertificateTimeoutsArgs
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.