获取内容转发组信息-DescribePolicyGroup

获取内容转发组详细信息

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域Yes
GroupIdstring内容转发策略组IDNo
Offsetint数据偏移量,默认值为0No
Limitint数据分页值,默认为20No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarray内容转发策略组列表,具体结构见 UlbPolicyGroupSetNo

UlbPolicyGroupSet

Parameter nameTypeDescriptionRequired
GroupIdstring内容转发策略组IDNo
GroupNamestring内容转发策略组名称No
PolicySetarray内容转发策略组详细信息,具体结构见 UlbPolicySetNo

UlbPolicySet

Parameter nameTypeDescriptionRequired
PolicyIdstring内容转发策略组IDNo
Typestring内容转发匹配字段的类型,当前只支持按域名转发。枚举值为: Domain,按域名转发No
Matchstring内容转发匹配字段No
VServerIdstring内容转发策略组ID应用的VServer实例的IDNo
BackendSetarray内容转发策略组ID所应用的后端资源列表,具体结构见 UlbPolicyBackendSetNo

UlbPolicyBackendSet

Parameter nameTypeDescriptionRequired
BackendIdstring后端资源实例的IDNo
PrivateIPstring后端资源实例的内网IPNo
Portint后端资源实例的服务端口No

Request Example

http(s)://api.ucloud.cn/?Action=DescribePolicyGroup

Response Example

{
    "Action": "DescribePolicyGroupResponse",
    "TotalCount": 2,
    "RetCode": 0,
    "DataSet": [
        {
            "GroupName": "new-policy",
            "GroupId": "ulb-fr-2axjbg",
            "PolicySet": [
                {
                    "VServerId": "8aae44ba-f3fd-4162-9e32-2e64b89b646b",
                    "BackendSet": [
                        {
                            "Port": 80,
                            "BackendId": "1cf3c062-f551-48c7-a6e2-c2730d84303f",
                            "PrivateIP": "10.10.33.87"
                        },
                        {
                            "Port": 80,
                            "BackendId": "a2ac0c73-1831-4379-b651-fbcb7702f6ec",
                            "PrivateIP": "10.10.32.101"
                        },
                        {
                            "Port": 80,
                            "BackendId": "6277e964-83de-4548-b598-6b4d5a67a442",
                            "PrivateIP": "10.10.31.7"
                        }
                    ],
                    "Type": "Domain",
                    "PolicyId": "a3bfefc1-bfce-459c-baeb-2619f77cf0df",
                    "Match": "www.example.com"
                }
            ]
        },
        {
            "GroupName": "eqeqeqeq",
            "GroupId": "ulb-fr-dwkb5d",
            "PolicySet": []
        }
    ]
}