dockerfiles/ddns-aliyun/alidns/DescribeDomainRecordInfoNew.go

44 lines
1.0 KiB
Go
Raw Normal View History

2021-06-11 14:30:59 +08:00
package dns
2022-01-17 15:28:35 +08:00
import (
"encoding/json"
"github.com/denverdino/aliyungo/common"
)
2021-06-11 14:30:59 +08:00
// endpoint change to 'http://alidns.aliyuncs.com' then record ttl and priority change to string
type RecordTypeNew struct {
DomainName string
RecordId string
RR string
Type string
Value string
2022-01-17 15:28:35 +08:00
TTL json.Number
2021-06-11 14:30:59 +08:00
Line string
Status string
Locked bool
}
type DescribeDomainRecordInfoNewArgs struct {
RecordId string
}
type DescribeDomainRecordInfoNewResponse struct {
common.Response
RecordTypeNew
}
// DescribeDomainRecordInformation
//
// You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DescribeDomainRecordInfo
func (client *Client) DescribeDomainRecordInfoNew(args *DescribeDomainRecordInfoNewArgs) (response *DescribeDomainRecordInfoNewResponse, err error) {
action := "DescribeDomainRecordInfo"
response = &DescribeDomainRecordInfoNewResponse{}
err = client.Invoke(action, args, response)
if err == nil {
return response, nil
} else {
return nil, err
}
}