Partner CenterPartner Center

Compute
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Anti-DDoS
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Compass
Cloud Certificate Manager
Anti-DDoS Service
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB NoSQL
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
ServiceStage
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
Blockchain Service
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
DevCloud
ProjectMan
CodeHub
CloudRelease
CloudPipeline
CloudBuild
CloudDeploy
Cloud Communications
Message & SMS
Cloud Ecosystem
Marketplace
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
enterprise-collaboration
Meeting
IoT
IoT
Intelligent EdgeFabric
DeveloperTools
SDK Developer Guide
API Request Signing Guide
Terraform
HCloud CLI
Updated at: Apr 27, 2022 GMT+08:00

Renewing Subscription to Yearly/Monthly Resources

Function

When subscription to yearly/monthly resources of a customer is about to expire, the customer can renew the subscription to the resources.

This API will be brought offline. For details about the new API for renewing subscription to yearly/monthly resources, see Renewing Subscription to Yearly/Monthly Resources.

Web UI

Customers can manually renew subscription to yearly/monthly resources when the subscription is about to expire in the Billing Center.

  1. Go to the Renewals page.
  2. Set the search criteria.

    • Customers who have enabled enterprise project management can set the search criteria to filter an enterprise project and query its resources that are to be renewed.
    • You can click Set Renewal Date to set the expiration date of resources. For details, see Setting a Renewal Date.
    • Under the Manual Renewals, Auto Renewals, Pay-per-Use After Expiration, and Renewals Canceled tabs, you can query all resources to be renewed.
    • You can manually renew resources under the Manual Renewals, Auto Renewals, Pay-per-Use After Expiration, and Renewals Canceled tabs.

  3. All resources that need to be manually renewed can be moved to the Manual Renewals tab. For details, see Restoring to Manual Renewal.
  4. Renew resources separately or in batches.

    • Separate renewal: Click Renew in the Operation column for the desired resource.

    • Batch renewal: Select the check boxes for the desired resources, and click Renew in the upper left corner.

    • On the Renewals page, resources that have orders pending payment are hidden by default. You can unselect Do not show resources that have orders pending payment to show them.
    • When you renew a resource that has an order pending payment, the following message will be displayed: "The resource has an order pending payment. You can renew it only after you pay or cancel the order." You can click the order number in the dialog box to go to the order details page. After you pay or cancel the order, the resource becomes renewable.

  5. Select a renewal duration and click Pay.

  6. Select discounts and a payment option, and click Pay.

REST API

A customer can renew subscription to yearly/monthly resources on the partner sales platform.

  • This API can be invoked only by the customer AK/SK or token. This is because that partners cannot by products by themselves.
  • After you invoke this API, if a primary resource ID has an attached resource ID, the system will renew the subscription to both the primary resource and attached resource.
    • For example, ECS is the primary resource, and EVS is the attached resource.
    • If the shared bandwidth is used, the bandwidth is the primary resource, and EIPs are the attached resource.
    • If the exclusive bandwidth is used, EIPs are the primary resources, and the bandwidth is the attached resource.
  • This API supports automatic payment. Discounts can be used during automatic payment, but coupons cannot be used. For details about how to use discounts or coupons during payment, see Support for Discounts or Coupons.

  1. URI

    POST /v1.0/{domain_id}/common/order-mgr/resources/renew

    The following table describes the parameters.

    Table 1 URI parameter description

    Parameter

    Mandatory

    Value Range

    Description

    domain_id

    Yes

    A maximum 64 characters

    Customer account ID. For details about how to obtain the customer account ID, see How Do I Obtain Customer's customer_id and domain_id Values?.

  2. Request

    Request Parameters

    Parameter

    Mandatory

    Type

    Value Range

    Description

    resource_ids

    Yes

    List<String>

    A maximum 100 IDs

    Resource IDs.

    Only the primary resource ID is supported. A maximum of 100 resource IDs can be configured.

    To determine the primary resources, query is_main_resource in the response of the API described in Querying Customer's Yearly/Monthly Resources.

    period_type

    Yes

    Integer

    [2|3]

    Period type. The value can be:

    • 2: Month
    • 3: Year

    period_num

    Yes

    Integer

    [1-11]

    Number of periods.

    • Month: 1 to 11
    • Year: 1 to 3

    expire_mode

    Yes

    Integer

    [0-3]

    Expiration policy.

    • 0: Enter the grace period.
    • 1: Change billing mode to pay-per-use.
    • 2: Automatic unsubscription
    • 3: Automatic renewal

    isAutoPay

    No

    Integer

    [0-1]

    Whether enable automatic payment.

    • 0: No
    • 1: Yes

    If this parameter is left empty, default value 0 is used (automatic payment disabled).

    Example Request
    POST https://bss-intl.myhuaweicloud.com/v1.0/{domain_id}/common/order-mgr/resources/renew HTTP/1.1
    Content-Type: application/json
    X-Auth-Token: MIIPAgYJKoZIhvcNAQcCo...ggg1BBIINPXsidG9rZ
    
    {
      "resource_ids": ["53fe*****068b"],
      "period_type":2,
      "period_num":2,
      "expire_mode":0
    }

  1. Response

    Response Parameters

    Parameter

    Type

    Description

    error_code

    String

    Status code.

    For details, see 4.

    error_msg

    String

    Error description.

    order_ids

    List<String>

    List of order IDs generated when resource subscription is renewed.

    expiredResourceIds

    List<string>

    List of resources that cannot be renewed due to expiration.

    This parameter has a value only when the error code is 3016.

    Example Response

    HTTP/1.1 200 OK
    Content-Type: application/json;charset=UTF-8
    Content-Length: length
    Date: response time  
    
    {
        "error_code": "CBC.0000",
        "error_msg": "Success",
        "order_ids": ["xxxxxxxxxx"]
    }

  1. Returned Values
    • 4xx: This class of HTTP status code is intended for situations in which the error seems to have been caused by the client, for example, the request contains bad syntax or incorrect parameters. You must ensure the request is correct.
    • 5xx: This class of HTTP status code is intended for cases in which the Huawei Cloud server is aware that it has encountered an error or is otherwise incapable of performing the request. In this case, contact Huawei Cloud customer service.

    Returned Values

    Description

    CBC.0000

    Success.

    CBC.0100

    Invalid input parameter.

    CBC.0999

    Other errors.

    CBC.0151

    Access denied.

    CBC.3001

    The resource has expired.

    CBC.3002

    The resource has been locked.

    CBC.3004

    The resource has dependencies.

    CBC.3005

    The resource is being provisioned.

    CBC.3006

    Unsupported cloud service type.

    CBC.3638

    Subscription to bandwidth add-on packages cannot be renewed.

    CBC.7281

    You cannot renew or cancel subscription because your account has been frozen.

    CBC.3016

    Expired resources exist.

    CBC.3124

    Resources have been unsubscribed from.

    CBC.3144

    Resources have being unsubscribed from or changed.

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel