Cloud Apps Workload API, REST: CloudApplication.ResolveByWorkload
Статья создана
Обновлена 26 ноября 2024 г.
Resolve Cloud Application by workload
HTTP request
POST https://cloudapps.api.cloud.yandex.net/cloudapps/workload/v1/cloud-applications:resolve-by-workload
Body parameters
{
"workloadType": "string",
"workloadId": "string"
}
Field |
Description |
workloadType |
enum (WorkloadType) Required field. Type of workload. See WorkloadType.
|
workloadId |
string Required field. Identifier of workload |
Response
HTTP Code: 200 - OK
{
"cloudApplication": {
"id": "string",
"status": "string",
"billing": {
"type": "string",
"subscriptions": [
{
"instanceId": "string",
"templateId": "string"
}
]
}
}
}
Field |
Description |
cloudApplication |
Details of cloud application |
CloudApplication
Field |
Description |
id |
string Required field. Application Identifier |
status |
enum (Status) Required field. Application Status
|
billing |
Required field. Application billing info |
Billing
Field |
Description |
type |
enum (BillingType) Required field. Type of application billing
|
subscriptions[] |
Subscriptions bounded to cloud application |
Subscription
Field |
Description |
instanceId |
string Required field. Identifier of subscription instance |
templateId |
string Required field. Subscription template identifier |