Giter Club home page Giter Club logo

Comments (12)

huychau avatar huychau commented on July 20, 2024 1

How to parse params to the request body? Thanks.

A note that I am focusing to create/delete/describe Kuberetes clusters.

from aliyun-openapi-python-sdk.

jxyowen avatar jxyowen commented on July 20, 2024

Did you use Aliyun CLI? Try the go version CLI please. https://github.com/aliyun/aliyun-cli

from aliyun-openapi-python-sdk.

minhtran-agilityio avatar minhtran-agilityio commented on July 20, 2024

Yes, I tried use aliyun cli with DescribeClusters but still have the same error above 'list' object has no attribute 'get'. With other methods still work well.

from aliyun-openapi-python-sdk.

huychau avatar huychau commented on July 20, 2024

/assign @jxyowen

from aliyun-openapi-python-sdk.

jxyowen avatar jxyowen commented on July 20, 2024

Pelase visit https://www.alibabacloud.com/help/doc-detail/71195.htm?spm=a2c63.p38356.b99.266.68273bcdv95bV1

from aliyun-openapi-python-sdk.

huychau avatar huychau commented on July 20, 2024

@jxyowen Could you please re-check issue content? Seem @minhtran-asnet followed the link you shared above and got an error.

from aliyun-openapi-python-sdk.

minhtran-agilityio avatar minhtran-agilityio commented on July 20, 2024

@jxyowen aliyun-python-sdk-cs have support for region ap-southeast-5?

from aliyun-openapi-python-sdk.

minhtran-agilityio avatar minhtran-agilityio commented on July 20, 2024

@Qingtang-SDK Could you help me?

from aliyun-openapi-python-sdk.

jxyowen avatar jxyowen commented on July 20, 2024

CS sdk is not supported well, because CS have restful api. We recommend to use CommonRequest.
Please visit https://www.alibabacloud.com/help/doc-detail/61476.htm?spm=a2c63.p38356.b99.19.c88c874bVnwJzW

from aliyun-openapi-python-sdk.

minhtran-agilityio avatar minhtran-agilityio commented on July 20, 2024

@jxyowen I tried with code below

        access_key_id = 'xxx'
        access_key_secret = 'xxx'
        region_id = 'xxx'

        client = AcsClient(access_key_id, access_key_secret , region_id )

        request = CommonRequest()
        request.set_domain('cs.aliyuncs.com')
        request.set_version('2015-12-15')
        request.set_uri_pattern('/clusters')
        
        response = client.do_action_with_exception(request)

        print('---> response', response)

and have error
1__bash__bash_

I don't have any idea about error. Pls help me about this case, thanks.

from aliyun-openapi-python-sdk.

jxyowen avatar jxyowen commented on July 20, 2024

Please update your python aliyunsdkcore to 2.8.8 for python3, and 2.8.4 for python2.
Visit https://pypi.org/search/?q=+aliyun+python+sdk+core+v3

from aliyun-openapi-python-sdk.

mitjabez avatar mitjabez commented on July 20, 2024

Problem is that client.py wants to read RequestId from the body, but there is no request id there. RequestId for cs responses is in the HTTP header: x-acs-request-id. client.py should be able to handle this.

Workaround is to use client.do_action(), but that is deprecated.

Why was the issue closed?

from aliyun-openapi-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.