Consulte le prix d'un plan, y compris son type et son état.
Description de l'opération
La période d'achat est exprimée en mois.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
esa:DescribeRatePlanPrice |
create |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| Period |
integer |
Non |
La durée d'achat, en mois. |
1 |
| PlanName |
string |
Non |
Le nom du plan. |
basic |
| Amount |
integer |
Non |
Le nombre de plans. |
1 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Le corps de la réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
50423A7F-A83D-1E24-B80E-86DD25790759 |
| PriceModel |
object |
Les informations de tarification. |
|
| RatePlan |
object |
||
| PlanPriceList |
array<object> |
The price information of the plan. |
|
|
object |
|||
| PlanName |
string |
The name of the plan. |
basic |
| PlanType |
string |
The type of the plan. Valid values:
|
normal |
| PlanStatus |
string |
The status of the plan. Valid values:
|
unsaled |
| Currency |
string |
The currency. Valid values:
|
CNY |
| TotalPrice |
number |
The original price of the order. The value is the sum of the transaction price and the discount amount. |
2 |
| DiscountPrice |
number |
The discount amount for the order. |
1 |
| Price |
number |
The final price of the order. |
1 |
| Coverages |
string |
The acceleration regions that are supported by the plan. |
overseas,global,domestic |
| Position |
integer |
The priority of the plan. |
1 |
| ChargeType |
string |
The billing method. Valid values:
|
PREPAY |
| PlanTraffic |
string |
The capacity of the plan. |
1000 |
| EdgeCompute |
string |
Edge computing. |
er_on |
| EdgeWaf |
string |
Edge WAF. |
waf_off |
| DcdnPlan |
string |
The edition of the plan. |
basicplan |
| AccelerateType |
string |
The acceleration type. |
smartrouting_off |
| EdgeDdos7Layer |
string |
Layer 7 edge DDoS. |
ddos_off |
| Layer4Traffic |
string |
The capacity for Layer 4 acceleration. |
1000 |
| EdgeDdos4Layer |
string |
Layer 4 edge DDoS. |
ddos_off |
| CrossborderTraffic |
string |
China network optimization. |
1000 |
| EdgeLb7Layer |
string |
Layer 7 load balancing. |
lb_off |
| EdgeLb4Layer |
string |
Layer 4 load balancing. |
lb_off |
| Layer4TrafficIntl |
string |
The capacity for Layer 4 acceleration outside the Chinese mainland. |
1000 |
| EdgeDdos4LayerIntl |
string |
Layer 4 edge DDoS outside the Chinese mainland. |
ddos_off |
| EdgeLb4LayerIntl |
string |
Layer 4 load balancing outside the Chinese mainland. |
lb_off |
| EdgeDdosInstanceCn |
string |
The DDoS instance in the Chinese mainland. |
cn_300 |
| EdgeDdosInstanceIntl |
string |
The DDoS instance outside the Chinese mainland. |
overseas_300 |
| EdgeWafInstance |
string |
The WAF instance. |
enterprise_bot |
| Rule |
object |
||
| RuleList |
array<object> |
The matched policy. |
|
|
object |
|||
| Name |
string |
The name of the policy. |
Policy A |
| RuleDescId |
integer |
The ID of the policy. |
1 |
Exemples
JSON format
{
"RequestId": "50423A7F-A83D-1E24-B80E-86DD25790759",
"PriceModel": {
"RatePlan": {
"PlanPriceList": [
{
"PlanName": "basic",
"PlanType": "normal",
"PlanStatus": "unsaled",
"Currency": "CNY",
"TotalPrice": 2,
"DiscountPrice": 1,
"Price": 1,
"Coverages": "overseas,global,domestic",
"Position": 1,
"ChargeType": "PREPAY",
"PlanTraffic": "1000",
"EdgeCompute": "er_on",
"EdgeWaf": "waf_off",
"DcdnPlan": "basicplan",
"AccelerateType": "smartrouting_off",
"EdgeDdos7Layer": "ddos_off",
"Layer4Traffic": "1000",
"EdgeDdos4Layer": "ddos_off",
"CrossborderTraffic": "1000",
"EdgeLb7Layer": "lb_off",
"EdgeLb4Layer": "lb_off",
"Layer4TrafficIntl": "1000",
"EdgeDdos4LayerIntl": "ddos_off",
"EdgeLb4LayerIntl": "lb_off",
"EdgeDdosInstanceCn": "cn_300",
"EdgeDdosInstanceIntl": "overseas_300",
"EdgeWafInstance": "enterprise_bot"
}
]
},
"Rule": {
"RuleList": [
{
"Name": "Policy A",
"RuleDescId": 1
}
]
}
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InternalError | An internal exception occurred, please try again later. | An inner exception was triggered. Please try again later. |
| 400 | CheckPlanFailed | Invalid plan name or code. Check and try again. | Invalid plan name or code. Check and try again. |
| 400 | InvalidSiteICP | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. |
| 400 | InvalidSiteName | Invalid website name. Check and try again. | Invalid website name. Check and try again. |
| 400 | SYSTEM.NoSpecificCodeFailed | Invalid subscription duration. Check and try again. | Invalid subscription duration. Check and try again. |
| 400 | InvalidInstance | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. |
| 400 | InvalidComponent | The order parameters is invalid. | The order parameters is invalid. |
| 400 | EnterpriseAmountErr | Enterprise plans do not support bulk purchase. | Enterprise plans do not support bulk purchase. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.