1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. Certificate
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.Certificate

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    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.
    PrivateKey string
    The private key blob. This attribute is immutable.
    CertificateChain string
    The certificate chain. This attribute is immutable.
    CertificateId string
    Name string
    The certificate name
    Timeouts CertificateTimeouts
    Certificate string
    The certificate body in PEM format. This attribute is immutable.
    PrivateKey string
    The private key blob. This attribute is immutable.
    CertificateChain string
    The certificate chain. This attribute is immutable.
    CertificateId string
    Name string
    The certificate name
    Timeouts CertificateTimeoutsArgs
    certificate String
    The certificate body in PEM format. This attribute is immutable.
    privateKey String
    The private key blob. This attribute is immutable.
    certificateChain String
    The certificate chain. This attribute is immutable.
    certificateId String
    name String
    The certificate name
    timeouts CertificateTimeouts
    certificate string
    The certificate body in PEM format. This attribute is immutable.
    privateKey string
    The private key blob. This attribute is immutable.
    certificateChain string
    The certificate chain. This attribute is immutable.
    certificateId string
    name string
    The certificate name
    timeouts CertificateTimeouts
    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 CertificateTimeoutsArgs
    certificate String
    The certificate body in PEM format. This attribute is immutable.
    privateKey String
    The private key blob. This attribute is immutable.
    certificateChain String
    The certificate chain. This attribute is immutable.
    certificateId 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.
    The following state arguments are supported:
    Certificate string
    The certificate body in PEM format. This attribute is immutable.
    CertificateChain string
    The certificate chain. This attribute is immutable.
    CertificateId string
    Name string
    The certificate name
    PrivateKey string
    The private key blob. This attribute is immutable.
    Timeouts CertificateTimeouts
    Certificate string
    The certificate body in PEM format. This attribute is immutable.
    CertificateChain string
    The certificate chain. This attribute is immutable.
    CertificateId string
    Name string
    The certificate name
    PrivateKey string
    The private key blob. This attribute is immutable.
    Timeouts CertificateTimeoutsArgs
    certificate String
    The certificate body in PEM format. This attribute is immutable.
    certificateChain String
    The certificate chain. This attribute is immutable.
    certificateId String
    name String
    The certificate name
    privateKey String
    The private key blob. This attribute is immutable.
    timeouts CertificateTimeouts
    certificate string
    The certificate body in PEM format. This attribute is immutable.
    certificateChain string
    The certificate chain. This attribute is immutable.
    certificateId string
    name string
    The certificate name
    privateKey string
    The private key blob. This attribute is immutable.
    timeouts CertificateTimeouts
    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 CertificateTimeoutsArgs
    certificate String
    The certificate body in PEM format. This attribute is immutable.
    certificateChain String
    The certificate chain. This attribute is immutable.
    certificateId String
    name String
    The certificate name
    privateKey String
    The private key blob. This attribute is immutable.
    timeouts Property Map

    Supporting Types

    CertificateTimeouts, CertificateTimeoutsArgs

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud