数据库安全服务 DBSS-包年包月计费模式创建审计实例:请求示例

时间:2024-10-21 18:38:49

请求示例

创建一个包周期计费"chargin_mode : 0"的实例,版本为基础版:"resource_spec_code" : "dbss.bypassaudit.low"。

/v2/{project_id}/dbss/audit/charge/period/order

{
  "flavor_ref" : "st6.xlarge.4",
  "name" : "DBSS-acc3",
  "vpc_id" : "4c035747-f77b-4c6d-b23b-cb3a2b96c7e6",
  "availability_zone" : "cn-north-7c",
  "comment" : "",
  "region" : "cn-north-7",
  "nics" : [ {
    "subnet_id" : "6201dcf2-1374-43ec-ae8b-78b4081572d3"
  } ],
  "security_groups" : [ {
    "id" : "04088976-9c63-4e6b-9070-84e6a30c782b"
  } ],
  "cloud_service_type" : "hws.service.type.dbss",
  "charging_mode" : 0,
  "period_type" : 2,
  "period_num" : 1,
  "subscription_num" : 1,
  "is_auto_renew" : 0,
  "product_infos" : [ {
    "product_id" : "00301-225396-0--0",
    "cloud_service_type" : "hws.service.type.dbss",
    "resource_type" : "hws.resource.type.dbss",
    "resource_spec_code" : "dbss.bypassaudit.low",
    "product_spec_desc" : "{\"specDesc\":{\"zh-cn\":{\"key1\":\"value1\"},\"en-us\":{\"key1\":\"value1\"}}}"
  } ],
  "promotion_info" : "",
  "enterprise_project_id" : "0",
  "tags" : [ {
    "key" : "key_test",
    "value" : "1"
  } ]
}
创建一个包周期计费"chargin_mode : 0"的实例,版本为专业版:"resource_spec_code" : "dbss.bypassaudit.medium"。
{
    "flavor_ref": "c6.2xlarge.2",
    "name": "DBSS-test",
    "vpc_id": "4c035747-f77b-4c6d-b23b-cb3a2b96c7e6",
    "availability_zone": "cn-north-7b",
    "comment": "",
    "region": "cn-north-7",
    "nics": [
      {
        "subnet_id": "6201dcf2-1374-43ec-ae8b-78b4081572d3"
      }
    ],
    "security_groups": [
      {
        "id": "59c45017-a484-481b-8440-18c2214ccb06"
      }
    ],
    "cloud_service_type": "hws.service.type.dbss",
    "charging_mode": 0,
    "period_type": 2,
    "period_num": 1,
    "subscription_num": 1,
    "is_auto_renew": 0,
    "product_infos": [
      {
        "product_id": "00301-225396-0--0",
        "cloud_service_type": "hws.service.type.dbss",
        "resource_type": "hws.resource.type.dbss",
        "resource_spec_code": "dbss.bypassaudit.medium",
        "product_spec_desc": "{\"specDesc\":{\"zh-cn\":{\"key1\":\"value1\"},\"en-us\":{\"key1\":\"value1\"}}}"     
       }
    ],
    "promotion_info": "",
    "enterprise_project_id": "0"
  }
support.huaweicloud.com/api-dbss/CreateInstancesPeriodOrder.html