All Products
Search
Document Center

:ListExtensions

更新時間:May 16, 2024

Queries a list of extensions.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListExtensions

The operation that you want to perform. Set the value to ListExtensions.

PageNumber Integer No 1

The page number.

PageSize Integer No 10

The number of entries per page.

Response parameters

Parameter Type Example Description
RequestId String 0000-ABCD-EFG

Id of the request

PagingInfo Object

The pagination information.

PageNumber Integer 1

The page number.

PageSize Integer 10

The number of entries per page.

TotalCount Integer 12

The total number of entries returned.

Extensions Array of Extensions

The list of extensions.

Status Integer 0

The state of the extension. Valid values:

0: Testing

1: Publishing

3: Disabled

4: Processing

5: Approved

6: Approve Failed

ExtensionDesc String This is a description.

The description of the extension.

ExtensionName String Extension name

The name of the extension.

Owner String 2003****

The ID of the RAM user.

ExtensionCode String Extension code

The unique code of the extension.

BindEventList Array of BindEventList

The list of extension point events.

EventName String Pre-event for file committing

The name of the event.

EventCode String commit-file

The code of the event.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListExtensions
&PageNumber=1
&PageSize=10
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListExtensionsResponse>
    <RequestId>0000-ABCD-EFG</RequestId>
    <PagingInfo>
        <PageNumber>1</PageNumber>
        <PageSize>10</PageSize>
        <TotalCount>12</TotalCount>
        <Extensions>
            <Status>0</Status>
            <ExtensionDesc>This is a description.</ExtensionDesc>
            <ExtensionName>Extension name</ExtensionName>
            <Owner>2003****</Owner>
            <ExtensionCode>Extension code</ExtensionCode>
            <BindEventList>
                <EventName>Pre-event for file committing</EventName>
                <EventCode>commit-file</EventCode>
            </BindEventList>
        </Extensions>
    </PagingInfo>
</ListExtensionsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "0000-ABCD-EFG",
  "PagingInfo" : {
    "PageNumber" : 1,
    "PageSize" : 10,
    "TotalCount" : 12,
    "Extensions" : [ {
      "Status" : 0,
      "ExtensionDesc" : "This is a description.",
      "ExtensionName" : "Extension name",
      "Owner" : "2003****",
      "ExtensionCode" : "Extension code",
      "BindEventList" : [ {
        "EventName" : "Pre-event for file committing",
        "EventCode" : "commit-file"
      } ]
    } ]
  }
}

Error codes

For a list of error codes, see Service error codes.