Converts a Deployment resource into an application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageCluster |
get |
*Cluster
|
None | None |
Request syntax
POST /pop/v5/oam/k8s_resource_convert HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Only deployment is supported. |
deployment |
| ResourceName |
string |
Yes |
The name of the resource. |
deployment-to-convert |
| Namespace |
string |
Yes |
The namespace. |
default |
| ClusterId |
string |
Yes |
The ID of the cluster. For more information, see ListCluster. |
b07c8192-****-adf4f7447720 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Code |
integer |
The status code. |
200 |
| Message |
string |
The returned message. |
convert success |
| RequestId |
string |
The ID of the request. |
BA938591-*********-9690-BFD3F4DD7A93 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "convert success",
"RequestId": "BA938591-*********-9690-BFD3F4DD7A93"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.