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 server_certificate/private content as string example

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) {
var foo = new ServerCertificate("foo", ServerCertificateArgs.builder()
.privateKey("""
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDO0knDrlNdiys******ErVpjsckAaOW/JDG5PCSwkaMxk=
-----END RSA PRIVATE KEY-----
""")
.serverCertificate("""
-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgI+OuMs******XTtI90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----
""")
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the Server Certificate.

Link copied to clipboard
val privateKey: Output<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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

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

Link copied to clipboard

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

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>