1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. slb
  5. ServerCertificate
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.slb.ServerCertificate

Explore with Pulumi AI

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 server_certificate/private content as string example
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// create a server certificate
const foo = new alicloud.slb.ServerCertificate("foo", {
    name: "slbservercertificate",
    serverCertificate: `-----BEGIN CERTIFICATE-----
MIICWDCCAcGgAwIBAgIJAP7vOtjPtQIjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkNOMRMwEQYDVQQIDApjbi1iZWlqaW5nMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwHhcNMjAxMDIwMDYxOTUxWhcNMjAxMTE5MDYxOTUxWjBF
MQswCQYDVQQGEwJDTjETMBEGA1UECAwKY24tYmVpamluZzEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9BVuFIBoU8nrP
Y9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8Pqy2CNIzxr9DjCzN5
tWruiHqO60O3Bve6cHipH0VyLAhrB85mflvOZSH4xGsJkwIDAQABo1AwTjAdBgNV
HQ4EFgQUYDwuuqC2a2UPrfm1v31vE7+GRM4wHwYDVR0jBBgwFoAUYDwuuqC2a2UP
rfm1v31vE7+GRM4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQAovSB0
5JRKrg7lYR/KlTuKHmozfyL9UER0/dpTSoqsCyt8yc1BbtAKUJWh09BujBE1H22f
lKvCAjhPmnNdfd/l9GrmAWNDWEDPLdUTkGSkKAScMpdS+mLmOBuYWgdnOtq3eQGf
t07tlBL+dtzrrohHpfLeuNyYb40g8VQdp3RRRQ==
-----END CERTIFICATE-----`,
    privateKey: `-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9
BVuFIBoU8nrPY9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8Pqy2C
NIzxr9DjCzN5tWruiHqO60O3Bve6cHipH0VyLAhrB85mflvOZSH4xGsJkwIDAQAB
AoGARe2oaCo5lTDK+c4Zx3392hoqQ94r0DmWHPBvNmwAooYd+YxLPrLMe5sMjY4t
dmohnLNevCK1Uzw5eIX6BNSo5CORBcIDRmiAgwiYiS3WOv2+qi9g5uIdMiDr+EED
K8wZJjB5E2WyfxL507vtW4T5L36yfr8SkmqH3GvzpI2jCqECQQDsy0AmBzyfK0tG
Nw1+iF9SReJWgb1f5iHvz+6Dt5ueVQngrl/5++Gp5bNoaQMkLEDsy0iHIj9j43ji
0DON05uDAkEA1GXgGn8MXXKyuzYuoyYXCBH7aF579d7KEGET/jjnXx9DHcfRJZBY
B9ghMnnonSOGboF04Zsdd3xwYF/3OHYssQJAekd/SeQEzyE5TvoQ8t2Tc9X4yrlW
xNX/gmp6/fPr3biGUEtb7qi+4NBodCt+XsingmB7hKUP3RJTk7T2WnAC5wJAMqHi
jY5x3SkFkHl3Hq9q2CKpQxUbCd7FXqg1wum/xj5GmqfSpNjHE3+jUkwbdrJMTrWP
rmRy3tQMWf0mixAo0QJBAN4IcZChanq8cZyNqqoNbxGm4hkxUmE0W4hxHmLC2CYZ
V4JpNm8dpi4CiMWLasF6TYlVMgX+aPxYRUWc/qqf1/Q=
-----END RSA PRIVATE KEY-----`,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

# create a server certificate
foo = alicloud.slb.ServerCertificate("foo",
    name="slbservercertificate",
    server_certificate="""-----BEGIN CERTIFICATE-----
MIICWDCCAcGgAwIBAgIJAP7vOtjPtQIjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkNOMRMwEQYDVQQIDApjbi1iZWlqaW5nMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwHhcNMjAxMDIwMDYxOTUxWhcNMjAxMTE5MDYxOTUxWjBF
MQswCQYDVQQGEwJDTjETMBEGA1UECAwKY24tYmVpamluZzEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9BVuFIBoU8nrP
Y9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8Pqy2CNIzxr9DjCzN5
tWruiHqO60O3Bve6cHipH0VyLAhrB85mflvOZSH4xGsJkwIDAQABo1AwTjAdBgNV
HQ4EFgQUYDwuuqC2a2UPrfm1v31vE7+GRM4wHwYDVR0jBBgwFoAUYDwuuqC2a2UP
rfm1v31vE7+GRM4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQAovSB0
5JRKrg7lYR/KlTuKHmozfyL9UER0/dpTSoqsCyt8yc1BbtAKUJWh09BujBE1H22f
lKvCAjhPmnNdfd/l9GrmAWNDWEDPLdUTkGSkKAScMpdS+mLmOBuYWgdnOtq3eQGf
t07tlBL+dtzrrohHpfLeuNyYb40g8VQdp3RRRQ==
-----END CERTIFICATE-----""",
    private_key="""-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9
BVuFIBoU8nrPY9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8Pqy2C
NIzxr9DjCzN5tWruiHqO60O3Bve6cHipH0VyLAhrB85mflvOZSH4xGsJkwIDAQAB
AoGARe2oaCo5lTDK+c4Zx3392hoqQ94r0DmWHPBvNmwAooYd+YxLPrLMe5sMjY4t
dmohnLNevCK1Uzw5eIX6BNSo5CORBcIDRmiAgwiYiS3WOv2+qi9g5uIdMiDr+EED
K8wZJjB5E2WyfxL507vtW4T5L36yfr8SkmqH3GvzpI2jCqECQQDsy0AmBzyfK0tG
Nw1+iF9SReJWgb1f5iHvz+6Dt5ueVQngrl/5++Gp5bNoaQMkLEDsy0iHIj9j43ji
0DON05uDAkEA1GXgGn8MXXKyuzYuoyYXCBH7aF579d7KEGET/jjnXx9DHcfRJZBY
B9ghMnnonSOGboF04Zsdd3xwYF/3OHYssQJAekd/SeQEzyE5TvoQ8t2Tc9X4yrlW
xNX/gmp6/fPr3biGUEtb7qi+4NBodCt+XsingmB7hKUP3RJTk7T2WnAC5wJAMqHi
jY5x3SkFkHl3Hq9q2CKpQxUbCd7FXqg1wum/xj5GmqfSpNjHE3+jUkwbdrJMTrWP
rmRy3tQMWf0mixAo0QJBAN4IcZChanq8cZyNqqoNbxGm4hkxUmE0W4hxHmLC2CYZ
V4JpNm8dpi4CiMWLasF6TYlVMgX+aPxYRUWc/qqf1/Q=
-----END RSA PRIVATE KEY-----""")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// create a server certificate
		_, err := slb.NewServerCertificate(ctx, "foo", &slb.ServerCertificateArgs{
			Name: pulumi.String("slbservercertificate"),
			ServerCertificate: pulumi.String(`-----BEGIN CERTIFICATE-----
MIICWDCCAcGgAwIBAgIJAP7vOtjPtQIjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkNOMRMwEQYDVQQIDApjbi1iZWlqaW5nMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRz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K8wZJjB5E2WyfxL507vtW4T5L36yfr8SkmqH3GvzpI2jCqECQQDsy0AmBzyfK0tG
Nw1+iF9SReJWgb1f5iHvz+6Dt5ueVQngrl/5++Gp5bNoaQMkLEDsy0iHIj9j43ji
0DON05uDAkEA1GXgGn8MXXKyuzYuoyYXCBH7aF579d7KEGET/jjnXx9DHcfRJZBY
B9ghMnnonSOGboF04Zsdd3xwYF/3OHYssQJAekd/SeQEzyE5TvoQ8t2Tc9X4yrlW
xNX/gmp6/fPr3biGUEtb7qi+4NBodCt+XsingmB7hKUP3RJTk7T2WnAC5wJAMqHi
jY5x3SkFkHl3Hq9q2CKpQxUbCd7FXqg1wum/xj5GmqfSpNjHE3+jUkwbdrJMTrWP
rmRy3tQMWf0mixAo0QJBAN4IcZChanq8cZyNqqoNbxGm4hkxUmE0W4hxHmLC2CYZ
V4JpNm8dpi4CiMWLasF6TYlVMgX+aPxYRUWc/qqf1/Q=
-----END RSA PRIVATE KEY-----`),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    // create a server certificate
    var foo = new AliCloud.Slb.ServerCertificate("foo", new()
    {
        Name = "slbservercertificate",
        Certificate = @"-----BEGIN CERTIFICATE-----
MIICWDCCAcGgAwIBAgIJAP7vOtjPtQIjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkNOMRMwEQYDVQQIDApjbi1iZWlqaW5nMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwHhcNMjAxMDIwMDYxOTUxWhcNMjAxMTE5MDYxOTUxWjBF
MQswCQYDVQQGEwJDTjETMBEGA1UECAwKY24tYmVpamluZzEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQDEdoyaJ0kdtjtbLRx5X9qw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HYssQJAekd/SeQEzyE5TvoQ8t2Tc9X4yrlW
xNX/gmp6/fPr3biGUEtb7qi+4NBodCt+XsingmB7hKUP3RJTk7T2WnAC5wJAMqHi
jY5x3SkFkHl3Hq9q2CKpQxUbCd7FXqg1wum/xj5GmqfSpNjHE3+jUkwbdrJMTrWP
rmRy3tQMWf0mixAo0QJBAN4IcZChanq8cZyNqqoNbxGm4hkxUmE0W4hxHmLC2CYZ
V4JpNm8dpi4CiMWLasF6TYlVMgX+aPxYRUWc/qqf1/Q=
-----END RSA PRIVATE KEY-----",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.ServerCertificate;
import com.pulumi.alicloud.slb.ServerCertificateArgs;
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) {
        // create a server certificate
        var foo = new ServerCertificate("foo", ServerCertificateArgs.builder()
            .name("slbservercertificate")
            .serverCertificate("""
-----BEGIN CERTIFICATE-----
MIICWDCCAcGgAwIBAgIJAP7vOtjPtQIjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkNOMRMwEQYDVQQIDApjbi1iZWlqaW5nMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwHhcNMjAxMDIwMDYxOTUxWhcNMjAxMTE5MDYxOTUxWjBF
MQswCQYDVQQGEwJDTjETMBEGA1UECAwKY24tYmVpamluZzEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9BVuFIBoU8nrP
Y9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8P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C5wJAMqHi
jY5x3SkFkHl3Hq9q2CKpQxUbCd7FXqg1wum/xj5GmqfSpNjHE3+jUkwbdrJMTrWP
rmRy3tQMWf0mixAo0QJBAN4IcZChanq8cZyNqqoNbxGm4hkxUmE0W4hxHmLC2CYZ
V4JpNm8dpi4CiMWLasF6TYlVMgX+aPxYRUWc/qqf1/Q=
-----END RSA PRIVATE KEY-----            """)
            .build());

    }
}
Copy
resources:
  # create a server certificate
  foo:
    type: alicloud:slb:ServerCertificate
    properties:
      name: slbservercertificate
      serverCertificate: |-
        -----BEGIN CERTIFICATE-----
        MIICWDCCAcGgAwIBAgIJAP7vOtjPtQIjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
        BAYTAkNOMRMwEQYDVQQIDApjbi1iZWlqaW5nMSEwHwYDVQQKDBhJbnRlcm5ldCBX
        aWRnaXRzIFB0eSBMdGQwHhcNMjAxMDIwMDYxOTUxWhcNMjAxMTE5MDYxOTUxWjBF
        MQswCQYDVQQGEwJDTjETMBEGA1UECAwKY24tYmVpamluZzEhMB8GA1UECgwYSW50
        ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
        gQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9BVuFIBoU8nrP
        Y9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8Pqy2CNIzxr9DjCzN5
        tWruiHqO60O3Bve6cHipH0VyLAhrB85mflvOZSH4xGsJkwIDAQABo1AwTjAdBgNV
        HQ4EFgQUYDwuuqC2a2UPrfm1v31vE7+GRM4wHwYDVR0jBBgwFoAUYDwuuqC2a2UP
        rfm1v31vE7+GRM4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQAovSB0
        5JRKrg7lYR/KlTuKHmozfyL9UER0/dpTSoqsCyt8yc1BbtAKUJWh09BujBE1H22f
        lKvCAjhPmnNdfd/l9GrmAWNDWEDPLdUTkGSkKAScMpdS+mLmOBuYWgdnOtq3eQGf
        t07tlBL+dtzrrohHpfLeuNyYb40g8VQdp3RRRQ==
        -----END CERTIFICATE-----        
      privateKey: |-
        -----BEGIN RSA PRIVATE KEY-----
        MIICXAIBAAKBgQDEdoyaJ0kdtjtbLRx5X9qwI7FblhJPRcScvhQSE8P5y/b/T8J9
        BVuFIBoU8nrPY9ABz4JFklZ6SznxLbFBqtXoJTmzV6ixyjjH+AGEw6hCiA8Pqy2C
        NIzxr9DjCzN5tWruiHqO60O3Bve6cHipH0VyLAhrB85mflvOZSH4xGsJkwIDAQAB
        AoGARe2oaCo5lTDK+c4Zx3392hoqQ94r0DmWHPBvNmwAooYd+YxLPrLMe5sMjY4t
        dmohnLNevCK1Uzw5eIX6BNSo5CORBcIDRmiAgwiYiS3WOv2+qi9g5uIdMiDr+EED
        K8wZJjB5E2WyfxL507vtW4T5L36yfr8SkmqH3GvzpI2jCqECQQDsy0AmBzyfK0tG
        Nw1+iF9SReJWgb1f5iHvz+6Dt5ueVQngrl/5++Gp5bNoaQMkLEDsy0iHIj9j43ji
        0DON05uDAkEA1GXgGn8MXXKyuzYuoyYXCBH7aF579d7KEGET/jjnXx9DHcfRJZBY
        B9ghMnnonSOGboF04Zsdd3xwYF/3OHYssQJAekd/SeQEzyE5TvoQ8t2Tc9X4yrlW
        xNX/gmp6/fPr3biGUEtb7qi+4NBodCt+XsingmB7hKUP3RJTk7T2WnAC5wJAMqHi
        jY5x3SkFkHl3Hq9q2CKpQxUbCd7FXqg1wum/xj5GmqfSpNjHE3+jUkwbdrJMTrWP
        rmRy3tQMWf0mixAo0QJBAN4IcZChanq8cZyNqqoNbxGm4hkxUmE0W4hxHmLC2CYZ
        V4JpNm8dpi4CiMWLasF6TYlVMgX+aPxYRUWc/qqf1/Q=
        -----END RSA PRIVATE KEY-----        
Copy
  • using server_certificate/private file example

Create ServerCertificate Resource

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

Constructor syntax

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

@overload
def ServerCertificate(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      alicloud_certifacte_id: Optional[str] = None,
                      alicloud_certifacte_name: Optional[str] = None,
                      alicloud_certificate_id: Optional[str] = None,
                      alicloud_certificate_name: Optional[str] = None,
                      alicloud_certificate_region_id: Optional[str] = None,
                      name: Optional[str] = None,
                      private_key: Optional[str] = None,
                      resource_group_id: Optional[str] = None,
                      server_certificate: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
func NewServerCertificate(ctx *Context, name string, args *ServerCertificateArgs, opts ...ResourceOption) (*ServerCertificate, error)
public ServerCertificate(string name, ServerCertificateArgs? args = null, CustomResourceOptions? opts = null)
public ServerCertificate(String name, ServerCertificateArgs args)
public ServerCertificate(String name, ServerCertificateArgs args, CustomResourceOptions options)
type: alicloud:slb:ServerCertificate
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 ServerCertificateArgs
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 ServerCertificateArgs
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 ServerCertificateArgs
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 ServerCertificateArgs
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. ServerCertificateArgs
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 serverCertificateResource = new AliCloud.Slb.ServerCertificate("serverCertificateResource", new()
{
    AlicloudCertificateId = "string",
    AlicloudCertificateName = "string",
    AlicloudCertificateRegionId = "string",
    Name = "string",
    PrivateKey = "string",
    ResourceGroupId = "string",
    Certificate = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := slb.NewServerCertificate(ctx, "serverCertificateResource", &slb.ServerCertificateArgs{
	AlicloudCertificateId:       pulumi.String("string"),
	AlicloudCertificateName:     pulumi.String("string"),
	AlicloudCertificateRegionId: pulumi.String("string"),
	Name:                        pulumi.String("string"),
	PrivateKey:                  pulumi.String("string"),
	ResourceGroupId:             pulumi.String("string"),
	ServerCertificate:           pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var serverCertificateResource = new ServerCertificate("serverCertificateResource", ServerCertificateArgs.builder()
    .alicloudCertificateId("string")
    .alicloudCertificateName("string")
    .alicloudCertificateRegionId("string")
    .name("string")
    .privateKey("string")
    .resourceGroupId("string")
    .serverCertificate("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
server_certificate_resource = alicloud.slb.ServerCertificate("serverCertificateResource",
    alicloud_certificate_id="string",
    alicloud_certificate_name="string",
    alicloud_certificate_region_id="string",
    name="string",
    private_key="string",
    resource_group_id="string",
    server_certificate="string",
    tags={
        "string": "string",
    })
Copy
const serverCertificateResource = new alicloud.slb.ServerCertificate("serverCertificateResource", {
    alicloudCertificateId: "string",
    alicloudCertificateName: "string",
    alicloudCertificateRegionId: "string",
    name: "string",
    privateKey: "string",
    resourceGroupId: "string",
    serverCertificate: "string",
    tags: {
        string: "string",
    },
});
Copy
type: alicloud:slb:ServerCertificate
properties:
    alicloudCertificateId: string
    alicloudCertificateName: string
    alicloudCertificateRegionId: string
    name: string
    privateKey: string
    resourceGroupId: string
    serverCertificate: string
    tags:
        string: string
Copy

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

AlicloudCertifacteId Changes to this property will trigger replacement. string

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

AlicloudCertifacteName Changes to this property will trigger replacement. string

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

AlicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of resource group which the slb server certificate belongs.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
AlicloudCertifacteId Changes to this property will trigger replacement. string

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

AlicloudCertifacteName Changes to this property will trigger replacement. string

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

AlicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of resource group which the slb server certificate belongs.
ServerCertificate Changes to this property will trigger replacement. string
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
Tags map[string]string
A mapping of tags to assign to the resource.
alicloudCertifacteId Changes to this property will trigger replacement. String

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

alicloudCertifacteName Changes to this property will trigger replacement. String

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

alicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The Id of resource group which the slb server certificate belongs.
serverCertificate Changes to this property will trigger replacement. String
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags Map<String,String>
A mapping of tags to assign to the resource.
alicloudCertifacteId Changes to this property will trigger replacement. string

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

alicloudCertifacteName Changes to this property will trigger replacement. string

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

alicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of resource group which the slb server certificate belongs.
serverCertificate Changes to this property will trigger replacement. string
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
alicloud_certifacte_id Changes to this property will trigger replacement. str

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

alicloud_certifacte_name Changes to this property will trigger replacement. str

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

alicloud_certificate_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The Id of resource group which the slb server certificate belongs.
server_certificate Changes to this property will trigger replacement. str
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
alicloudCertifacteId Changes to this property will trigger replacement. String

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

alicloudCertifacteName Changes to this property will trigger replacement. String

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

alicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The Id of resource group which the slb server certificate belongs.
serverCertificate Changes to this property will trigger replacement. String
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags Map<String>
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 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 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
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alicloud_certifacte_id: Optional[str] = None,
        alicloud_certifacte_name: Optional[str] = None,
        alicloud_certificate_id: Optional[str] = None,
        alicloud_certificate_name: Optional[str] = None,
        alicloud_certificate_region_id: Optional[str] = None,
        name: Optional[str] = None,
        private_key: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        server_certificate: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> ServerCertificate
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)
public static ServerCertificate get(String name, Output<String> id, ServerCertificateState state, CustomResourceOptions options)
resources:  _:    type: alicloud:slb:ServerCertificate    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:
AlicloudCertifacteId Changes to this property will trigger replacement. string

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

AlicloudCertifacteName Changes to this property will trigger replacement. string

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

AlicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of resource group which the slb server certificate belongs.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
AlicloudCertifacteId Changes to this property will trigger replacement. string

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

AlicloudCertifacteName Changes to this property will trigger replacement. string

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

AlicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of resource group which the slb server certificate belongs.
ServerCertificate Changes to this property will trigger replacement. string
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
Tags map[string]string
A mapping of tags to assign to the resource.
alicloudCertifacteId Changes to this property will trigger replacement. String

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

alicloudCertifacteName Changes to this property will trigger replacement. String

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

alicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The Id of resource group which the slb server certificate belongs.
serverCertificate Changes to this property will trigger replacement. String
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags Map<String,String>
A mapping of tags to assign to the resource.
alicloudCertifacteId Changes to this property will trigger replacement. string

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

alicloudCertifacteName Changes to this property will trigger replacement. string

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

alicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of resource group which the slb server certificate belongs.
serverCertificate Changes to this property will trigger replacement. string
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
alicloud_certifacte_id Changes to this property will trigger replacement. str

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

alicloud_certifacte_name Changes to this property will trigger replacement. str

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

alicloud_certificate_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The Id of resource group which the slb server certificate belongs.
server_certificate Changes to this property will trigger replacement. str
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
alicloudCertifacteId Changes to this property will trigger replacement. String

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

alicloudCertifacteName Changes to this property will trigger replacement. String

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

alicloudCertificateId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The Id of resource group which the slb server certificate belongs.
serverCertificate Changes to this property will trigger replacement. String
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
tags Map<String>
A mapping of tags to assign to the resource.

Import

Server Load balancer Server Certificate can be imported using the id, e.g.

$ pulumi import alicloud:slb/serverCertificate:ServerCertificate example abc123456
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.