ALIYUN::CR::StorageDomainRoutingRule

更新时间:
复制为 MD 格式

ALIYUN::CR::StorageDomainRoutingRule类型用于创建实例存储域名路由规则。

语法

{
  "Type": "ALIYUN::CR::StorageDomainRoutingRule",
  "Properties": {
    "InstanceId": String,
    "Routes": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceId

String

ACR实例ID。

Routes

List

域名路由条目。

更多信息,请参考Routes属性

Routes语法

"Routes": [
  {
    "StorageDomain": String,
    "EndpointType": String,
    "InstanceDomain": String
  }
]

Routes属性

属性名称

类型

必须

允许更新

描述

约束

EndpointType

String

终端节点类型。

InstanceDomain

String

实例域名。

StorageDomain

String

存储域名。

返回值

Fn::GetAtt

  • ModifyTime:规则的修改时间。

  • RuleId:规则ID。

  • CreateTime:规则的创建时间。

  • Routes:域名路由条目。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: ACR Instance ID.
      zh: ACR实例ID。
    Required: true
  Routes:
    AssociationPropertyMetadata:
      Parameters:
        StorageDomain:
          Type: String
          Description:
            en: Storage domain name.
            zh: 存储域名。
          Required: true
        EndpointType:
          Type: String
          Description:
            en: Endpoint Type.
            zh: 终端节点类型。
          Required: true
        InstanceDomain:
          Type: String
          Description:
            en: Instance domain name.
            zh: 实例域名。
          Required: true
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      en: Domain name routing entry.
      zh: 域名路由条目。
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::CR::StorageDomainRoutingRule
    Properties:
      InstanceId:
        Ref: InstanceId
      Routes:
        Ref: Routes
Outputs:
  ModifyTime:
    Description:
      en: The Modify Time of the Rule.
      zh: 规则的修改时间。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ModifyTime
  RuleId:
    Description:
      en: Rule ID.
      zh: 规则ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleId
  CreateTime:
    Description:
      en: The creation time of the Rule.
      zh: 规则的创建时间。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  Routes:
    Description:
      en: Domain name routing entry.
      zh: 域名路由条目。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Routes
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "ACR Instance ID.",
        "zh": "ACR实例ID。"
      },
      "Required": true
    },
    "Routes": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "StorageDomain": {
            "Type": "String",
            "Description": {
              "en": "Storage domain name.",
              "zh": "存储域名。"
            },
            "Required": true
          },
          "EndpointType": {
            "Type": "String",
            "Description": {
              "en": "Endpoint Type.",
              "zh": "终端节点类型。"
            },
            "Required": true
          },
          "InstanceDomain": {
            "Type": "String",
            "Description": {
              "en": "Instance domain name.",
              "zh": "实例域名。"
            },
            "Required": true
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "Domain name routing entry.",
        "zh": "域名路由条目。"
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CR::StorageDomainRoutingRule",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "Routes": {
          "Ref": "Routes"
        }
      }
    }
  },
  "Outputs": {
    "ModifyTime": {
      "Description": {
        "en": "The Modify Time of the Rule.",
        "zh": "规则的修改时间。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ModifyTime"
        ]
      }
    },
    "RuleId": {
      "Description": {
        "en": "Rule ID.",
        "zh": "规则ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleId"
        ]
      }
    },
    "CreateTime": {
      "Description": {
        "en": "The creation time of the Rule.",
        "zh": "规则的创建时间。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "Routes": {
      "Description": {
        "en": "Domain name routing entry.",
        "zh": "域名路由条目。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Routes"
        ]
      }
    }
  }
}