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
new ServerCertificate(name: string, args?: ServerCertificateArgs, opts?: CustomResourceOptions);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);func NewServerCertificate(ctx *Context, name string, args *ServerCertificateArgs, opts ...ResourceOption) (*ServerCertificate, error)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:
- Alicloud
Certifacte stringId - Alicloud
Certifacte stringName - Alicloud
Certificate stringId 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 stringName 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 stringRegion Id 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_idis null, it is required, otherwise it is ignored.- Name string
Name of the Server Certificate.
- Private
Key string the content of privat key of the ssl certificate specified by
server_certificate. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- Resource
Group stringId The Id of resource group which the slb server certificate belongs.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Alicloud
Certifacte stringId - Alicloud
Certifacte stringName - Alicloud
Certificate stringId 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 stringName 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 stringRegion Id 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.
- Private
Key string the content of privat key of the ssl certificate specified by
server_certificate. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- Resource
Group stringId The Id of resource group which the slb server certificate belongs.
- Server
Certificate string the content of the ssl certificate. where
alicloud_certificate_idis null, it is required, otherwise it is ignored.- map[string]interface{}
A mapping of tags to assign to the resource.
- alicloud
Certifacte stringId - alicloud
Certifacte stringName - alicloud
Certificate stringId 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 stringName 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 stringRegion Id 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.
- private
Key string the content of privat key of the ssl certificate specified by
server_certificate. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- resource
Group stringId The Id of resource group which the slb server certificate belongs.
- server
Certificate string the content of the ssl certificate. where
alicloud_certificate_idis null, it is required, otherwise it is ignored.- {[key: string]: any}
A mapping of tags to assign to the resource.
- alicloud_
certifacte_ strid - alicloud_
certifacte_ strname - alicloud_
certificate_ strid 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_ strname 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_ strregion_ id 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. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- resource_
group_ strid The Id of resource group which the slb server certificate belongs.
- server_
certificate str the content of the ssl certificate. where
alicloud_certificate_idis null, it is required, otherwise it is ignored.- 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:
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): ServerCertificatestatic 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:
- Alicloud
Certifacte stringId - Alicloud
Certifacte stringName - Alicloud
Certificate stringId 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 stringName 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 stringRegion Id 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_idis null, it is required, otherwise it is ignored.- Name string
Name of the Server Certificate.
- Private
Key string the content of privat key of the ssl certificate specified by
server_certificate. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- Resource
Group stringId The Id of resource group which the slb server certificate belongs.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Alicloud
Certifacte stringId - Alicloud
Certifacte stringName - Alicloud
Certificate stringId 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 stringName 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 stringRegion Id 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.
- Private
Key string the content of privat key of the ssl certificate specified by
server_certificate. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- Resource
Group stringId The Id of resource group which the slb server certificate belongs.
- Server
Certificate string the content of the ssl certificate. where
alicloud_certificate_idis null, it is required, otherwise it is ignored.- map[string]interface{}
A mapping of tags to assign to the resource.
- alicloud
Certifacte stringId - alicloud
Certifacte stringName - alicloud
Certificate stringId 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 stringName 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 stringRegion Id 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.
- private
Key string the content of privat key of the ssl certificate specified by
server_certificate. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- resource
Group stringId The Id of resource group which the slb server certificate belongs.
- server
Certificate string the content of the ssl certificate. where
alicloud_certificate_idis null, it is required, otherwise it is ignored.- {[key: string]: any}
A mapping of tags to assign to the resource.
- alicloud_
certifacte_ strid - alicloud_
certifacte_ strname - alicloud_
certificate_ strid 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_ strname 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_ strregion_ id 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. wherealicloud_certificate_idis null, it is required, otherwise it is ignored.- resource_
group_ strid The Id of resource group which the slb server certificate belongs.
- server_
certificate str the content of the ssl certificate. where
alicloud_certificate_idis null, it is required, otherwise it is ignored.- 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
alicloudTerraform Provider.