Todos os produtos
Search
Central de documentação

CloudOps Orchestration Service:ACS-Actiontrail-EnableActionTrail

Última atualização: Jun 28, 2026

Nome do modelo

ACS-Actiontrail-EnableActionTrail

Executar agora

Descrição do modelo

Ativa o recurso de log de uma trilha.

Tipo de modelo

Automatizado

Proprietário

Alibaba Cloud

Parâmetros de entrada

Parâmetro

Descrição

Tipo

Obrigatório

Valor padrão

Limite

trailName

Nome da trilha.

String

Sim

regionId

ID da região.

String

Não

{{ ACS::RegionId }}

ossBucketName

Nome do bucket do Object Storage Service (OSS) de destino dos eventos da trilha.

String

Não

""

roleName

Função RAM assumida pelo ActionTrail.

String

Não

aliyunactiontraildefaultrole

eventRW

Tipo de leitura e gravação dos eventos entregues.

String

Não

All

trailRegion

Regiões em que a trilha entrega eventos.

String

Não

All

OOSAssumeRole

Função RAM assumida pelo CloudOps Orchestration Service (OOS).

String

Não

""

Parâmetros de saída

Parâmetro

Descrição

Tipo

trails

Json

Política de permissões necessária para executar o modelo

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "actiontrail:CreateTrail"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

Referências

Para mais informações, consulte ACS-Actiontrail-EnableActionTrail.yml no GitHub.

Conteúdo do modelo

FormatVersion: OOS-2019-06-01
Description:
  en: Enable action trail
  zh-cn: the description in Chinese
  name-en: ACS-Actiontrail-EnableActionTrail
  name-zh-cn: the description in Chinese
  categories:
    - security
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: the description in Chinese
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  trailName:
    Label:
      en: TrailName
      zh-cn: the description in Chinese
    Type: String
  ossBucketName:
    Label:
      en: OSSBucketName
      zh-cn: the description in Chinese
    Type: String
    Default: ''
  roleName:
    Label:
      en: RoleName
      zh-cn: the description in Chinese
    Type: String
    Default: aliyunactiontraildefaultrole
  eventRW:
    Label:
      en: EventRW
      zh-cn: the description in Chinese
    Type: String
    Default: All
    AllowedValues:
      - All
      - Write
      - Read
  trailRegion:
    Description:
      en: Example: All, cn-hangzhou
      zh-cn: the description in Chinese
    Label:
      en: TrailRegion
      zh-cn: the description in Chinese
    Type: String
    Default: All
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: the description in Chinese
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: createTrail
    Action: 'ACS::ExecuteAPI'
    Description:
      en: Create trail
      zh-cn: the description in Chinese
    Properties:
      Service: Actiontrail
      API: CreateTrail
      Parameters:
        RegionId: '{{ regionId }}'
        Name: '{{ trailName }}'
        OssBucketName: '{{ ossBucketName }}'
        RoleName: '{{ roleName }}'
        EventRW: '{{ eventRW }}'
        TrailRegion: '{{ trailRegion }}'
    Outputs:
      trail:
        Type: Json
        ValueSelector: .
Outputs:
  trails:
    Type: Json
    Value: '{{ createTrail.trail }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - trailName
          - ossBucketName
          - roleName
          - eventRW
          - trailRegion
          - regionId
        Label:
          default:
            zh-cn: the description in Chinese
            en: Configure Parameters
      - Parameters:
          - OOSAssumeRole
        Label:
          default:
            zh-cn: the description in Chinese
            en: Control Options