aliyun / aliyun/aliyun-openapi-python-sdk

Cant set "Name" of Eip address via API

Open
#445 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
578
PR merge metrics
No merged PRs in 30d

Description

  • Python Version: Python 3.7.7
  • aliyunsdkcore Version: 2.13.28
  • API: AllocateEipAddressRequest and ModifyEipAddressAttributeRequest

It seems its not possible to set a name for Eip.
It is ignored.

Additionally, although it is documented, the SDK does't support the "Name" field and i used add_query_params function as such:
request = AllocateEipAddressRequest()
request.set_Bandwidth('200')
request.set_InternetChargeType('PayByTraffic')
request.set_ISP('BGP')
request.add_query_param('Name', name)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AllocateEipAddressRequest and ModifyEipAddressAttributeRequest entry points named in the report, and inspect how their request parameters are defined and serialized. Verify the documented Name field is accepted and transmitted for the relevant API calls, then run the existing SDK tests or add focused coverage for both requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.