Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::SLS::Project

Última atualização: Jun 27, 2026

Consulta um projeto específico do Simple Log Service (SLS).

Sintaxe

{
  "Type": "DATASOURCE::SLS::Project",
  "Properties": {
    "ProjectName": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ProjectName

String

Sim

Sim

Nome do projeto.

Nenhuma.

RefreshOptions

String

Não

Sim

Estratégia de atualização dos recursos da fonte de dados durante atualizações da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos da fonte de dados durante atualizações da pilha.

  • Always: atualiza os recursos da fonte de dados durante atualizações da pilha.

Valores de retorno

Fn::GetAtt

  • Status: status do projeto.

  • Owner: conta da Alibaba Cloud proprietária do projeto.

  • Description: descrição do projeto.

  • Quota: cota do projeto.

  • ResourceGroupId: ID do grupo de recursos que contém o projeto.

  • ProjectName: nome do projeto.

  • CreateTime: hora de criação do projeto.

  • DataRedundancyType: tipo de redundância de dados.

  • Region: região do projeto.

  • LastModifyTime: hora da última modificação do projeto.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ProjectName:
    Type: String
    Description:
      en: The name of the project.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::SLS::Project
    Properties:
      ProjectName:
        Ref: ProjectName
Outputs:
  Status:
    Description: The status of the project.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Status
  Owner:
    Description: The ID of the Alibaba Cloud account that is used to create the project.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Owner
  Description:
    Description: The description of the project.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  Quota:
    Description: Project quota.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Quota
  ResourceGroupId:
    Description: The ID of the resource group to which the project belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  ProjectName:
    Description: The name of the project.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ProjectName
  CreateTime:
    Description: The time at which the project was created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  DataRedundancyType:
    Description: Data redundancy type.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DataRedundancyType
  Region:
    Description: The region to which the project belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Region
  LastModifyTime:
    Description: The time at which the project was last modified.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LastModifyTime
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ProjectName": {
      "Type": "String",
      "Description": {
        "en": "The name of the project."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::SLS::Project",
      "Properties": {
        "ProjectName": {
          "Ref": "ProjectName"
        }
      }
    }
  },
  "Outputs": {
    "Status": {
      "Description": "The status of the project.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Status"
        ]
      }
    },
    "Owner": {
      "Description": "The ID of the Alibaba Cloud account that is used to create the project.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Owner"
        ]
      }
    },
    "Description": {
      "Description": "The description of the project.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "Quota": {
      "Description": "Project quota.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Quota"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group to which the project belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "ProjectName": {
      "Description": "The name of the project.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ProjectName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time at which the project was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "DataRedundancyType": {
      "Description": "Data redundancy type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DataRedundancyType"
        ]
      }
    },
    "Region": {
      "Description": "The region to which the project belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Region"
        ]
      }
    },
    "LastModifyTime": {
      "Description": "The time at which the project was last modified.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LastModifyTime"
        ]
      }
    }
  }
}