All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::CDN::SubTask

更新時間:Apr 09, 2026

Use the ALIYUN::CDN::SubTask resource to create a custom report task.

Syntax

{
  "Type": "ALIYUN::CDN::SubTask",
  "Properties": {
    "ReportIds": List,
    "DomainName": String
  }
}

Properties

Parameter

Type

Required

Updatable

Description

Constraints

ReportIds

List

Yes

Yes

The IDs of the reports to generate.

Length: 1 to 12.

Valid values:

  • 1: Top URL (by number of requests)

  • 3: Top URL (by traffic)

  • 5: Top Referer (by number of requests)

  • 7: Top Referer (by traffic)

  • 9: Top origin URL (by number of requests)

  • 11: Top origin URL (by traffic)

  • 13: Top Client IP (by number of requests)

  • 15: Top Client IP (by traffic)

  • 17: Domain name ranking (by traffic)

  • 19: PV/UV

  • 21: Geographic distribution

  • 23: ISP distribution

DomainName

String

No

Yes

The domain name for which the reports are generated.

None

Return values

Fn::GetAtt

This resource does not return any attributes.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainName:
    Type: String
    Description: The domain name.
    Required: false
  ReportIds:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Description: The report ID.
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description: |-
      The report IDs.
      The value can be up to 128 bytes in length.
    Required: true
    MinLength: 1
    MaxLength: 12
Resources:
  SubTask:
    Type: ALIYUN::CDN::SubTask
    Properties:
      DomainName:
        Ref: DomainName
      ReportIds:
        Ref: ReportIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainName": {
      "Type": "String",
      "Description": "The domain name.",
      "Required": false
    },
    "ReportIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Description": "The report ID.",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": "The report IDs.\nThe value can be up to 128 bytes in length.",
      "Required": true,
      "MinLength": 1,
      "MaxLength": 12
    }
  },
  "Resources": {
    "SubTask": {
      "Type": "ALIYUN::CDN::SubTask",
      "Properties": {
        "DomainName": {
          "Ref": "DomainName"
        },
        "ReportIds": {
          "Ref": "ReportIds"
        }
      }
    }
  }
}