DescribeResourcePackageProduct

Overview

You can call this operation to query the information about a specified resource package.

Request parameters

NameTypeRequiredDescription
productCodeStringYesThe type of the specified product.

Response parameters

NameTypeDescription
ResourcePackagesResourcePackageThe array of the resource packages. For more information, see Data dictionary.

Error codes

Error codeDescriptionHTTP status codeDescription
NotApplicableThis API is not applicable for caller.400The error message returned when you are not authorized to use the API.
MissingParameterThe specified parameter xx is mandatory for this request.400The error message returned when the xx parameter is not specified.
InvalidParameterThe specified parameter xx is not valid.400The error message returned when the xx parameter is invalid.
InvalidModuleCodeThe specified moduleCode is not valid.400The error message returned when the specified moduleCode parameter is invalid.
InvalidConfigCodeThe specified configCode is not valid.400The error message returned when the specified configCode parameter is invalid.
InvalidOwnerThe specified owner doesn’t belong to caller.400The error message returned when the specified owner does not belong to the caller.
InvalidCallerThe specified caller doesn’t exists.400The error message returned when the caller is invalid.
InternalErrorThe request processing has failed due to some unknown error, exception or failure.400The error message returned when an unknown internal error occurs.
ProductNotFindCan not find inquired product, it may not exist.400The error message returned when the specified product is invalid.

Sample requests

https://business.ap-southeast-1.aliyuncs.com/?Action=DescribeResourcePackageProduct
&ProductCode=flowpack

Sample responses

{
    "Message": "Successful!",
    "RequestId": "BBEF51A3-E933-4F40-A534-C673CBDB9C80",
    "Success": true,
    "Code": "Success",
    "OrderId":1111,
    "Data": {
        "ResourcePackages": {
            "ResourcePackage": [
                {
                    "Name": "对象存储OSS资源包(包月)",
                    "ProductCode": "ossbag",
                    "PackageTypes": {
                        "PackageType": [
                            {
                                "Name": "回源流量包(华南1)",
                                "Specifications": {
                                    "Specification": [
                                        {
                                            "Name": "1TB",
                                            "Value": "1024",
                                            "AvailableDurations": {
                                                "AvailableDuration": [
                                                    {
                                                        "Name": "6 Month",
                                                        "Value": 6,
                                                        "Unit": "Month"
                                                    }
                                                ]
                                            }
                                        }
                                    ]
                                },
                                "Code": "FPT_ossbag_deadlineAcc_CdnOut_common_sz",
                                "Properties": {
                                    "Property": [
                                        {
                                            "Name": "region",
                                            "Value": "cn-shenzhen"
                                        },
                                        {
                                            "Name": "ossbag_type",
                                            "Value": "cdn2oss_flow_out"
                                        }
                                    ]
                                }
                            },
                            {
                                "Name": "标准存储包(华北2)",
                                "Specifications": {
                                    "Specification": [
                                        {
                                            "Name": "40GB",
                                            "Value": "40",
                                            "AvailableDurations": {
                                                "AvailableDuration": [
                                                    {
                                                        "Name": "6 Month",
                                                        "Value": 6,
                                                        "Unit": "Month"
                                                    }
                                                ]
                                            }
                                        }
                                    ]
                                },
                                "Code": "FPT_ossbag_absolute_Storage_bj",
                                "Properties": {
                                    "Property": [
                                        {
                                            "Name": "region",
                                            "Value": "cn-beijing"
                                        },
                                        {
                                            "Name": "ossbag_type",
                                            "Value": "storage"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}