Help Center/ CodeArts Artifact/ API Reference/ API/ Querying Packages (Release Repos)/ Obtaining Package Status of the Current User
Updated on 2025-09-08 GMT+08:00

Obtaining Package Status of the Current User

Function

Obtains package status of the current user.

Calling Method

For details, see Calling APIs.

URI

GET /devreposerver/v5/data/package/info

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

project_id

No

String

Project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Definition:

Request status.

Value range:

success: The request is successful.

error: The request fails.

trace_id

String

Definition:

Request ID, which uniquely identifies the current request.

Value range:

A string of digits and hyphens (-).

result

Object

Definition:

The API response varies depending on the request.

Value range:

The value range varies according to the API.

Example Requests

https://localhost.com/devreposerver/v5/data/package/info?project_id=666666af0f00445f85dec483fbc97c78

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "76629-1718767405716-27335",
  "result" : {
    "codeartsStorageExtension" : {
      "resourceId" : "7590809a5c9d42ae92b49b1190e94666",
      "serviceType" : "hws.resource.type.codearts.extension.storage",
      "packageStatus" : 2,
      "remainDays" : 11,
      "nextActionUrl" : "https://localhost.com/usercenter/?region=region&locale=zh-cn#/renewal?subscriptionId=01154-618666699-0&orderId=CS24066664337FWPY&isFrom=expense"
    },
    "codeartsTrafficExtension" : {
      "resourceId" : "37c9064954924750b2350e2d03e66666",
      "serviceType" : "hws.resource.type.codearts.extension.flow",
      "packageStatus" : 2,
      "remainDays" : 11,
      "nextActionUrl" : "https://localhost.com/usercenter/?region=region&locale=zh-cn#/renewal?subscriptionId=01154-618366663-0&orderId=CS24052666637LJS1&isFrom=expense"
    }
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.