Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CloudStorageGateway::GatewayLogging

Última atualização: Jun 27, 2026

Configura o monitoramento de logs de um gateway do Cloud Storage Gateway (CSG) conectando-o a um projeto e a um Logstore do Simple Log Service (SLS).

Sintaxe

{
  "Type": "ALIYUN::CloudStorageGateway::GatewayLogging",
  "Properties": {
    "GatewayId": String,
    "SlsProject": String,
    "SlsLogstore": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

GatewayId

String

Sim

Não

ID do gateway.

Nenhuma

SlsLogstore

String

Sim

Não

Nome do Logstore do SLS.

Nenhuma

SlsProject

String

Sim

Não

Nome do projeto do SLS.

Nenhuma

Valores de retorno

Fn::GetAtt

Nenhum

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SlsProject:
    Type: String
    Description: The name of the SLS project.
    Required: true
  GatewayId:
    Type: String
    Description: The ID of the gateway.
    Required: true
  SlsLogstore:
    Type: String
    Description: The name of the SLS log store.
    Required: true
Resources:
  GatewayLogging:
    Type: ALIYUN::CloudStorageGateway::GatewayLogging
    Properties:
      SlsProject:
        Ref: SlsProject
      GatewayId:
        Ref: GatewayId
      SlsLogstore:
        Ref: SlsLogstore
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SlsProject": {
      "Type": "String",
      "Description": "The name of the SLS project.",
      "Required": true
    },
    "GatewayId": {
      "Type": "String",
      "Description": "The ID of the gateway.",
      "Required": true
    },
    "SlsLogstore": {
      "Type": "String",
      "Description": "The name of the SLS log store.",
      "Required": true
    }
  },
  "Resources": {
    "GatewayLogging": {
      "Type": "ALIYUN::CloudStorageGateway::GatewayLogging",
      "Properties": {
        "SlsProject": {
          "Ref": "SlsProject"
        },
        "GatewayId": {
          "Ref": "GatewayId"
        },
        "SlsLogstore": {
          "Ref": "SlsLogstore"
        }
      }
    }
  }
}