Generate K8s cluster scan access configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GenerateClusterScannerWebhookYaml |
create |
*ClusterScannerYaml
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances API to obtain this parameter from the ClusterId field. |
c3aaf6c8085f84791882eef200cd2**** |
| WebhookOpen |
integer |
No |
Indicates whether the incremental scan switch is enabled. Values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the current request, which is a unique identifier generated by Alibaba Cloud for this request and can be used for troubleshooting and problem localization. |
BE120DAB-F4E7-4C53-ADC3-A97578ABF384 |
| ClusterId |
string |
The ID of the container cluster. |
c471f0f61b9c04f8380556e922cf1**** |
| Id |
integer |
Unique identifier. |
131231 |
| WebhookOpen |
integer |
Indicates whether the incremental scan switch is enabled. |
1 |
Examples
Success response
JSON format
{
"RequestId": "BE120DAB-F4E7-4C53-ADC3-A97578ABF384",
"ClusterId": "c471f0f61b9c04f8380556e922cf1****",
"Id": 131231,
"WebhookOpen": 1
}
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.