#!/usr/bin/python3#-*- coding: utf-8 -*-#@Time : 2018/1/24 0024 13:42#@Author : sanmuyan#@FileName: aliyun_domain_des.py
importjson,jsonpath,osfrom aliyunsdkcore.client importAcsClientfrom aliyunsdkcore.acs_exception.exceptions importClientExceptionfrom aliyunsdkcore.acs_exception.exceptions importServerExceptionfrom aliyunsdkalidns.request.v20150109 importDescribeDomainRecordsRequestfrom aliyunsdkalidns.request.v20150109 importAddDomainRecordRequestfrom aliyunsdkalidns.request.v20150109 importDeleteDomainRecordRequestfrom aliyunsdkalidns.request.v20150109 importDescribeDomainRecordInfoRequest
AccessKey= os.environ.get('AccessKey')
Secret= os.environ.get('Secret')
Regions= os.environ.get('Regions')#创建 AcsClient 实例
client =AcsClient(
AccessKey,
Secret,
Regions
);defdns_des(RecordId):
request=DescribeDomainRec