alicloud.cas.ServiceCertificate
Explore with Pulumi AI
Provides a SSL Certificates Certificate resource.
For information about SSL Certificates Certificate and how to use it, see What is Certificate.
NOTE: Available since v1.129.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultServiceCertificate = new alicloud.cas.ServiceCertificate("default", {
certificateName: `terraform-example-${_default.result}`,
cert: `-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIQQ7/8/QOOTbywxdgSX9aMqDANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJDTjEOMAwGA1UEChMFTXlTU0wxKzApBgNVBAsTIk15U1NMIFRl
c3QgUlNBIC0gRm9yIHRlc3QgdXNlIG9ubHkxEjAQBgNVBAMTCU15U1NMLmNvbTAe
Fw0yNTA5MjIwNTU3NDVaFw0zMDA5MjEwNTU3NDVaMCAxCzAJBgNVBAYTAkNOMREw
DwYDVQQDEwgxNjg4LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMEl04gKBqJxV+8KideZb7S4mPysehPzr/cXu4i1RXT7UFtNVZuqc4IdIzOja2SU
6uNn8mY6Pfc5FNybg98bYx0ADbub55TUaw2Pz1CFEbiMvLpzMkp4EZadvmJWZk8t
dNb+ClKqdXUWhxApS3Lz+wjCNYQnlODk4KmxmM8/U/CyQS7lgWS/1G72UFB09Skg
sfvWdoHLrFfIlbVkp9XVELCtOkjj8Nn/rPOhc31NbstrwV4Whl6jngGAkaEtImJ7
//sL+sPPsutefCgfZPrC+Zwru2En1BuIo5KW02NYLdjXbABH8xjkUobqRoro7eY3
VySBr7adD6QmNv5hWohOuykCAwEAAaOBzTCByjAOBgNVHQ8BAf8EBAMCBaAwHQYD
VR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMB8GA1UdIwQYMBaAFCiBJgXRNBo/
wXMPu5PPFRw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0dJVMvNyRR83ZpjTQhxoq5l56TN5xk1vdJ9nZdwJMmXiz2TrA
-----END PRIVATE KEY-----
`,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
default_service_certificate = alicloud.cas.ServiceCertificate("default",
certificate_name=f"terraform-example-{default['result']}",
cert="""-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIQQ7/8/QOOTbywxdgSX9aMqDANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJDTjEOMAwGA1UEChMFTXlTU0wxKzApBgNVBAsTIk15U1NMIFRl
c3QgUlNBIC0gRm9yIHRlc3QgdXNlIG9ubHkxEjAQBgNVBAMTCU15U1NMLmNvbTAe
Fw0yNTA5MjIwNTU3NDVaFw0zMDA5MjEwNTU3NDVaMCAxCzAJBgNVBAYTAkNOMREw
DwYDVQQDEwgxNjg4LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMEl04gKBqJxV+8KideZb7S4mPysehPzr/cXu4i1RXT7UFtNVZuqc4IdIzOja2SU
6uNn8mY6Pfc5FNybg98bYx0ADbub55TUaw2Pz1CFEbiMvLpzMkp4EZadvmJWZk8t
dNb+ClKqdXUWhxApS3Lz+wjCNYQnlODk4KmxmM8/U/CyQS7lgWS/1G72UFB09Skg
sfvWdoHLrFfIlbVkp9XVELCtOkjj8Nn/rPOhc31NbstrwV4Whl6jngGAkaEtImJ7
//sL+sPPsutefCgfZPrC+Zwru2En1BuIo5KW02NYLdjXbABH8xjkUobqRoro7eY3
VySBr7adD6QmNv5hWohOuykCAwEAAaOBzTCByjAOBgNVHQ8BAf8EBAMCBaAwHQYD
VR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMB8GA1UdIwQYMBaAFCiBJgXRNBo/
wXMPu5PPFRw/A79/MGMGCCsGAQUFBwEBBFcwVTAhBggrBgEFBQcwAYYVaHR0cDov
L29jc3AubXlzc2wuY29tMDAGCC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"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cas"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = cas.NewServiceCertificate(ctx, "default", &cas.ServiceCertificateArgs{
CertificateName: pulumi.Sprintf("terraform-example-%v", _default.Result),
Cert: pulumi.String(`-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIQQ7/8/QOOTbywxdgSX9aMqDANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJDTjEOMAwGA1UEChMFTXlTU0wxKzApBgNVBAsTIk15U1NMIFRl
c3QgUlNBIC0gRm9yIHRlc3QgdXNlIG9ubHkxEjAQBgNVBAMTCU15U1NMLmNvbTAe
Fw0yNTA5MjIwNTU3NDVaFw0zMDA5MjEwNTU3NDVaMCAxCzAJBgNVBAYTAkNOMREw
DwYDVQQDEwgxNjg4LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMEl04gKBqJxV+8KideZb7S4mPysehPzr/cXu4i1RXT7UFtNVZuqc4IdIzOja2SU
6uNn8mY6Pfc5FNybg98bYx0ADbub55TUaw2Pz1CFEbiMvLpzMkp4EZadvmJWZk8t
dNb+ClKqdXUWhxApS3Lz+wjCNYQnlODk4KmxmM8/U/CyQS7lgWS/1G72UFB09Skg
sfvWdoHLrFfIlbVkp9XVELCtOkjj8Nn/rPOhc31NbstrwV4Whl6jngGAkaEtImJ7
//sL+sPPsutefCgfZPrC+Zwru2En1BuIo5KW02NYLdjXbABH8xjkUobqRoro7eY3
VySBr7adD6QmNv5hWohOuykCAwEAAaOBzTCByjAOBgNVHQ8BAf8EBAMCBaAwHQYD
VR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMB8GA1UdIwQY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YcvsqRNDqIPGhJ2JruVA/bY3S0ebkRlD
xDn0dJVMvNyRR83ZpjTQhxoq5l56TN5xk1vdJ9nZdwJMmXiz2TrA
-----END PRIVATE KEY-----
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultServiceCertificate = new AliCloud.Cas.ServiceCertificate("default", new()
{
CertificateName = $"terraform-example-{@default.Result}",
Cert = @"-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIQQ7/8/QOOTbywxdgSX9aMqDANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJDTjEOMAwGA1UEChMFTXlTU0wxKzApBgNVBAsTIk15U1NMIFRl
c3QgUlNBIC0gRm9yIHRlc3QgdXNlIG9ubHkxEjAQBgNVBAMTCU15U1NMLmNvbTAe
Fw0yNTA5MjIwNTU3NDVaFw0zMDA5MjEwNTU3NDVaMCAxCzAJBgNVBAYTAkNOMREw
DwYDVQQDEwgxNjg4LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMEl04gKBqJxV+8KideZb7S4mPysehPzr/cXu4i1RXT7UFtNVZuqc4IdIzOja2SU
6uNn8mY6Pfc5FNybg98bYx0ADbub55TUaw2Pz1CFEbiMvLpzMkp4EZadvmJWZk8t
dNb+ClKqdXUWhxApS3Lz+wjCNYQnlODk4KmxmM8/U/CyQS7lgWS/1G72UFB09Skg
sfvWdoHLrFfIlbVkp9XVELCtOkjj8Nn/rPOhc31NbstrwV4Whl6jngGAkaEtImJ7
//sL+sPPsutefCgfZPrC+Zwru2En1BuIo5KW02NYLdjXbABH8xjkUobqRoro7eY3
VySBr7adD6QmNv5hWohOuykCAwEAAaOBzTCByjAOBgNVHQ8BAf8EBAMCBaAwHQYD
VR0lBBYwFAYIKwYB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RWeGvNAULnp8RSnhBzm+ZglpbwYcvsqRNDqIPGhJ2JruVA/bY3S0ebkRlD
xDn0dJVMvNyRR83ZpjTQhxoq5l56TN5xk1vdJ9nZdwJMmXiz2TrA
-----END PRIVATE KEY-----
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.Integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.cas.ServiceCertificate;
import com.pulumi.alicloud.cas.ServiceCertificateArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultServiceCertificate = new ServiceCertificate("defaultServiceCertificate", ServiceCertificateArgs.builder()
.certificateName(String.format("terraform-example-%s", default_.result()))
.cert("""
-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIQQ7/8/QOOTbywxdgSX9aMqDANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJDTjEOMAwGA1UEChMFTXlTU0wxKzApBgNVBAsTIk15U1NMIFRl
c3QgUlNBIC0gRm9yIHRlc3QgdXNlIG9ubHkxEjAQBgNVBAMTCU15U1NMLmNvbTAe
Fw0yNTA5MjIwNTU3NDVaFw0zMDA5MjEwNTU3NDVaMCAxCzAJBgNVBAYTAkNOMREw
DwYDVQQDEwgxNjg4LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMEl04gKBqJxV+8KideZb7S4mPysehPzr/cXu4i1RXT7UFtNVZuqc4IdIzOja2SU
6uNn8mY6Pfc5FNybg98bYx0ADbub55TUaw2Pz1CFEbiMvLpzMkp4EZadvmJWZk8t
dNb+ClKqdXUWhxApS3Lz+wjCNYQnlODk4KmxmM8/U/CyQS7lgWS/1G72UFB09Skg
sfvWdoHLrF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Eucg1uK+Awig24LCBBly9nARjIJh1Bhw/58/KwQ9U+fJNcdkeSnV/I1HyDQqY
AczhBSM2BWkP9YNXc9jvivxudSECuwVblV/9nqGSCQWJag53gjAvIyqTVqpq7vYq
9PEC4QKBgGY2pj0ZNqGkq16jD3iS+DDBpX+TPnoHzu5GZCM/1GLZ6xXbpNWtZQt4
/m+6koRWeGvNAULnp8RSnhBzm+ZglpbwYcvsqRNDqIPGhJ2JruVA/bY3S0ebkRlD
xDn0dJVMvNyRR83ZpjTQhxoq5l56TN5xk1vdJ9nZdwJMmXiz2TrA
-----END PRIVATE KEY-----
""")
.build());
}
}
resources:
default:
type: random:Integer
properties:
min: 10000
max: 99999
defaultServiceCertificate:
type: alicloud:cas:ServiceCertificate
name: default
properties:
certificateName: terraform-example-${default.result}
cert: |
-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIQQ7/8/QOOTbywxdgSX9aMqDANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJDTjEOMAwGA1UEChMFTXlTU0wxKzApBgNVBAsTIk15U1NMIFRl
c3QgUlNBIC0gRm9yIHRlc3QgdXNlIG9ubHkxEjAQBgNVBAMTCU15U1NMLmNvbTAe
Fw0yNTA5MjIwNTU3NDVaFw0zMDA5MjEwNTU3NDVaMCAxCzAJBgNVBAYTAkNOMREw
DwYDVQQDEwgxNjg4LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMEl04gKBqJxV+8KideZb7S4mPysehPzr/cXu4i1RXT7UFtNVZuqc4IdIzOja2SU
6uNn8mY6Pfc5FNybg98bYx0ADbub55TUaw2Pz1CFEbiMvLpzMkp4EZadvmJWZk8t
dNb+ClKqdXUWhxApS3Lz+wjCNYQnlODk4KmxmM8/U/CyQS7lgWS/1G72UFB09Skg
sfvWdoHLrFfIlbVkp9XVELCtOkjj8Nn/rPOhc31NbstrwV4Whl6jngGAkaEtImJ7
//sL+sPPsutefCgfZPrC+Zwru2En1BuIo5KW02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nqGSCQWJag53gjAvIyqTVqpq7vYq
9PEC4QKBgGY2pj0ZNqGkq16jD3iS+DDBpX+TPnoHzu5GZCM/1GLZ6xXbpNWtZQt4
/m+6koRWeGvNAULnp8RSnhBzm+ZglpbwYcvsqRNDqIPGhJ2JruVA/bY3S0ebkRlD
xDn0dJVMvNyRR83ZpjTQhxoq5l56TN5xk1vdJ9nZdwJMmXiz2TrA
-----END PRIVATE KEY-----
Create ServiceCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceCertificate(name: string, args?: ServiceCertificateArgs, opts?: CustomResourceOptions);
@overload
def ServiceCertificate(resource_name: str,
args: Optional[ServiceCertificateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
cert: Optional[str] = None,
certificate_name: Optional[str] = None,
encrypt_cert: Optional[str] = None,
encrypt_private_key: Optional[str] = None,
key: Optional[str] = None,
lang: Optional[str] = None,
name: Optional[str] = None,
resource_group_id: Optional[str] = None,
sign_cert: Optional[str] = None,
sign_private_key: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewServiceCertificate(ctx *Context, name string, args *ServiceCertificateArgs, opts ...ResourceOption) (*ServiceCertificate, error)
public ServiceCertificate(string name, ServiceCertificateArgs? args = null, CustomResourceOptions? opts = null)
public ServiceCertificate(String name, ServiceCertificateArgs args)
public ServiceCertificate(String name, ServiceCertificateArgs args, CustomResourceOptions options)
type: alicloud:cas:ServiceCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceCertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceCertificateArgs
- 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 serviceCertificateResource = new AliCloud.Cas.ServiceCertificate("serviceCertificateResource", new()
{
Cert = "string",
CertificateName = "string",
EncryptCert = "string",
EncryptPrivateKey = "string",
Key = "string",
ResourceGroupId = "string",
SignCert = "string",
SignPrivateKey = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cas.NewServiceCertificate(ctx, "serviceCertificateResource", &cas.ServiceCertificateArgs{
Cert: pulumi.String("string"),
CertificateName: pulumi.String("string"),
EncryptCert: pulumi.String("string"),
EncryptPrivateKey: pulumi.String("string"),
Key: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SignCert: pulumi.String("string"),
SignPrivateKey: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var serviceCertificateResource = new ServiceCertificate("serviceCertificateResource", ServiceCertificateArgs.builder()
.cert("string")
.certificateName("string")
.encryptCert("string")
.encryptPrivateKey("string")
.key("string")
.resourceGroupId("string")
.signCert("string")
.signPrivateKey("string")
.tags(Map.of("string", "string"))
.build());
service_certificate_resource = alicloud.cas.ServiceCertificate("serviceCertificateResource",
cert="string",
certificate_name="string",
encrypt_cert="string",
encrypt_private_key="string",
key="string",
resource_group_id="string",
sign_cert="string",
sign_private_key="string",
tags={
"string": "string",
})
const serviceCertificateResource = new alicloud.cas.ServiceCertificate("serviceCertificateResource", {
cert: "string",
certificateName: "string",
encryptCert: "string",
encryptPrivateKey: "string",
key: "string",
resourceGroupId: "string",
signCert: "string",
signPrivateKey: "string",
tags: {
string: "string",
},
});
type: alicloud:cas:ServiceCertificate
properties:
cert: string
certificateName: string
encryptCert: string
encryptPrivateKey: string
key: string
resourceGroupId: string
signCert: string
signPrivateKey: string
tags:
string: string
ServiceCertificate 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 ServiceCertificate resource accepts the following input properties:
- Cert string
- The content of a non-SM certificate in PEM format.
- Certificate
Name string - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - Encrypt
Cert string - The content of an SM encryption certificate in PEM format.
- Encrypt
Private stringKey - The private key of an SM encryption certificate in PEM format.
- Key string
- The private key of a non-SM certificate in PEM format.
- Lang string
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - Name string
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - Resource
Group stringId - The ID of the resource group.
- Sign
Cert string - The content of an SM signing certificate in PEM format.
- Sign
Private stringKey - The private key of an SM signing certificate in PEM format.
- Dictionary<string, string>
- The tag of the resource.
- Cert string
- The content of a non-SM certificate in PEM format.
- Certificate
Name string - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - Encrypt
Cert string - The content of an SM encryption certificate in PEM format.
- Encrypt
Private stringKey - The private key of an SM encryption certificate in PEM format.
- Key string
- The private key of a non-SM certificate in PEM format.
- Lang string
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - Name string
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - Resource
Group stringId - The ID of the resource group.
- Sign
Cert string - The content of an SM signing certificate in PEM format.
- Sign
Private stringKey - The private key of an SM signing certificate in PEM format.
- map[string]string
- The tag of the resource.
- cert String
- The content of a non-SM certificate in PEM format.
- certificate
Name String - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt
Cert String - The content of an SM encryption certificate in PEM format.
- encrypt
Private StringKey - The private key of an SM encryption certificate in PEM format.
- key String
- The private key of a non-SM certificate in PEM format.
- lang String
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name String
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource
Group StringId - The ID of the resource group.
- sign
Cert String - The content of an SM signing certificate in PEM format.
- sign
Private StringKey - The private key of an SM signing certificate in PEM format.
- Map<String,String>
- The tag of the resource.
- cert string
- The content of a non-SM certificate in PEM format.
- certificate
Name string - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt
Cert string - The content of an SM encryption certificate in PEM format.
- encrypt
Private stringKey - The private key of an SM encryption certificate in PEM format.
- key string
- The private key of a non-SM certificate in PEM format.
- lang string
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name string
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource
Group stringId - The ID of the resource group.
- sign
Cert string - The content of an SM signing certificate in PEM format.
- sign
Private stringKey - The private key of an SM signing certificate in PEM format.
- {[key: string]: string}
- The tag of the resource.
- cert str
- The content of a non-SM certificate in PEM format.
- certificate_
name str - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt_
cert str - The content of an SM encryption certificate in PEM format.
- encrypt_
private_ strkey - The private key of an SM encryption certificate in PEM format.
- key str
- The private key of a non-SM certificate in PEM format.
- lang str
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name str
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource_
group_ strid - The ID of the resource group.
- sign_
cert str - The content of an SM signing certificate in PEM format.
- sign_
private_ strkey - The private key of an SM signing certificate in PEM format.
- Mapping[str, str]
- The tag of the resource.
- cert String
- The content of a non-SM certificate in PEM format.
- certificate
Name String - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt
Cert String - The content of an SM encryption certificate in PEM format.
- encrypt
Private StringKey - The private key of an SM encryption certificate in PEM format.
- key String
- The private key of a non-SM certificate in PEM format.
- lang String
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name String
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource
Group StringId - The ID of the resource group.
- sign
Cert String - The content of an SM signing certificate in PEM format.
- sign
Private StringKey - The private key of an SM signing certificate in PEM format.
- Map<String>
- The tag of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceCertificate 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 ServiceCertificate Resource
Get an existing ServiceCertificate 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?: ServiceCertificateState, opts?: CustomResourceOptions): ServiceCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cert: Optional[str] = None,
certificate_name: Optional[str] = None,
encrypt_cert: Optional[str] = None,
encrypt_private_key: Optional[str] = None,
key: Optional[str] = None,
lang: Optional[str] = None,
name: Optional[str] = None,
resource_group_id: Optional[str] = None,
sign_cert: Optional[str] = None,
sign_private_key: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> ServiceCertificate
func GetServiceCertificate(ctx *Context, name string, id IDInput, state *ServiceCertificateState, opts ...ResourceOption) (*ServiceCertificate, error)
public static ServiceCertificate Get(string name, Input<string> id, ServiceCertificateState? state, CustomResourceOptions? opts = null)
public static ServiceCertificate get(String name, Output<String> id, ServiceCertificateState state, CustomResourceOptions options)
resources: _: type: alicloud:cas:ServiceCertificate get: id: ${id}
- 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.
- 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.
- Cert string
- The content of a non-SM certificate in PEM format.
- Certificate
Name string - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - Encrypt
Cert string - The content of an SM encryption certificate in PEM format.
- Encrypt
Private stringKey - The private key of an SM encryption certificate in PEM format.
- Key string
- The private key of a non-SM certificate in PEM format.
- Lang string
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - Name string
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - Resource
Group stringId - The ID of the resource group.
- Sign
Cert string - The content of an SM signing certificate in PEM format.
- Sign
Private stringKey - The private key of an SM signing certificate in PEM format.
- Dictionary<string, string>
- The tag of the resource.
- Cert string
- The content of a non-SM certificate in PEM format.
- Certificate
Name string - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - Encrypt
Cert string - The content of an SM encryption certificate in PEM format.
- Encrypt
Private stringKey - The private key of an SM encryption certificate in PEM format.
- Key string
- The private key of a non-SM certificate in PEM format.
- Lang string
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - Name string
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - Resource
Group stringId - The ID of the resource group.
- Sign
Cert string - The content of an SM signing certificate in PEM format.
- Sign
Private stringKey - The private key of an SM signing certificate in PEM format.
- map[string]string
- The tag of the resource.
- cert String
- The content of a non-SM certificate in PEM format.
- certificate
Name String - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt
Cert String - The content of an SM encryption certificate in PEM format.
- encrypt
Private StringKey - The private key of an SM encryption certificate in PEM format.
- key String
- The private key of a non-SM certificate in PEM format.
- lang String
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name String
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource
Group StringId - The ID of the resource group.
- sign
Cert String - The content of an SM signing certificate in PEM format.
- sign
Private StringKey - The private key of an SM signing certificate in PEM format.
- Map<String,String>
- The tag of the resource.
- cert string
- The content of a non-SM certificate in PEM format.
- certificate
Name string - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt
Cert string - The content of an SM encryption certificate in PEM format.
- encrypt
Private stringKey - The private key of an SM encryption certificate in PEM format.
- key string
- The private key of a non-SM certificate in PEM format.
- lang string
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name string
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource
Group stringId - The ID of the resource group.
- sign
Cert string - The content of an SM signing certificate in PEM format.
- sign
Private stringKey - The private key of an SM signing certificate in PEM format.
- {[key: string]: string}
- The tag of the resource.
- cert str
- The content of a non-SM certificate in PEM format.
- certificate_
name str - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt_
cert str - The content of an SM encryption certificate in PEM format.
- encrypt_
private_ strkey - The private key of an SM encryption certificate in PEM format.
- key str
- The private key of a non-SM certificate in PEM format.
- lang str
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name str
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource_
group_ strid - The ID of the resource group.
- sign_
cert str - The content of an SM signing certificate in PEM format.
- sign_
private_ strkey - The private key of an SM signing certificate in PEM format.
- Mapping[str, str]
- The tag of the resource.
- cert String
- The content of a non-SM certificate in PEM format.
- certificate
Name String - A custom name for the certificate. The name can be up to 64 characters long and can contain any character type, such as letters, numbers, and underscores. NOTE: From version 1.260.1,
certificate_name
can be modified. - encrypt
Cert String - The content of an SM encryption certificate in PEM format.
- encrypt
Private StringKey - The private key of an SM encryption certificate in PEM format.
- key String
- The private key of a non-SM certificate in PEM format.
- lang String
- Field
lang
has been deprecated from provider version 1.260.1 and it will be removed in the future version. - name String
- Field
name
has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attributecertificate_name
instead. - resource
Group StringId - The ID of the resource group.
- sign
Cert String - The content of an SM signing certificate in PEM format.
- sign
Private StringKey - The private key of an SM signing certificate in PEM format.
- Map<String>
- The tag of the resource.
Import
SSL Certificates Certificate can be imported using the id, e.g.
$ pulumi import alicloud:cas/serviceCertificate:ServiceCertificate example <id>
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.