Creates an interception target.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:CreateInterceptionTarget |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TargetName |
string |
Yes |
The name of the interception target. |
test |
| TargetType |
string |
Yes |
The target type. Valid value:
|
IMAGE |
| Namespace |
string |
Yes |
The namespace of the network object. |
default |
| AppName |
string |
No |
The application name of the network object. |
frontend |
| ImageList |
array |
No |
The images of the network object. |
|
|
string |
No |
The image details. |
jenkins-master:2.277 |
|
| TagList |
array |
No |
The labels of the network object. |
|
|
string |
No |
The tag details. |
app.kubernetes.io/instance:cas0-oms |
|
| ClusterId |
string |
No |
The cluster ID. |
cc20a1024011c44b6a8710d6f8b**** |
| ClusterName |
string |
No |
The cluster name. |
sas-test-cnnf |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Result |
boolean |
Indicates whether the interception target was created. |
true |
| RequestId |
string |
The request ID. |
5B9ECCC0-38F7-*** |
Examples
Success response
JSON format
{
"Result": true,
"RequestId": "5B9ECCC0-38F7-***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.