检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Asset Management - Overview - Asset Status - Container Node Protection Status Function Asset Management - Overview - Asset Status - Container Node Protection Status Calling Method For details, see Calling APIs.
e) { e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Export the report of
Related Operations Modifying or deleting a network defense policy (Optional) If you have enabled the enterprise project, select the enterprise project where the target server resides from the drop-down list.
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Installation and Configuration
(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Obtain cluster node tags. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 # coding
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Management
host_name String Server name host_id String Server ID change_total_num Integer Total changes change_file_num Integer Changed files change_registry_num Integer New registries latest_time Long Last modified Example Requests None Example Responses Status code: 200 Request succeeded.
Yes Array of strings Server ID list Response Parameters Status code: 200 Request succeeded.
Default Value N/A Table 4 Request body parameters Parameter Mandatory Type Description host_id_list Yes Array of strings Server ID list. Response Parameters Status code: 200 Request succeeded.
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Management
Range The value can contain 0 to 128 characters. host_name String Definition Node name. Range The value can contain 0 to 128 characters. host_status String Definition Server status.
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Management
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Management
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Management
/hss/v5/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/region" ) func main() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
version os_version String OS version security_group String Security group server_id String Server ID. server_type String Server type Example Requests Grants permission to query the node list of the VPC of a container cluster.
Default Value N/A Response Parameters Status code: 200 Table 4 Response body parameters Parameter Type Description unprotected_num Integer Number of unprotected servers protected_num Integer Enabling a protection node protected_num_on_demand Integer Enabling protection nodes as required
/huaweicloud-sdk-go-v3/core/auth/basic" hss "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/region" ) func main() {
/huaweicloud-sdk-go-v3/core/auth/basic" hss "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/region" ) func main() {
(Optional) If your kube-apiserver runs as a pod, perform the following steps to persist logs on the server: Locate the volumeMounts field in kube-apiserver.yaml and configure volume mounting as follows: 1 2 3 4 5 6 7 volumeMounts: - mountPath: /etc/kubernetes/audit-policy.yaml