1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafCertificateV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.WafCertificateV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

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

    Manages a WAF certificate resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const certificate1 = new opentelekomcloud.WafCertificateV1("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-----
    
    `,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    certificate1 = opentelekomcloud.WafCertificateV1("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-----
    
    """)
    
    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.NewWafCertificateV1(ctx, "certificate1", &opentelekomcloud.WafCertificateV1Args{
    			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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var certificate1 = new Opentelekomcloud.WafCertificateV1("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-----
    
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafCertificateV1;
    import com.pulumi.opentelekomcloud.WafCertificateV1Args;
    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 WafCertificateV1("certificate1", WafCertificateV1Args.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());
    
        }
    }
    
    resources:
      certificate1:
        type: opentelekomcloud:WafCertificateV1
        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-----        
    

    Create WafCertificateV1 Resource

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

    Constructor syntax

    new WafCertificateV1(name: string, args: WafCertificateV1Args, opts?: CustomResourceOptions);
    @overload
    def WafCertificateV1(resource_name: str,
                         args: WafCertificateV1Args,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafCertificateV1(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[WafCertificateV1TimeoutsArgs] = None,
                         waf_certificate_v1_id: Optional[str] = None)
    func NewWafCertificateV1(ctx *Context, name string, args WafCertificateV1Args, opts ...ResourceOption) (*WafCertificateV1, error)
    public WafCertificateV1(string name, WafCertificateV1Args args, CustomResourceOptions? opts = null)
    public WafCertificateV1(String name, WafCertificateV1Args args)
    public WafCertificateV1(String name, WafCertificateV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafCertificateV1
    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 WafCertificateV1Args
    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 WafCertificateV1Args
    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 WafCertificateV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafCertificateV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafCertificateV1Args
    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 wafCertificateV1Resource = new Opentelekomcloud.WafCertificateV1("wafCertificateV1Resource", new()
    {
        Content = "string",
        Key = "string",
        Name = "string",
        Region = "string",
        Timeouts = new Opentelekomcloud.Inputs.WafCertificateV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        WafCertificateV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafCertificateV1(ctx, "wafCertificateV1Resource", &opentelekomcloud.WafCertificateV1Args{
    	Content: pulumi.String("string"),
    	Key:     pulumi.String("string"),
    	Name:    pulumi.String("string"),
    	Region:  pulumi.String("string"),
    	Timeouts: &opentelekomcloud.WafCertificateV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	WafCertificateV1Id: pulumi.String("string"),
    })
    
    var wafCertificateV1Resource = new WafCertificateV1("wafCertificateV1Resource", WafCertificateV1Args.builder()
        .content("string")
        .key("string")
        .name("string")
        .region("string")
        .timeouts(WafCertificateV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .wafCertificateV1Id("string")
        .build());
    
    waf_certificate_v1_resource = opentelekomcloud.WafCertificateV1("wafCertificateV1Resource",
        content="string",
        key="string",
        name="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        waf_certificate_v1_id="string")
    
    const wafCertificateV1Resource = new opentelekomcloud.WafCertificateV1("wafCertificateV1Resource", {
        content: "string",
        key: "string",
        name: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        wafCertificateV1Id: "string",
    });
    
    type: opentelekomcloud:WafCertificateV1
    properties:
        content: string
        key: string
        name: string
        region: string
        timeouts:
            create: string
            delete: string
        wafCertificateV1Id: string
    

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

    Content string
    The certificate content. Changing this creates a new certificate.
    Key string
    The private key. Changing this creates a new certificate.
    Name string
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    Region string
    Timeouts WafCertificateV1Timeouts
    WafCertificateV1Id string
    ID of the certificate.
    Content string
    The certificate content. Changing this creates a new certificate.
    Key string
    The private key. Changing this creates a new certificate.
    Name string
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    Region string
    Timeouts WafCertificateV1TimeoutsArgs
    WafCertificateV1Id string
    ID of the certificate.
    content String
    The certificate content. Changing this creates a new certificate.
    key String
    The private key. Changing this creates a new certificate.
    name String
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region String
    timeouts WafCertificateV1Timeouts
    wafCertificateV1Id String
    ID of the certificate.
    content string
    The certificate content. Changing this creates a new certificate.
    key string
    The private key. Changing this creates a new certificate.
    name string
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region string
    timeouts WafCertificateV1Timeouts
    wafCertificateV1Id string
    ID of the certificate.
    content str
    The certificate content. Changing this creates a new certificate.
    key str
    The private key. Changing this creates a new certificate.
    name str
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region str
    timeouts WafCertificateV1TimeoutsArgs
    waf_certificate_v1_id str
    ID of the certificate.
    content String
    The certificate content. Changing this creates a new certificate.
    key String
    The private key. Changing this creates a new certificate.
    name String
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region String
    timeouts Property Map
    wafCertificateV1Id String
    ID of the certificate.

    Outputs

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

    Expires string
    Id string
    The provider-assigned unique ID for this managed resource.
    Expires string
    Id string
    The provider-assigned unique ID for this managed resource.
    expires String
    id String
    The provider-assigned unique ID for this managed resource.
    expires string
    id string
    The provider-assigned unique ID for this managed resource.
    expires str
    id str
    The provider-assigned unique ID for this managed resource.
    expires String
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing WafCertificateV1 Resource

    Get an existing WafCertificateV1 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?: WafCertificateV1State, opts?: CustomResourceOptions): WafCertificateV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content: Optional[str] = None,
            expires: Optional[str] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            timeouts: Optional[WafCertificateV1TimeoutsArgs] = None,
            waf_certificate_v1_id: Optional[str] = None) -> WafCertificateV1
    func GetWafCertificateV1(ctx *Context, name string, id IDInput, state *WafCertificateV1State, opts ...ResourceOption) (*WafCertificateV1, error)
    public static WafCertificateV1 Get(string name, Input<string> id, WafCertificateV1State? state, CustomResourceOptions? opts = null)
    public static WafCertificateV1 get(String name, Output<String> id, WafCertificateV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafCertificateV1    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:
    Content string
    The certificate content. Changing this creates a new certificate.
    Expires string
    Key string
    The private key. Changing this creates a new certificate.
    Name string
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    Region string
    Timeouts WafCertificateV1Timeouts
    WafCertificateV1Id string
    ID of the certificate.
    Content string
    The certificate content. Changing this creates a new certificate.
    Expires string
    Key string
    The private key. Changing this creates a new certificate.
    Name string
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    Region string
    Timeouts WafCertificateV1TimeoutsArgs
    WafCertificateV1Id string
    ID of the certificate.
    content String
    The certificate content. Changing this creates a new certificate.
    expires String
    key String
    The private key. Changing this creates a new certificate.
    name String
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region String
    timeouts WafCertificateV1Timeouts
    wafCertificateV1Id String
    ID of the certificate.
    content string
    The certificate content. Changing this creates a new certificate.
    expires string
    key string
    The private key. Changing this creates a new certificate.
    name string
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region string
    timeouts WafCertificateV1Timeouts
    wafCertificateV1Id string
    ID of the certificate.
    content str
    The certificate content. Changing this creates a new certificate.
    expires str
    key str
    The private key. Changing this creates a new certificate.
    name str
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region str
    timeouts WafCertificateV1TimeoutsArgs
    waf_certificate_v1_id str
    ID of the certificate.
    content String
    The certificate content. Changing this creates a new certificate.
    expires String
    key String
    The private key. Changing this creates a new certificate.
    name String
    The certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
    region String
    timeouts Property Map
    wafCertificateV1Id String
    ID of the certificate.

    Supporting Types

    WafCertificateV1Timeouts, WafCertificateV1TimeoutsArgs

    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

    Certificates can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/wafCertificateV1:WafCertificateV1 cert_1 7117d38e-4c8f-4624-a505-bd96b97d024c
    

    Or using name, e.g.

    $ pulumi import opentelekomcloud:index/wafCertificateV1:WafCertificateV1 cert_1 cert_1
    

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud