Yandex Cloud Marketplace License Manager, REST: Lock.list
Returns subscriptions locks for specified resource and folder.
HTTP request
GET https://marketplace.api.cloud.yandex.net/marketplace/license-manager/v1/locks
Query parameters
Parameter | Description |
---|---|
resourceId | Required. ID of the resource that the subscription locks belong to. |
folderId | Required. ID of the folder that the subscription locks belong to. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than Acceptable values are 0 to 1000, inclusive. |
pageToken | Page token. To get the next page of results, set The maximum string length in characters is 100. |
filter | A filter expression that filters subscription locks listed in the response. The expression must specify:
The maximum string length in characters is 1000. |
orderBy | Sorting order for the list of subscription locks. The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"locks": [
{
"id": "string",
"instanceId": "string",
"resourceId": "string",
"startTime": "string",
"endTime": "string",
"createdAt": "string",
"updatedAt": "string",
"state": "string",
"templateId": "string"
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
locks[] | object List of subscription locks. |
locks[]. id |
string ID of the subscription lock. |
locks[]. instanceId |
string ID of the subscription instance. |
locks[]. resourceId |
string ID of the resource. |
locks[]. startTime |
string (date-time) Timestamp of the start of the subscription lock. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
locks[]. endTime |
string (date-time) Timestamp of the end of the subscription lock. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
locks[]. createdAt |
string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
locks[]. updatedAt |
string (date-time) Update timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
locks[]. state |
string Subscription lock state.
|
locks[]. templateId |
string ID of the subscription template. |
nextPageToken | string Token for getting the next page of the list. If the number of results is greater than the specified pageSize, use Each subsequent page will have its own |