EipBP Instance
Updated at:2025-10-16
An EipBp instance is a bandwidth package instance created on Baidu AI Cloud. Creating a bandwidth package requires real-name certification. Uncertified users can complete certification under Security Certification in the Baidu Open Cloud Official Website Console. Currently, only prepaid EIPGROUP creation is supported
Create bandwidth package instance
Users can create a bandwidth package instance using the following code.
PHP
1public function testCreateEipBp()
2{
3 $resp = $this->client->createEipBp($this->eip, null, $this->createBandwidthInMbps, $this->name, $this->autoReleaseTime);
4 print_r($resp);
5 $this->assertNotNull($resp);
6}
Bandwidth package bandwidth scaling
Resize the bandwidth of the specified bandwidth package.
PHP
1public function testResizeEipBp()
2{
3 $this->client->resizeEipBp($this->id, $this->newBandwidthInMbps);
4}
Query bandwidth package details
Retrieve the details of a bandwidth package.
PHP
1public function testGetEipBp()
2{
3 $this->client->getEipBp($this->id);
4}
Query bandwidth package list
Retrieve the list of bandwidth packages.
- Retrieve the list of bandwidth packages that meet multiple specified conditions.
- If no query criteria are provided, all bandwidth packages will be retrieved by default.
- The returned results are filtered based on the intersection of criteria. Specifically, when multiple conditions are given, the results will include only the bandwidth packages that satisfy all conditions simultaneously.
- The query results support marker-based pagination, with a default page size of 1,000. You can adjust this by setting the maxKeys parameter.
PHP
1public function testListEipBps()
2{
3 $this->client->listEipBps();
4}
Update the name of the bandwidth package
Update the name of a specified bandwidth package.
PHP
1public function testRenameEipBp()
2{
3 $this->client->renameEipBp($this->id, $this->newName);
4}
Update the automatic release time of the bandwidth package
Update the automatic release time of a specified bandwidth package.
PHP
1public function testUpdateEipBpAutoReleaseTime()
2{
3 $this->client->updateEipBpAutoReleaseTime($this->id, $this->newAutoReleaseTime);
4}
Release bandwidth package
Release the specified bandwidth package.
PHP
1public function testReleaseEipBp()
2{
3 $this->client->releaseEipBp($this->id);
4}
