Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::RAM::AppSecret

Última atualização: Jun 27, 2026

Cria um segredo de aplicativo para um aplicativo RAM.

Sintaxe

{
  "Type": "ALIYUN::RAM::AppSecret",
  "Properties": {
    "AppId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

AppId

String

Sim

Não

O ID do aplicativo.

Nenhuma.

Valores de retorno

Fn::GetAtt

  • AppSecretValue: conteúdo do segredo do aplicativo. Use este valor como parâmetro Client Secret em aplicativos de Open Authorization (OAuth).

  • AppSecretId: ID do segredo do aplicativo.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AppId:
        Description: The ID of the application.
        Type: String
    Resources:
      AppSecret:
        Properties:
          AppId:
            Ref: AppId
        Type: ALIYUN::RAM::AppSecret
    Outputs:
      AppSecretId:
        Description: The ID of the application secret.
        Value:
          Fn::GetAtt:
          - AppSecret
          - AppSecretId
      AppSecretValue:
        Description: The content of the application secret. This value can be used as
          the client secret for open authorization.
        Value:
          Fn::GetAtt:
          - AppSecret
          - AppSecretValue
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AppId": {
          "Type": "String",
          "Description": "The ID of the application."
        }
      },
      "Resources": {
        "AppSecret": {
          "Type": "ALIYUN::RAM::AppSecret",
          "Properties": {
            "AppId": {
              "Ref": "AppId"
            }
          }
        }
      },
      "Outputs": {
        "AppSecretValue": {
          "Description": "The content of the application secret. This value can be used as the client secret for open authorization.",
          "Value": {
            "Fn::GetAtt": [
              "AppSecret",
              "AppSecretValue"
            ]
          }
        },
        "AppSecretId": {
          "Description": "The ID of the application secret.",
          "Value": {
            "Fn::GetAtt": [
              "AppSecret",
              "AppSecretId"
            ]
          }
        }
      }
    }