检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
An IP CIDR block consists of an IP address and a mask, which are separated by a slash (/). total_num Integer Total number of server IDs host_id_list Array of strings Server ID list Example Requests None Example Responses Status code: 200 Request succeeded. { "total_num" : 1, "
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).
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
Range Low Medium High check_type String Definition Configuration check (baseline) type, for example, SSH, CentOS 7, Windows Server 2019 R2, Windows Server 2016 R2, and MySQL5-Windows.
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
/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() {
Parameter Type Description host_id String Server ID host_name String Server name host_public_ip String Server EIP host_private_ip String Server private IP address check_type String Baseline type.
Range N/A Table 5 PwdPolicyInfoResponseInfo Parameter Type Description host_id String Definition Server ID. Range N/A host_name String Definition Server name. Range N/A host_ip String Definition Server IP address (private IP address).
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
Status Codes Status Code Description 200 Request succeeded. Error Codes See Error Codes. Parent Topic: Server Installation and Configuration
Default Value N/A Response Parameters Status code: 200 Table 4 Response body parameters Parameter Type Description total_num Integer Total data_list Array of WebSiteHostInfo objects Server list Table 5 WebSiteHostInfo Parameter Type Description agent_id String agent_id host_id String
/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() { // The AK and SK used for authentication are hard-coded or stored in
Default Value N/A host_id Yes String Definition Server ID. Only Linux servers are supported. For this parameter to be valid, the server must have WTP enabled, or the WTP policy is not deleted after WTP is disabled.
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
Default Value N/A Response Parameters Status code: 200 Table 4 Response body parameters Parameter Type Description total_num Integer Total data_list Array of OperationLogInfo objects list Table 5 OperationLogInfo Parameter Type Description host_id String Server ID host_name String
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
The options are as follows: host_name: server name host_id: server ID public_ip: EIP private_ip: private IP address vpc_id: VPC ID cluster_id: cluster ID host_tags: server tag Request Parameters None Response Parameters Status code: 200 Table 3 Response body parameters Parameter Type
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := hss.NewHssClient( hss.HssClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).