Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Querying Subscription Information

Updated on 2023-09-27 GMT+08:00

Description

This interface is invoked by the business software mall to query business software mall subscription information stored on the OMA. (Currently, this interface is provided for the business software mall official website for trial use.)

Method

POST

URI

https://Domain name/rest/oma/softwareconsole/tenant/queryresource (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request header parameter

No.

Parameter

Type

Mandatory or Not

Description

1

X-Auth-Token

String

Yes

Value of access-token of a business software mall user

Request parameters

No.

Parameter

Type

Mandatory or Not

Description

1

limit

Integer

Yes

Number of records on each page. The value must be less than 100.

2

offset

Integer

Yes

Offset. The value must be greater than or equal to 0.

3

startDate

Long

No

Subscription start timestamp

4

endDate

Long

No

Subscription end timestamp

Response Description

  • Status code: 200
Table 2 Response body parameters

No.

Parameter

Type

Mandatory or Not

Description

1

result

Object []

Yes

Result

1.1

orderId

String

Yes

Order ID

1.2

opType

String

Yes

Type

1.3

remark

String

Yes

Remarks

1.4

skuName

String

Yes

Product type

1.5

modifyTime

String

Yes

Modification time

1.6

orderAmount

String

Yes

Order amount

1.7

procutName

String

Yes

Charging mode

1.8

vdnId

String

Yes

VDN ID

1.9

customerId

String

Yes

Customer ID

1.10

company

String

Yes

Company

1.11

id

String

Yes

ID

1.12

manualStatus

String

Yes

Processing status

1.13

cecTenantId

String

Yes

CEC tenant ID

1.14

amount

String

Yes

Number of subscriptions

1.15

periodNumber

String

Yes

Number of subscription periods

1.16

productId

String

Yes

Charging mode code

1.17

autoStatus

String

Yes

Automatic processing status

1.18

customerName

String

Yes

Customer name

1.19

cecExpireTime

String

Yes

Expiration time manually calculated

1.20

cecTenantName

String

Yes

CEC tenant name

1.21

createSource

String

Yes

Source

1.22

periodType

String

Yes

Subscription unit

1.23

expireTime

String

Yes

Expiration time

1.24

createTime

String

Yes

Subscription time

1.25

skuCode

String

Yes

SKU code

1.26

cecFeatureType

String

Yes

Feature type

1.27

trialFlag

Integer

Yes

Trial use or not

1.28

retryTimes

String

Yes

Maximum number of retry times

1.29

status

String

Yes

Order instance status

  • 2: effective
  • 8: expired
  • 9: historical

2

count

String

Yes

Total number of records

3

returnCode

String

Yes

Returned response code

4

description

String

Yes

Description

  • Status code: 401
Table 3 Response body parameter

No.

Parameter

Type

Mandatory or Not

Description

1

schema

String

Yes

Unauthorized operation. 1. Check whether you have purchased services related to the AICC. 2. Sign in to the AICC as the system administrator and check whether the value of Business Software Mall Official Website under System parameters > Unified Public Configuration > Cloud Customers is correct. 3. Check whether the request header parameter is correctly set.

  • Response status code: 502
Table 4 Response body parameter

No.

Parameter

Type

Mandatory or Not

Description

1

schema

String

Yes

Business failure

Example

  • Scenario: The business software mall invokes this interface to query subscription information.
    URL: /rest/oma/softwareconsole/tenant/queryresource
  • Request header
    {
        "X-Auth_Token":"0000000000srLl4pnoBc*************9DvgIB87KzYpxMdE9+vvzLZqYIw="
    }
  • Request body
    {
    "limit":"10",   
    "offset":"0",
    "startDate":1679558854000,
    "endDate":1679558854001
    }
  • Response header
    {
        "connection": "keep-alive", 
        "Content-Length": "16", 
        "Content-Type": "application/json%3Bcharset=UTF-8"
    }
  • Response body
    {
    "result": [{
    		"orderId": "251679538126441114",
    		"opType": "newInstance",
    		"remark": null,
    		"skuName": "telemarketing agent",
    		"modifyTime": 1679558854000,
    		"orderAmount": "36000",
    		"procutName": "monthly",
    		"vdnId": "131",
    		"customerId": "20220727032236821699",
    		"company": "ttttttttttttt",
    		"id": "1638814724192780290",
    		"manualStatus": "0",
    		"cecTenantId": "202303232614",
    		"amount": "1",
    		"periodNumber": "2",
    		"productId": "0GbV000000wG80TFeSlU",
    		"autoStatus": "2",
    		"customerName": "zhangsan",
    		"cecExpireTime": 1684829253000,
    		"cecTenantName": "Tenant07323220",
    		"createSource": "GTS",
    		"periodType": "month",
    		"expireTime": 1684722289000,
    		"createTime": 1679558853000,
    		"skuCode": "d52b28fa-e0a7-a8f7-8356-0f0aea54b862"
    	}],
    	"count": 1,
    	"returnCode": "0",
    	"description": "success"
    }

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback