Yandex Cloud Marketplace License Manager, REST: Lock.getByInstanceAndResource
Returns the subscription lock for specified subscription instance and resource.
HTTP request
GET https://marketplace.api.cloud.yandex.net/marketplace/license-manager/v1/locks:getByInstanceAndResource
Query parameters
Parameter | Description |
---|---|
instanceId | Required. ID of the subscription instance. |
resourceId | Required. ID of the resource to which the subscription will be locked. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"instanceId": "string",
"resourceId": "string",
"startTime": "string",
"endTime": "string",
"createdAt": "string",
"updatedAt": "string",
"state": "string",
"templateId": "string"
}
Field | Description |
---|---|
id | string ID of the subscription lock. |
instanceId | string ID of the subscription instance. |
resourceId | string ID of the resource. |
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). |
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). |
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). |
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). |
state | string Subscription lock state.
|
templateId | string ID of the subscription template. |