Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CAS::Certificate

Última atualização: Jun 27, 2026

Adiciona um certificado ao Certificate Management Service (CAS).

Sintaxe

{
  "Type": "ALIYUN::CAS::Certificate",
  "Properties": {
    "Lang": String,
    "Cert": String,
    "SourceIp": String,
    "Name": String,
    "Key": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Cert

String

Sim

Não

Conteúdo do certificado. O valor deve estar codificado no formato Privacy Enhanced Mail (PEM).

Nenhuma.

Key

String

Sim

Não

Chave privada do certificado. O valor deve estar codificado no formato PEM.

Nenhuma.

Name

String

Sim

Não

Nome do certificado. Deve ser único na conta.

Nenhuma.

Lang

String

Não

Não

Idioma do conteúdo da solicitação e da resposta.

Nenhuma.

SourceIp

String

Não

Não

Endereço IP de origem da solicitação.

Nenhuma.

Valores de retorno

Fn::GetAtt

  • CertId: ID do certificado.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  Certificate:
    Type: ALIYUN::CAS::Certificate
    Properties:
      Lang:
        Ref: Lang
      Cert:
        Ref: Cert
      SourceIp:
        Ref: SourceIp
      Name:
        Ref: Name
      Key:
        Ref: Key
Parameters:
  Lang:
    Type: String
    Description: Specifies the language type for requesting and receiving messages.
  Cert:
    Type: String
    Description: Specify the content of the certificate. To use the PEM encoding format.
  SourceIp:
    Type: String
    Description: Specifies the source IP address of the request.
  Name:
    Type: String
    Description: Custom certificate name. The certificate name under a user cannot be duplicated.
  Key:
    Type: String
    Description: Specify the certificate private key content. To use the PEM encoding format.
Outputs:
  CertId:
    Description: Certificate ID.
    Value:
      Fn::GetAtt:
        - Certificate
        - CertId

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Certificate": {
      "Type": "ALIYUN::CAS::Certificate",
      "Properties": {
        "Lang": {
          "Ref": "Lang"
        },
        "Cert": {
          "Ref": "Cert"
        },
        "SourceIp": {
          "Ref": "SourceIp"
        },
        "Name": {
          "Ref": "Name"
        },
        "Key": {
          "Ref": "Key"
        }
      }
    }
  },
  "Parameters": {
    "Lang": {
      "Type": "String",
      "Description": "Specifies the language type for requesting and receiving messages."
    },
    "Cert": {
      "Type": "String",
      "Description": "Specify the content of the certificate. To use the PEM encoding format."
    },
    "SourceIp": {
      "Type": "String",
      "Description": "Specifies the source IP address of the request."
    },
    "Name": {
      "Type": "String",
      "Description": "Custom certificate name. The certificate name under a user cannot be duplicated."
    },
    "Key": {
      "Type": "String",
      "Description": "Specify the certificate private key content. To use the PEM encoding format."
    }
  },
  "Outputs": {
    "CertId": {
      "Description": "Certificate ID.",
      "Value": {
        "Fn::GetAtt": [
          "Certificate",
          "CertId"
        ]
      }
    }
  }
}