云服务器内容精选

  • 防护的主机切换操作系统,HSS配额会发生变化吗? 不会变化。在切换主机操作系统前,请您先确认主机安全服务的Agent是否支持待切换的操作系统。不支持的操作系统,与Agent可能存在兼容性问题,建议您重装或者选择为Agent支持的操作系统版本,以便获得主机安全服务更好的服务体验。 主机安全服务的Agent可运行在CentOS、EulerOS等Linux系统以及Windows 2012、Windows 2016等Windows系统的主机上。 已停止服务的Linux系统版本或者Windows系统版本,与Agent可能存在兼容性问题,建议重装或者升级为Agent支持的操作系统版本,以便获得主机安全服务更好的服务体验。 表1 Agent支持的操作系统 操作系统类型 系统架构 Agent支持的操作系统版本 该操作系统的漏洞扫描支持情况 (√表示支持,×表示不支持) Windows X86 Windows 10(64位) 说明: 仅支持华为云云桌面使用该操作系统。 × Windows 11(64位) 说明: 仅支持华为云云桌面使用该操作系统。 × Windows Server 2012 R2 标准版 64位英文(40GB) √ Windows Server 2012 R2 标准版 64位简体中文(40GB) √ Windows Server 2012 R2 数据中心版 64位英文(40GB) √ Windows Server 2012 R2 数据中心版 64位简体中文(40GB) √ Windows Server 2016 标准版 64位英文(40GB) √ Windows Server 2016 标准版 64位简体中文(40GB) √ Windows Server 2016 数据中心版 64位英文(40GB) √ Windows Server 2016 数据中心版 64位简体中文(40GB) √ Windows Server 2019 数据中心版 64位英文(40GB) √ Windows Server 2019 数据中心版 64位简体中文(40GB) √ Linux X86 CentOS 7.4(64位) √ CentOS 7.5(64位) √ CentOS 7.6(64位) √ CentOS 7.7(64位) √ CentOS 7.8(64位) √ CentOS 7.9(64位) √ CentOS 8.1(64位) × CentOS 8.2(64位) × CentOS 8(64位) × CentOS 9(64位) × Debian 9(64位) √ Debian 10(64位) √ Debian 11.0.0(64位) √ Debian 11.1.0(64位) √ EulerOS 2.2(64位) √ EulerOS 2.3(64位) √ EulerOS 2.5(64位) √ EulerOS 2.7(64位) × EulerOS 2.9(64位) √ Fedora 28(64位) × Ubuntu 16.04(64位) √ Ubuntu 18.04(64位) √ Ubuntu 20.04(64位) √ Ubuntu 22.04(64位) √ Red Hat 7.4(64位) × Red Hat 7.6(64位) × Red Hat 8.0(64位) × Red Hat 8.7(64位) × OpenEuler 20.03 LTS(64位) × OpenEuler 22.03 SP3(64位) × OpenEuler 22.03(64位) × AlmaLinux 8.4(64位) √ AlmaLinux 9.0(64位) × RockyLinux 8.4(64位) × RockyLinux 8.5(64位) × RockyLinux 9.0(64位) × HCE 1.1(64位) √ HCE 2.0(64位) √ SUSE 12 SP5(64位) √ SUSE 15(64位) × SUSE 15 SP1(64位) √ SUSE 15 SP2(64位) √ SUSE 15 SP3(64位) × SUSE 15.5(64位) × Kylin V10(64位) √ ARM CentOS 7.4(64位) √ CentOS 7.5(64位) √ CentOS 7.6(64位) √ CentOS 7.7(64位) √ CentOS 7.8(64位) √ CentOS 7.9(64位) √ CentOS 8.0(64位) × CentOS 8.1(64位) × CentOS 8.2(64位) × CentOS 9(64位) × EulerOS 2.8(64位) √ EulerOS 2.9(64位) √ Fedora 29(64位) × Ubuntu 18(64位) × Kylin V7(64位) × Kylin V10(64位) √ HCE 2.0(64位) √ 统信UOS V20(64位) √(统信UOS V20服务器E版、D版) 父主题: 配额问题
  • 请求示例 修改企业项目配额,实例的配额设置为1000个,CPU配额100000核数,内存配额200000GB,存储空间配额1000000GB。 PUT https://gaussdb-opengauss.cn-north-4.myhuaweicloud.com/v3/054b61972980d4552f0bc00ac8d3f5cd/enterprise-projects/quotas { "eps_quotas": [ { "enterprise_projects_id": "0", "instance_quota": 1000, "vcpus_quota": 100000, "ram_quota": 200000, "volume_quota": 1000000 } ] }
  • 请求参数 表2 参数说明 名称 是否必选 参数类型 说明 eps_quotas 是 Array of objects 需要修改的企业配额列表。 表3。 表3 EpsQuotasOption参数说明 名称 是否必选 参数类型 说明 enterprise_projects_id 是 String 企业项目ID。 instance_quota 否 Integer 实例的配额。取值范围:实际创建的实例个数 ~ 100,000。 vcpus_quota 否 Integer CPU的配额。取值范围:实际使用的CPU核数 ~ 2,147,483,646。 ram_quota 否 Integer 内存的配额。单位GB。取值范围:实际使用的内存 ~ 2,147,483,646。 volume_quota 否 Integer 存储空间的配额。单位:GB。取值范围:实际使用的存储空间 ~ 2,147,483,646。
  • 购买了主机安全服务版本为什么没有生效? 购买了主机安全服务版本后您还需要做以下操作才可为目标主机开启防护: 安装Agent:为目标主机安装Agent,安装后可实现HSS对数据的监测以及告警的上报,如果已安装可忽略此步骤,安装Agent操作详情请参见安装Agent。 绑定配额:将购买的版本配额绑定至需要防护的服务器,绑定后目标服务器才会开启对应版本支持的防护能力,绑定配额开启主机防护操作详情请参见开启主机安全防护,开启容器安全防护操作详情请参见开启器防护。 开启防护后建议开启告警通知确保在发现告警的第一时间收到通知,同时对服务器进行安全配置,进一步提升服务器的安全性。 父主题: 配额问题
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 status_v6 String 支持IPv6云堡垒机实例规格资源状态。 sellout:售罄 normal:正常商用 status String 云堡垒机实例规格资源状态。 sellout:售罄 normal:正常商用 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_description String 请求参数错误。 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_description String 校验TOKEN失败。 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_description String 租户无权限操作。 状态码: 404 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_description String 没有找到CBH资源。
  • URI GET /v2/{project_id}/cbs/instance/ecs-quota 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID。 获取方法详见API参考,附录获取项目ID。 表2 Query参数 参数 是否必选 参数类型 描述 availability_zone 是 String 可用分区名称。 可参考地区和终端节点获取 resource_spec_code 是 String 待创建云堡垒机规格ID,例如: cbh.basic.10 10资产标准版 cbh.enhance.10 10资产专业版 已上线的规格详情请参见《云堡垒机常见问题》的购买,云堡垒机实例有哪些规格章节。
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 quotas QuotaResources object 资源配额详情列表 表4 QuotaResources 参数 参数类型 描述 resources Array of QuotaDetail objects 资源配额列表 表5 QuotaDetail 参数 参数类型 描述 type String 资源类型 取值范围: edge_site:边缘小站 compute_device:计算设备 quota Integer 资源的总配额 约束:资源的默认配额数可以修改,默认配置:边缘小站(10) used Integer 已创建的资源个数 取值范围:0~quota值
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 quotas Array of QuotaRsp objects 配额信息列表 count Integer 配额列表个数 表4 QuotaRsp 参数 参数类型 描述 name String 配额项名称,支持USER,PROJECT,USER_PROJECT,STORAGE,PROJECT_APP,PROJECT_NOTEBOOK,PROJECT_WORKFLOW,PROJECT_IMAGE total Integer 配额 unit String 配额项单位 usage Integer 配额使用量
  • 返回值 正常 200 异常 返回值 说明 400 Bad Request 请求错误。 401 Unauthorized 未提供认证信息,或认证信息错误。 403 Forbidden 请求页面被禁止访问。 408 Request Timeout 请求超出了服务器的等待时间。 429 Too Many Requests 当前请求过多。 500 Internal Server Error 请求未完成,服务异常。 503 Service Unavailable 系统暂时不可用,请求受限。
  • 响应消息 响应参数 表2 响应参数 名称 参数类型 说明 quotas Object 配额列表。 详细参数请参见表3。 表3 quotas字段数据结构说明 名称 参数类型 说明 resources Array of objects 资源配额列表。 详细参数请参见表4。 表4 resources字段数据结构说明 名称 参数类型 说明 type String 配额类型,枚举值。 alarm:告警规则。 used Integer 已使用配额数。 unit String 单位。 quota Integer 配额总数。 响应样例 { "quotas": { "resources": [ { "unit":"", "type":"alarm", "quota":1000, "used":10 } ] } }
  • 响应消息 响应参数 返回状态码为 200: 查询成功。 表2 响应Body参数列表 名称 类型 描述 quotas Quotas object quotas对象。 request_id String 请求ID。 表3 Quotas 名称 类型 描述 resources Array of QuotaInfo objects resources对象。 表4 QuotaInfo 名称 类型 描述 type String 功能说明:根据type过滤查询指定类型的配额。 取值范围: customer_gateway 对端网关。 vpn_connection 企业版VPN连接。 vpn_gateway 企业版VPN网关。 quota Integer 配额上限。 used Integer 已使用数。 响应样例 { "quotas": { "resources": [ { "type": "customer_gateway", "quota": 100, "used": 13 }, { "type": "vpn_connection", "quota": 5000, "used": 306 }, { "type": "vpn_gateway", "quota": 50, "used": 23 }, { "type": "vpngw", "quota": 5, "used": 4 }, { "type": "vpn", "quota": 30, "used": 4 } ] }, "request_id": "9aeb7f73-e1b6-42eb-96ad-b68aef8186e3" }
  • 响应示例 状态码: 200 OK { "quotas" : [ { "quota_limit" : 2000, "type" : "file_refresh", "used" : 0, "user_domain_id" : "0b672************************ae0" }, { "quota_limit" : 2000, "type" : "dir_refresh", "used" : 0, "user_domain_id" : "0b672************************ae0" }, { "quota_limit" : 1000, "type" : "preheat", "used" : 0, "user_domain_id" : "0b672************************ae0" }, { "quota_limit" : 100, "type" : "domain", "used" : 4, "user_domain_id" : "0b672************************ae0" } ] }
  • 响应示例 状态码: 400 Bad Request { "error_code" : "common.01000001", "error_msg" : "failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed' } 状态码: 403 Forbidden { "error" : { "code" : "403", "message" : "X-Auth-Token is invalid in the request", "error_code" : null, "error_msg" : null, "title" : "Forbidden" }, "error_code" : "403", "error_msg" : "X-Auth-Token is invalid in the request", "title" : "Forbidden" } 状态码: 404 Not Found { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 408 Request Timeout { "error_code" : "common.00000408", "error_msg" : "timeout exception occurred" } 状态码: 500 Internal Server Error { "error_code" : "common.00000500", "error_msg" : "internal error" }
  • 响应参数 状态码: 200 表3 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,定位辅助信息。 状态码: 404 表4 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误描述。 common_error_code String CBC公共错误码。 solution_msg String 解决方案描述。 状态码: 500 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误描述。 common_error_code String CBC公共错误码。 solution_msg String 解决方案描述。
  • 什么是配额? 为防止资源滥用,平台限定了各服务资源的配额,对用户的资源数量和容量做了限制。CDN对用户添加的加速域名数量、URL刷新条数、目录刷新条数、URL预热条数做了如表1所示的限制。 表1 配额一览表 类别 描述 总配额 域名数 每个账号最多支持添加的加速域名数量。 100 URL刷新条数/天 每个账号每天最多支持的URL缓存刷新条数。 2000 目录刷新条数/天 每个账号每天最多支持的目录缓存刷新条数。 100 URL预热条数/天 每个账号每天最多支持的URL缓存预热条数。 1000 如果当前资源配额限制无法满足使用需要,您可以提交工单申请扩大配额。 父主题: 配额相关