Help Center/ Cognitive Engagement Center/ API Reference/ OMA Interface Reference/ Business Software Mall Connection Interfaces/ Querying Basic Trial Tenant Information by the Business Software Mall
Updated on 2023-09-27 GMT+08:00

Querying Basic Trial Tenant Information by the Business Software Mall

Description

This interface is invoked to query basic trial tenant information. It is open to the business software mall official website.

Method

GET

URI

https://Domain name/rest/oma/softwareconsole/trialtenant/querytenantinfo (For example, the domain name is software.huawei.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

Response Description

  • Status code: 200
    Table 2 Response body parameters

    No.

    Parameter

    Type

    Mandatory or Not

    Description

    1

    createDate

    Number

    Yes

    Creation time

    2

    expiryDate

    Number

    Yes

    Expiration time

    3

    company

    String

    Yes

    Customer company name, which has been masked

    4

    customerName

    String

    Yes

    Contact name, which has been masked

    5

    email

    String

    Yes

    Email address, which has been masked

    6

    mobilePhone

    String

    Yes

    Customer mobile number, which has been masked

    7

    tenantSpaceStatus

    String

    Yes

    Tenant space status

    8

    portalUrl

    String

    Yes

    URL for signing in to the AICC

  • Status code: 400

    Incorrect request. Check the request path and parameters.

  • Status code: 401

    Unauthorized operation. Check whether related services are authorized.

  • Status code: 404

    The requested content is not found. Check the request path.

  • Status code: 500

    Business failure. Check the values of parameters in the request.

Error Codes

None

Example

Request header:

{
"X-Auth-Token": "************"
}

Response parameters:

{
    "expiryDate": 1684650886000,
    "mobilePhone": "132****7077",
    "portalUrl": "https://software.huawei.com/auth?client_id=xxxxx&redirect_uri=https://xxx.com/service-cloud/sm/login/portal.html",
    "company": "xxx",
    "tenantSpaceStatus": "5",
    "customerName": "xxx",
    "email": "wanf****@huawei.com",
    "createDate": 1681203525000
}