Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
79 KiB
Data Structure for Creating ECSs
Contents
- publicip Field Description
- security_groups Field Description
- eip Field Description
- bandwidth Field Description
- ipv6_bandwidth Field Description
- extendparam Field Description for Creating Disks
- extendparam Field Description for Creating ECSs
- metadata Field Description for Creating Disks
- metadata Field Description for Creating ECSs
- os:scheduler_hints Field Description
- binding:profile Field Description
- extra_dhcp_opts Field Description
publicip Field Description
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
id |
No |
String |
Definition Specifies the ID of the existing EIP assigned to the ECS to be created. The value is in UUID format. Constraints Only EIPs in DOWN state can be assigned. Range N/A Default Value N/A |
eip |
No |
Object |
Definition Specifies an EIP that will be automatically assigned to an ECS. For details, see Table 3. Constraints N/A Range N/A Default Value N/A |
delete_on_termination |
No |
Boolean |
Definition Specifies whether the EIP is released along with the associated ECS. Constraints N/A Range
Default Value false |
security_groups Field Description
This field is used by the following APIs:
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
id |
No |
String |
Definition Specifies the ID of the security group to which an ECS is to be added. The configuration will take effect on the NICs of the ECS. You need to specify the ID of an existing security group in UUID format. Otherwise, the default security group will be used at the underlying layer. Constraints N/A Range N/A Default Value N/A |
eip Field Description
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
iptype |
Yes |
String |
Definition Specifies the EIP type. For details about the enumerated values, see the publicip field in "Assigning an EIP" in Virtual Private Cloud API Reference. Constraints N/A Range N/A Default Value N/A |
bandwidth |
Yes |
Object |
Definition Specifies the bandwidth of an EIP. For details, see bandwidth Field Description. Constraints N/A Range N/A Default Value N/A |
bandwidth Field Description
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
size |
Yes |
Integer |
Definition Specifies the bandwidth size. Constraints N/A Range Specifies the bandwidth (Mbit/s). The value ranges from 1 to 1,000. The specific range may vary depending on the configuration in each region. You can see the bandwidth range of each region on the management console. Default Value N/A |
sharetype |
Yes |
String |
Definition Specifies the bandwidth sharing type. Constraints N/A Range Enumerated values: PER (indicates exclusive bandwidth) and WHOLE (indicates shared bandwidth) Default Value N/A |
chargemode |
Yes |
String |
Definition Specifies the bandwidth billing mode. Constraints
Range N/A Default Value N/A |
ipv6_bandwidth Field Description
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
id |
No |
String |
Definition Specifies the ID of an IPv6 bandwidth. Constraints N/A Range N/A Default Value N/A |
extendparam Field Description for Creating Disks
This field is used by the following APIs:
- Creating ECSs /v1/{project_id}/cloudservers
extendparam Field Description for Creating ECSs
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
regionID |
No |
String |
Definition Specifies the ID of the region where the ECS resides. Constraints N/A Range N/A Default Value N/A |
CB_CSBS_BACKUP |
No |
String |
Definition Specifies a CSBS policy ID and CSBS vault ID. For example, a CSBS policy ID obtained on the console is fdcaa27d-5be4-4f61-afe3-09ff79162c04. A CSBS vault ID is 332a9408-463f-436a-9e92-78dad95d1ac4. The CB_CSBS_BACKUP value is "{\"policy_id\":\"fdcaa27d-5be4-4f61-afe3-09ff79162c04\",\"vault_id\":\"332a9408-463f-436a-9e92-78dad95d1ac4\"}". Constraints N/A Range N/A Default Value N/A |
metadata Field Description for Creating Disks
This field is used by the following APIs:
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
__system__encrypted |
No |
String |
Definition Specifies the encryption parameter in metadata. Constraints If this parameter does not exist, the disk will not be encrypted by default. Range
Default Value N/A |
__system__cmkid |
No |
String |
Definition Specifies the CMK ID, which indicates encryption in metadata. For details about how to obtain the CMK ID through HTTPS requests, see "Querying the List of CMKs" in Key Management Service API Reference. Constraints This parameter must be used with __system__encrypted. Range N/A Default Value N/A |
metadata Field Description for Creating ECSs
This field is used by the following APIs:
- Creating ECSs /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
admin_pass |
No |
String |
Definition Specifies the password of user Administrator for logging in to a Windows ECS. For details, see Function. Constraints This parameter is mandatory when a Windows ECS using password authentication is created. Range N/A Default Value N/A |
op_svc_userid |
No |
String |
Definition Specifies the user ID. NOTE:
The value of this parameter is that of IAM User ID of the current login account. If you log in as an IAM user, obtain the IAM user ID of that IAM user. Constraints N/A Range N/A Default Value N/A |
agency_name |
No |
String |
Definition Specifies the agency name. An agency is created by a tenant administrator on Identity and Access Management (IAM) to provide temporary credentials for ECSs to access cloud services. Constraints N/A Range N/A Default Value N/A |
__support_agent_list |
No |
String |
Definition Specifies whether the ECS supports Host Security Service (HSS). Determine whether the image used for creating the ECS supports HSS via the API for querying images. Constraints N/A Range hss,hss-ent: indicates the HSS enterprise edition. Example values: _support_agent_list: "hss,hss-ent" Default Value N/A |
BYOL |
No |
String |
Definition If you have an OS or a software license (a license certified based on the number of physical servers and cores), you can migrate your services to the cloud platform in BYOL mode to continue using your existing licenses. Constraints N/A Range
Default Value N/A |
os:scheduler_hints Field Description
- Creating ECSs: /v1/{project_id}/cloudservers
- Creating ECSs (native): /v2.1/{project_id}/servers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
group |
No |
String |
Definition Specifies the ECS group ID in UUID format. Obtain the parameter value from the console or by referring to Listing ECS Groups. Constraints Ensure that the ECS group uses the anti-affinity policy. The anti-affinity policy is not supported for ECSs created on a specified DeH. Range N/A Default Value N/A |
tenancy |
No |
String |
Definition Creates ECSs on a dedicated or shared host. Constraints N/A Range The value of this parameter can be dedicated or shared. Default Value N/A |
dedicated_host_id |
No |
String |
Definition Specifies the dedicated host ID. Constraints A DeH ID takes effect only when tenancy is set to dedicated. Range N/A Default Value N/A |
Parameter |
Type |
Description |
|---|---|---|
group |
Array of strings |
Definition Specifies the ECS group ID in UUID format. Obtain the parameter value from the console or by referring to Listing ECS Groups Constraints N/A Range N/A Default Value N/A |
tenancy |
Array of strings |
Definition Creates ECSs on a dedicated or shared host. Constraints N/A Range share or dedicate Default Value N/A |
dedicated_host_id |
Array of strings |
Definition Specifies the dedicated host ID. Constraints A DeH ID takes effect only when tenancy is set to dedicated. Range N/A Default Value N/A |
binding:profile Field Description
- Creating ECSs: /v1/{project_id}/cloudservers
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
disable_security_groups |
No |
Boolean |
Definition Specifies whether the NIC of an ECS is not added to a security group. Constraints
Range N/A Default Value N/A |
