ServerCertificate

A Load Balancer Server Certificate is an ssl Certificate used by the listener of the protocol https.

For information about slb and how to use it, see What is Server Load Balancer.

For information about Server Certificate and how to use it, see Configure Server Certificate.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        // create a server certificate
        var foo = new AliCloud.Slb.ServerCertificate("foo", new AliCloud.Slb.ServerCertificateArgs
        {
            PrivateKey = @"-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDO0knDrlNdiys******ErVpjsckAaOW/JDG5PCSwkaMxk=
-----END RSA PRIVATE KEY-----
",
            ServerCertificate = @"-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgI+OuMs******XTtI90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----
",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

# create a server certificate
foo = alicloud.slb.ServerCertificate("foo",
    private_key="""-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDO0knDrlNdiys******ErVpjsckAaOW/JDG5PCSwkaMxk=
-----END RSA PRIVATE KEY-----
""",
    server_certificate="""-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgI+OuMs******XTtI90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----
""")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// create a server certificate
const foo = new alicloud.slb.ServerCertificate("foo", {
    privateKey: `-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDO0knDrlNdiys******ErVpjsckAaOW/JDG5PCSwkaMxk=
-----END RSA PRIVATE KEY-----`,
    serverCertificate: `-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgI+OuMs******XTtI90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----`,
});

Create a ServerCertificate Resource

def ServerCertificate(resource_name, opts=None, alicloud_certifacte_id=None, alicloud_certifacte_name=None, alicloud_certificate_id=None, alicloud_certificate_name=None, alicloud_certificate_region_id=None, name=None, private_key=None, resource_group_id=None, server_certificate=None, tags=None, __props__=None);
public ServerCertificate(string name, ServerCertificateArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServerCertificateArgs
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 ServerCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServerCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServerCertificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ServerCertificate resource accepts the following input properties:

AlicloudCertifacteId string

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

AlicloudCertifacteName string

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

AlicloudCertificateId string

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateName string

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateRegionId string

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

Certificate string

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

Name string

Name of the Server Certificate.

PrivateKey string

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

ResourceGroupId string

The Id of resource group which the slb server certificate belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

AlicloudCertifacteId string

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

AlicloudCertifacteName string

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

AlicloudCertificateId string

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateName string

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateRegionId string

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

Name string

Name of the Server Certificate.

PrivateKey string

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

ResourceGroupId string

The Id of resource group which the slb server certificate belongs.

ServerCertificate string

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

alicloudCertifacteId string

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

alicloudCertifacteName string

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

alicloudCertificateId string

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

alicloudCertificateName string

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

alicloudCertificateRegionId string

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

name string

Name of the Server Certificate.

privateKey string

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

resourceGroupId string

The Id of resource group which the slb server certificate belongs.

serverCertificate string

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

alicloud_certifacte_id str

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

alicloud_certifacte_name str

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

alicloud_certificate_id str

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

alicloud_certificate_name str

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

alicloud_certificate_region_id str

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

name str

Name of the Server Certificate.

private_key str

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

resource_group_id str

The Id of resource group which the slb server certificate belongs.

server_certificate str

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the ServerCertificate 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing ServerCertificate Resource

Get an existing ServerCertificate 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?: ServerCertificateState, opts?: CustomResourceOptions): ServerCertificate
static get(resource_name, id, opts=None, alicloud_certifacte_id=None, alicloud_certifacte_name=None, alicloud_certificate_id=None, alicloud_certificate_name=None, alicloud_certificate_region_id=None, name=None, private_key=None, resource_group_id=None, server_certificate=None, tags=None, __props__=None);
func GetServerCertificate(ctx *Context, name string, id IDInput, state *ServerCertificateState, opts ...ResourceOption) (*ServerCertificate, error)
public static ServerCertificate Get(string name, Input<string> id, ServerCertificateState? 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:

AlicloudCertifacteId string

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

AlicloudCertifacteName string

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

AlicloudCertificateId string

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateName string

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateRegionId string

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

Certificate string

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

Name string

Name of the Server Certificate.

PrivateKey string

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

ResourceGroupId string

The Id of resource group which the slb server certificate belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

AlicloudCertifacteId string

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

AlicloudCertifacteName string

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

AlicloudCertificateId string

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateName string

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

AlicloudCertificateRegionId string

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

Name string

Name of the Server Certificate.

PrivateKey string

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

ResourceGroupId string

The Id of resource group which the slb server certificate belongs.

ServerCertificate string

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

alicloudCertifacteId string

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

alicloudCertifacteName string

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

alicloudCertificateId string

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

alicloudCertificateName string

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

alicloudCertificateRegionId string

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

name string

Name of the Server Certificate.

privateKey string

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

resourceGroupId string

The Id of resource group which the slb server certificate belongs.

serverCertificate string

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

alicloud_certifacte_id str

Deprecated: Field 'alicloud_certifacte_id' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_id' replaces it.

alicloud_certifacte_name str

Deprecated: Field 'alicloud_certifacte_name' has been deprecated from provider version 1.68.0. Use 'alicloud_certificate_name' replaces it.

alicloud_certificate_id str

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

alicloud_certificate_name str

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

alicloud_certificate_region_id str

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

name str

Name of the Server Certificate.

private_key str

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

resource_group_id str

The Id of resource group which the slb server certificate belongs.

server_certificate str

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.