123456789101112131415 |
- #!/usr/bin/env python
- #coding=utf-8
- from aliyunsdkcore.client import AcsClient
- from aliyunsdkcore.acs_exception.exceptions import ClientException
- from aliyunsdkcore.acs_exception.exceptions import ServerException
- from aliyunsdkalidns.request.v20150109.AddDomainRecordRequest import AddDomainRecordRequest
- from aliyunsdkalidns.request.v20150109.DescribeDomainRecordsRequest import DescribeDomainRecordsRequest
- client = AcsClient('LTAI4FrfVTnbzWftNex7RKNB', 'vzosLbzA96VHaoCaGZMCsgNqb5BkyT', 'cn-hangzhou')
- request = DescribeDomainRecordsRequest()
- request.set_DomainName('zositech.org')
- request.set_accept_format('json')
- response = client.do_action_with_exception(request)
- print(str(response, encoding='utf-8'))
|