Пример #1
0
        /// <summary>
        /// Returns all records up to 100 at a time, starting with the
        /// one with the optional name and/or type, sorted in lexographical
        /// order by name (with labels reversed) then by type.
        /// </summary>
        public ListResourceRecordSetsResponse GetRecords(
                string startingDnsName, string startingDnsType = null)
        {
            using (var r53 = new Amazon.Route53.AmazonRoute53Client(
                    CommonParams.ResolveCredentials(),
                    CommonParams.RegionEndpoint))
            {
                var rrRequ = new Amazon.Route53.Model.ListResourceRecordSetsRequest
                {
                    HostedZoneId = HostedZoneId,
                    StartRecordName = startingDnsName,
                    StartRecordType = startingDnsType,
                };

                var rrResp = r53.ListResourceRecordSets(rrRequ);

                return rrResp;
            }
        }
Пример #2
0
        /// <summary>
        /// Returns all records up to 100 at a time, starting with the
        /// one with the optional name and/or type, sorted in lexographical
        /// order by name (with labels reversed) then by type.
        /// </summary>
        public ListResourceRecordSetsResponse GetRecords(
            string startingDnsName, string startingDnsType = null)
        {
            using (var r53 = new Amazon.Route53.AmazonRoute53Client(
                       CommonParams.ResolveCredentials(),
                       CommonParams.RegionEndpoint))
            {
                var rrRequ = new Amazon.Route53.Model.ListResourceRecordSetsRequest
                {
                    HostedZoneId    = HostedZoneId,
                    StartRecordName = startingDnsName,
                    StartRecordType = startingDnsType,
                };

                var rrResp = r53.ListResourceRecordSets(rrRequ);

                return(rrResp);
            }
        }