1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafDedicatedCertificateV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.WafDedicatedCertificateV1

Explore with Pulumi AI

Up-to-date reference of API arguments for WAF dedicated certificate you can get at documentation portal.

Manages a WAF dedicated certificate resource within OpenTelekomCloud.

Note: For this resource region must be set in environment variable OS_REGION_NAME or in clouds.yaml

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const certificate1 = new opentelekomcloud.WafDedicatedCertificateV1("certificate1", {
    content: `-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----

`,
    key: `-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----

`,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

certificate1 = opentelekomcloud.WafDedicatedCertificateV1("certificate1",
    content="""-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----

""",
    key="""-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----

""")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewWafDedicatedCertificateV1(ctx, "certificate1", &opentelekomcloud.WafDedicatedCertificateV1Args{
			Content: pulumi.String(`-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----

`),
			Key: pulumi.String(`-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----

`),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var certificate1 = new Opentelekomcloud.WafDedicatedCertificateV1("certificate1", new()
    {
        Content = @"-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----

",
        Key = @"-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----

",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.WafDedicatedCertificateV1;
import com.pulumi.opentelekomcloud.WafDedicatedCertificateV1Args;
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 certificate1 = new WafDedicatedCertificateV1("certificate1", WafDedicatedCertificateV1Args.builder()
            .content("""
-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----

            """)
            .key("""
-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----

            """)
            .build());

    }
}
Copy
resources:
  certificate1:
    type: opentelekomcloud:WafDedicatedCertificateV1
    properties:
      content: |+
        -----BEGIN CERTIFICATE-----
        MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
        BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
        ...
        dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
        -----END CERTIFICATE-----        

      key: |+
        -----BEGIN PRIVATE KEY-----
        MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
        5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
        ...
        s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
        +4sM7kp0qO3/p+45HykwBY5iHq3H
        -----END PRIVATE KEY-----        
Copy

Create WafDedicatedCertificateV1 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WafDedicatedCertificateV1(name: string, args: WafDedicatedCertificateV1Args, opts?: CustomResourceOptions);
@overload
def WafDedicatedCertificateV1(resource_name: str,
                              args: WafDedicatedCertificateV1Args,
                              opts: Optional[ResourceOptions] = None)

@overload
def WafDedicatedCertificateV1(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              content: Optional[str] = None,
                              key: Optional[str] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              timeouts: Optional[WafDedicatedCertificateV1TimeoutsArgs] = None,
                              waf_dedicated_certificate_v1_id: Optional[str] = None)
func NewWafDedicatedCertificateV1(ctx *Context, name string, args WafDedicatedCertificateV1Args, opts ...ResourceOption) (*WafDedicatedCertificateV1, error)
public WafDedicatedCertificateV1(string name, WafDedicatedCertificateV1Args args, CustomResourceOptions? opts = null)
public WafDedicatedCertificateV1(String name, WafDedicatedCertificateV1Args args)
public WafDedicatedCertificateV1(String name, WafDedicatedCertificateV1Args args, CustomResourceOptions options)
type: opentelekomcloud:WafDedicatedCertificateV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WafDedicatedCertificateV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WafDedicatedCertificateV1Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WafDedicatedCertificateV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WafDedicatedCertificateV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WafDedicatedCertificateV1Args
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 wafDedicatedCertificateV1Resource = new Opentelekomcloud.WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource", new()
{
    Content = "string",
    Key = "string",
    Name = "string",
    Region = "string",
    Timeouts = new Opentelekomcloud.Inputs.WafDedicatedCertificateV1TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    WafDedicatedCertificateV1Id = "string",
});
Copy
example, err := opentelekomcloud.NewWafDedicatedCertificateV1(ctx, "wafDedicatedCertificateV1Resource", &opentelekomcloud.WafDedicatedCertificateV1Args{
Content: pulumi.String("string"),
Key: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &.WafDedicatedCertificateV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafDedicatedCertificateV1Id: pulumi.String("string"),
})
Copy
var wafDedicatedCertificateV1Resource = new WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource", WafDedicatedCertificateV1Args.builder()
    .content("string")
    .key("string")
    .name("string")
    .region("string")
    .timeouts(WafDedicatedCertificateV1TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .wafDedicatedCertificateV1Id("string")
    .build());
Copy
waf_dedicated_certificate_v1_resource = opentelekomcloud.WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource",
    content="string",
    key="string",
    name="string",
    region="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    waf_dedicated_certificate_v1_id="string")
Copy
const wafDedicatedCertificateV1Resource = new opentelekomcloud.WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource", {
    content: "string",
    key: "string",
    name: "string",
    region: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    wafDedicatedCertificateV1Id: "string",
});
Copy
type: opentelekomcloud:WafDedicatedCertificateV1
properties:
    content: string
    key: string
    name: string
    region: string
    timeouts:
        create: string
        delete: string
    wafDedicatedCertificateV1Id: string
Copy

WafDedicatedCertificateV1 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 WafDedicatedCertificateV1 resource accepts the following input properties:

Content This property is required. string
The certificate content. Changing this creates a new certificate.
Key This property is required. string
The private key. Changing this creates a new certificate.
Name string
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
Region string
Timeouts WafDedicatedCertificateV1Timeouts
WafDedicatedCertificateV1Id string
ID of the certificate.
Content This property is required. string
The certificate content. Changing this creates a new certificate.
Key This property is required. string
The private key. Changing this creates a new certificate.
Name string
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
Region string
Timeouts WafDedicatedCertificateV1TimeoutsArgs
WafDedicatedCertificateV1Id string
ID of the certificate.
content This property is required. String
The certificate content. Changing this creates a new certificate.
key This property is required. String
The private key. Changing this creates a new certificate.
name String
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region String
timeouts WafDedicatedCertificateV1Timeouts
wafDedicatedCertificateV1Id String
ID of the certificate.
content This property is required. string
The certificate content. Changing this creates a new certificate.
key This property is required. string
The private key. Changing this creates a new certificate.
name string
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region string
timeouts WafDedicatedCertificateV1Timeouts
wafDedicatedCertificateV1Id string
ID of the certificate.
content This property is required. str
The certificate content. Changing this creates a new certificate.
key This property is required. str
The private key. Changing this creates a new certificate.
name str
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region str
timeouts WafDedicatedCertificateV1TimeoutsArgs
waf_dedicated_certificate_v1_id str
ID of the certificate.
content This property is required. String
The certificate content. Changing this creates a new certificate.
key This property is required. String
The private key. Changing this creates a new certificate.
name String
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region String
timeouts Property Map
wafDedicatedCertificateV1Id String
ID of the certificate.

Outputs

All input properties are implicitly available as output properties. Additionally, the WafDedicatedCertificateV1 resource produces the following output properties:

CreatedAt string
Date when the certificate is uploaded.
Expires string
Date when the certificate expires.
Id string
The provider-assigned unique ID for this managed resource.
CreatedAt string
Date when the certificate is uploaded.
Expires string
Date when the certificate expires.
Id string
The provider-assigned unique ID for this managed resource.
createdAt String
Date when the certificate is uploaded.
expires String
Date when the certificate expires.
id String
The provider-assigned unique ID for this managed resource.
createdAt string
Date when the certificate is uploaded.
expires string
Date when the certificate expires.
id string
The provider-assigned unique ID for this managed resource.
created_at str
Date when the certificate is uploaded.
expires str
Date when the certificate expires.
id str
The provider-assigned unique ID for this managed resource.
createdAt String
Date when the certificate is uploaded.
expires String
Date when the certificate expires.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing WafDedicatedCertificateV1 Resource

Get an existing WafDedicatedCertificateV1 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?: WafDedicatedCertificateV1State, opts?: CustomResourceOptions): WafDedicatedCertificateV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content: Optional[str] = None,
        created_at: Optional[str] = None,
        expires: Optional[str] = None,
        key: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        timeouts: Optional[WafDedicatedCertificateV1TimeoutsArgs] = None,
        waf_dedicated_certificate_v1_id: Optional[str] = None) -> WafDedicatedCertificateV1
func GetWafDedicatedCertificateV1(ctx *Context, name string, id IDInput, state *WafDedicatedCertificateV1State, opts ...ResourceOption) (*WafDedicatedCertificateV1, error)
public static WafDedicatedCertificateV1 Get(string name, Input<string> id, WafDedicatedCertificateV1State? state, CustomResourceOptions? opts = null)
public static WafDedicatedCertificateV1 get(String name, Output<String> id, WafDedicatedCertificateV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:WafDedicatedCertificateV1    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Content string
The certificate content. Changing this creates a new certificate.
CreatedAt string
Date when the certificate is uploaded.
Expires string
Date when the certificate expires.
Key string
The private key. Changing this creates a new certificate.
Name string
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
Region string
Timeouts WafDedicatedCertificateV1Timeouts
WafDedicatedCertificateV1Id string
ID of the certificate.
Content string
The certificate content. Changing this creates a new certificate.
CreatedAt string
Date when the certificate is uploaded.
Expires string
Date when the certificate expires.
Key string
The private key. Changing this creates a new certificate.
Name string
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
Region string
Timeouts WafDedicatedCertificateV1TimeoutsArgs
WafDedicatedCertificateV1Id string
ID of the certificate.
content String
The certificate content. Changing this creates a new certificate.
createdAt String
Date when the certificate is uploaded.
expires String
Date when the certificate expires.
key String
The private key. Changing this creates a new certificate.
name String
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region String
timeouts WafDedicatedCertificateV1Timeouts
wafDedicatedCertificateV1Id String
ID of the certificate.
content string
The certificate content. Changing this creates a new certificate.
createdAt string
Date when the certificate is uploaded.
expires string
Date when the certificate expires.
key string
The private key. Changing this creates a new certificate.
name string
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region string
timeouts WafDedicatedCertificateV1Timeouts
wafDedicatedCertificateV1Id string
ID of the certificate.
content str
The certificate content. Changing this creates a new certificate.
created_at str
Date when the certificate is uploaded.
expires str
Date when the certificate expires.
key str
The private key. Changing this creates a new certificate.
name str
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region str
timeouts WafDedicatedCertificateV1TimeoutsArgs
waf_dedicated_certificate_v1_id str
ID of the certificate.
content String
The certificate content. Changing this creates a new certificate.
createdAt String
Date when the certificate is uploaded.
expires String
Date when the certificate expires.
key String
The private key. Changing this creates a new certificate.
name String
The certificate name. The value can contain a maximum of 64 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed. Changing this creates a new certificate.
region String
timeouts Property Map
wafDedicatedCertificateV1Id String
ID of the certificate.

Supporting Types

WafDedicatedCertificateV1Timeouts
, WafDedicatedCertificateV1TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

WAF dedicated certificates can be imported using the id, e.g.

$ pulumi import opentelekomcloud:index/wafDedicatedCertificateV1:WafDedicatedCertificateV1 cert_1 7117d38e-4c8f-4624-a505-bd96b97d024c
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.