检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
/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() {
Configuring a Network Defense Policy (for a VPC Network) For clusters using the VPC network model, you can configure network defense policies to limit the traffic that accesses the servers where containers are deployed.
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Installation and Configuration
Creating a Security Group Policy Function This API is used to create a security group policy (for the cloud native network model). Calling Method For details, see Calling APIs.
Updating a Security Group Policy Function This API is used to update a security group policy (for the cloud native network model). Calling Method For details, see Calling APIs.
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
None Example Requests This API is used to delete a security group policy (for the cloud native network model).
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
()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Query the dynamic WTP status of a server where target ID is caa958ad-a481-4d46-b51e-6861b8864515, start time
Container node list Table 5 ContainerNodeInfo Parameter Type Description agent_id String Agent ID host_id String Server ID host_name String Node name host_status String Server status.
String Server group ID host_id_list No Array of strings Host 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
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Management
/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() {
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
(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
Status Codes Status Code Description 200 Java application details of the protected server Error Codes See Error Codes. Parent Topic: Application Protection