Class 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-----
",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Slb
Assembly: Pulumi.AliCloud.dll
Syntax
public class ServerCertificate : CustomResource
Constructors
View SourceServerCertificate(String, ServerCertificateArgs, CustomResourceOptions)
Create a ServerCertificate resource with the given unique name, arguments, and options.
Declaration
public ServerCertificate(string name, ServerCertificateArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServerCertificateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAlicloudCertifacteId
Declaration
public Output<string> AlicloudCertifacteId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AlicloudCertifacteName
Declaration
public Output<string> AlicloudCertifacteName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AlicloudCertificateId
an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.
Declaration
public Output<string> AlicloudCertificateId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AlicloudCertificateName
the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.
Declaration
public Output<string> AlicloudCertificateName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AlicloudCertificateRegionId
the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.
Declaration
public Output<string> AlicloudCertificateRegionId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Certificate
the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.
Declaration
public Output<string> Certificate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Name of the Server Certificate.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivateKey
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.
Declaration
public Output<string> PrivateKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupId
The Id of resource group which the slb server certificate belongs.
Declaration
public Output<string> ResourceGroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, ServerCertificateState, CustomResourceOptions)
Get an existing ServerCertificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ServerCertificate Get(string name, Input<string> id, ServerCertificateState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServerCertificateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ServerCertificate |