このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Assigning EIPs in Batches

Updated on 2025-02-08 GMT+08:00

Function

This API is used to assign EIPs in batches.

URI

POST /v2/{project_id}/batchpublicips

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

bandwidth

Yes

BatchBandwidth object

Bandwidth information

publicip

Yes

BatchPublicIp object

EIP information

publicip_number

Yes

Integer

Number of EIPs to be created in batches

enterprise_project_id

Yes

String

Enterprise project ID

Table 3 BatchBandwidth

Parameter

Mandatory

Type

Description

charge_mode

No

String

  • Whether the billing is based on traffic or bandwidth For IPv6 addresses, the default value is bandwidth outside China and is traffic in China. If the value is traffic, the billing is based on traffic.

Enumerated values:

  • bandwidth
  • traffic

name

No

String

  • Bandwidth name
  • The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).
  • This parameter is mandatory if share_type is set to PER. This parameter will be ignored if share_type is set to WHOLE with an ID specified.

Minimum length: 1

Maximum: 64

share_type

No

String

  • Bandwidth type.
  • The value can be PER or WHOLE. IPv6 addresses do not support bandwidth whose type is WHOLE.

Enumerated values:

  • PER
  • WHOLE

size

Yes

Integer

  • Bandwidth size (Mbit/s).
  • The value ranges from 1 Mbit/s to 2000 Mbit/s by default. (The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.)
  • This parameter is mandatory if share_type is set to PER. This parameter will be ignored if share_type is set to WHOLE with an ID specified.
  • The minimum increment for bandwidth adjustment varies depending on the bandwidth range. The details are as follows:
    • The minimum increment is 1 Mbit/s if the allowed bandwidth ranges from 0 Mbit/s to 300 Mbit/s (with 300 Mbit/s included).
    • The minimum increment is 50 Mbit/s if the allowed bandwidth ranges from 300 Mbit/s to 1000 Mbit/s (with 1000 Mbit/s included).
    • The minimum increment is 500 Mbit/s if the allowed bandwidth is greater than 1000 Mbit/s.

id

No

String

  • Bandwidth ID. You can specify an existing shared bandwidth ID when assigning an EIP that uses the bandwidth whose type is WHOLE.
  • Value: ID of the bandwidth of type WHOLE
Table 4 BatchPublicIp

Parameter

Mandatory

Type

Description

id

No

String

Assigning an EIP by specifying an ID

type

Yes

String

EIP type

Enumerated values:

  • 5_bgp
  • 5_union
  • 5_sbgp

ip_version

No

String

EIP version, for example, IPv4 and IPv6. The default value is ipv4.

enterprise_project_id

No

String

Enterprise project ID

tags

No

Array of ResourceTagOption objects

  • Tag list
  • Format: The key and value of a tag are separated by an asterisk (*). If there are multiple tags, use commas (,) to separate different key-value pairs. For details, see the request example.

profile

No

BatchProfile object

Order information

Table 5 ResourceTagOption

Parameter

Mandatory

Type

Description

key

Yes

String

  • Tag key
  • Constraints:
    • Cannot be left blank.
    • Can contain a maximum of 128 characters.
    • Can contain letters, digits, underscores (_), and hyphens (-).
    • The tag key of a resource must be unique.

Maximum length: 128

value

Yes

String

  • Tag value
  • Constraints:
    • Can contain no more than 255 characters.
    • Can contain letters, digits, underscores (_), and hyphens (-).
    • The tag key of a resource must be unique.

Maximum length: 255

Table 6 BatchProfile

Parameter

Mandatory

Type

Description

user_id

No

String

User ID

product_id

No

String

Product ID

region_id

No

String

Region ID

order_id

No

String

Order ID

Response Parameters

Status code: 200

Table 7 Response body parameters

Parameter

Type

Description

job_id

String

Job ID. The netAPI needs to be called to view the job execution status. netAPI: /v1/{project_id}/jobs/{job_id}

Example Request

Assign two EIPs and add tags to them. The EIPs use 5 Mbit/s dedicated bandwidth and are billed by bandwidth.

POST /v2/{project_id}/batchpublicips

{
  "bandwidth" : {
    "name" : "",
    "size" : 5,
    "charge_mode" : "bandwidth",
    "share_type" : "PER"
  },
  "publicip" : {
    "type" : "5_bgp",
    "tags" : ["name*tom", "type*kkkk"]
  },
  "publicip_number" : 2,
  "enterprise_project_id" : 0
}

Example Response

Status code: 200

OK

{
  "job_id" : "ff8080828436722c0184cdb88e9200a5"
}

Status Code

See Status Codes.

Error Code

See Error Codes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback