turbot / steampipe-plugin-alicloud

Use SQL to instantly query Alibaba Cloud resources across regions and accounts. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/alicloud
Apache License 2.0
12 stars 6 forks source link

Add table alicloud_alidns_domains #450

Open vmdude opened 1 month ago

vmdude commented 1 month ago

References

The table alicloud_alidns_domains should mimic the aliyun alidns DescribeDomains query.

vmdude commented 1 month ago

A sample output from cli:

aliyun alidns DescribeDomains
{
    "Domains": {
        "Domain": [
            {
                "AliDomain": false,
                "CreateTime": "2020-02-08T19:07Z",
                "CreateTimestamp": 1581188831000,
                "DnsServers": {
                    "DnsServer": [
                        "ns7.alidns.com",
                        "ns8.alidns.com"
                    ]
                },
                "DomainId": "REDACTED",
                "DomainLoggingSwitchStatus": "CLOSE",
                "DomainName": "REDACTED",
                "PunyCode": "REDACTED",
                "RecordCount": 0,
                "ResourceGroupId": "rg-REDACTED",
                "Starmark": false,
                "Tags": {
                    "Tag": []
                },
                "VersionCode": "mianfei",
                "VersionName": "Alibaba Cloud DNS"
            },
            {
                "AliDomain": false,
                "CreateTime": "2019-01-29T10:29Z",
                "CreateTimestamp": 1548757740000,
                "DnsServers": {
                    "DnsServer": [
                        "ns7.alidns.com",
                        "ns8.alidns.com"
                    ]
                },
                "DomainId": "REDACTED",
                "DomainLoggingSwitchStatus": "CLOSE",
                "DomainName": "REDACTED",
                "PunyCode": "REDACTED",
                "RecordCount": 0,
                "ResourceGroupId": "rg-REDACTED",
                "Starmark": false,
                "Tags": {
                    "Tag": []
                },
                "VersionCode": "mianfei",
                "VersionName": "Alibaba Cloud DNS"
            }
        ]
    },
    "PageNumber": 1,
    "PageSize": 20,
    "RequestId": "REDACTED",
    "TotalCount": 2
}