All Products
Search
Document Center

ListApiGatewayApps

Last Updated: Sep 25, 2018

Description

You can call this operation to query the gateway application that is associated with the specified project. Currently, only one gateway application can be associated with the specified project.

Request parameters

Parameter Type Required Example Description
ProjectId String Yes 11

The ID of the IoV CC project.

Response parameters

Parameter Type Example Description
RequestId String 9CC2A1F1-DAE4-47DA-A682-240AF2DEED84

The GUID that is generated by Alibaba Cloud for the request. You can use the RequestId parameter to locate issues that occur in this call.

ApiGatewayApps

The gateway application information object that is returned in the query.

  └Id Long 8

The ID of the primary key.

  └ProjectId String 11

The ID of the IoV CC project.

  └UserId String 1768723179523459

The ID of the user that the specified gateway application belongs to.

  └Status Integer 0

The status of the specified gateway application. Valid values: 0: enabled, and 1: disabled.

  └GmtCreate Long 1508400744000

The time when the specified gateway application was created.

  └GmtModified Long 1525340035000

The time when the specified gateway application was last modified.

  └GatewayAppKey String 24659924

The GUID of the specified gateway application.

  └GatewayAppSecret String a**1

The AppSecret of the specified gateway application. The API does not return the complete AppSecret, and only displays the leading and trailing characters.

  └GatewayAppId String 1111111

The AppId of the specified gateway application.

Examples

Sample requests

https://iovcc.cn-shanghai.aliyuncs.com/?Action=ListApiGatewayApps
&ProjectId=11
&<Common request parameters>

Successful response examples

JSON format

{
    "ApiGatewayApps":[{
        "GatewayAppId":"1111111",
        "GatewayAppKey":"24659924",
        "GatewayAppSecret":"a******1",
        "GmtCreate":1508400744000,
        "GmtModified":1525340035000,
        "Id":8,
        "ProjectId":"11",
        "Status":0,
        "UserId":"1768723179523459"
    }],
    "RequestId":"9CC2A1F1-DAE4-47DA-A682-240AF2DEED84"
}

Error response examples

JSON format

{
    "Code":"NotFoundProject",
    "HostId":"iovcc.cn-shanghai.aliyuncs.com",
    "Message":"Cannot find the specified project",
    "RequestId":"6F25F67C-F411-499F-BCE2-67CA563CB064"
}

Error codes

View error codes.