Documentation ¶
Overview ¶
Package dns implements the Azure ARM Dns service API version 2016-04-01.
The DNS Management Client.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type ARecord
- type AaaaRecord
- type CloudError
- type CloudErrorBody
- type CnameRecord
- type HTTPStatusCode
- type ManagementClient
- type MxRecord
- type NsRecord
- type OperationStatus
- type PtrRecord
- type RecordSet
- type RecordSetListResult
- type RecordSetProperties
- type RecordSetUpdateParameters
- type RecordSetsClient
- func (client RecordSetsClient) CreateOrUpdate(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (result RecordSet, err error)
- func (client RecordSetsClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (*http.Request, error)
- func (client RecordSetsClient) CreateOrUpdateResponder(resp *http.Response) (result RecordSet, err error)
- func (client RecordSetsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client RecordSetsClient) Delete(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (result autorest.Response, err error)
- func (client RecordSetsClient) DeletePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (*http.Request, error)
- func (client RecordSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client RecordSetsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client RecordSetsClient) Get(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (result RecordSet, err error)
- func (client RecordSetsClient) GetPreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (*http.Request, error)
- func (client RecordSetsClient) GetResponder(resp *http.Response) (result RecordSet, err error)
- func (client RecordSetsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RecordSetsClient) ListByDNSZone(resourceGroupName string, zoneName string, top *int32) (result RecordSetListResult, err error)
- func (client RecordSetsClient) ListByDNSZoneNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error)
- func (client RecordSetsClient) ListByDNSZonePreparer(resourceGroupName string, zoneName string, top *int32) (*http.Request, error)
- func (client RecordSetsClient) ListByDNSZoneResponder(resp *http.Response) (result RecordSetListResult, err error)
- func (client RecordSetsClient) ListByDNSZoneSender(req *http.Request) (*http.Response, error)
- func (client RecordSetsClient) ListByType(resourceGroupName string, zoneName string, recordType RecordType, top *int32) (result RecordSetListResult, err error)
- func (client RecordSetsClient) ListByTypeNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error)
- func (client RecordSetsClient) ListByTypePreparer(resourceGroupName string, zoneName string, recordType RecordType, top *int32) (*http.Request, error)
- func (client RecordSetsClient) ListByTypeResponder(resp *http.Response) (result RecordSetListResult, err error)
- func (client RecordSetsClient) ListByTypeSender(req *http.Request) (*http.Response, error)
- func (client RecordSetsClient) Update(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (result RecordSet, err error)
- func (client RecordSetsClient) UpdatePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, ...) (*http.Request, error)
- func (client RecordSetsClient) UpdateResponder(resp *http.Response) (result RecordSet, err error)
- func (client RecordSetsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type RecordType
- type Resource
- type SoaRecord
- type SrvRecord
- type SubResource
- type TxtRecord
- type Zone
- type ZoneDeleteResult
- type ZoneListResult
- type ZoneProperties
- type ZonesClient
- func (client ZonesClient) CreateOrUpdate(resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ...) (result Zone, err error)
- func (client ZonesClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ...) (*http.Request, error)
- func (client ZonesClient) CreateOrUpdateResponder(resp *http.Response) (result Zone, err error)
- func (client ZonesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ZonesClient) Delete(resourceGroupName string, zoneName string, ifMatch string, ...) (result autorest.Response, err error)
- func (client ZonesClient) DeletePreparer(resourceGroupName string, zoneName string, ifMatch string, ...) (*http.Request, error)
- func (client ZonesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ZonesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ZonesClient) Get(resourceGroupName string, zoneName string) (result Zone, err error)
- func (client ZonesClient) GetPreparer(resourceGroupName string, zoneName string) (*http.Request, error)
- func (client ZonesClient) GetResponder(resp *http.Response) (result Zone, err error)
- func (client ZonesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ZonesClient) List(top *int32) (result ZoneListResult, err error)
- func (client ZonesClient) ListByResourceGroup(resourceGroupName string, top *int32) (result ZoneListResult, err error)
- func (client ZonesClient) ListByResourceGroupNextResults(lastResults ZoneListResult) (result ZoneListResult, err error)
- func (client ZonesClient) ListByResourceGroupPreparer(resourceGroupName string, top *int32) (*http.Request, error)
- func (client ZonesClient) ListByResourceGroupResponder(resp *http.Response) (result ZoneListResult, err error)
- func (client ZonesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ZonesClient) ListNextResults(lastResults ZoneListResult) (result ZoneListResult, err error)
- func (client ZonesClient) ListPreparer(top *int32) (*http.Request, error)
- func (client ZonesClient) ListResponder(resp *http.Response) (result ZoneListResult, err error)
- func (client ZonesClient) ListSender(req *http.Request) (*http.Response, error)
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Dns
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type ARecord ¶
type ARecord struct {
Ipv4Address *string `json:"ipv4Address,omitempty"`
}
ARecord is an A record.
type AaaaRecord ¶
type AaaaRecord struct {
Ipv6Address *string `json:"ipv6Address,omitempty"`
}
AaaaRecord is an AAAA record.
type CloudError ¶
type CloudError struct {
Error *CloudErrorBody `json:"error,omitempty"`
}
CloudError is
type CloudErrorBody ¶
type CloudErrorBody struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` Details *[]CloudErrorBody `json:"details,omitempty"` }
CloudErrorBody is
type CnameRecord ¶
type CnameRecord struct {
Cname *string `json:"cname,omitempty"`
}
CnameRecord is a CNAME record.
type HTTPStatusCode ¶
type HTTPStatusCode string
HTTPStatusCode enumerates the values for http status code.
const ( // Accepted specifies the accepted state for http status code. Accepted HTTPStatusCode = "Accepted" // Ambiguous specifies the ambiguous state for http status code. Ambiguous HTTPStatusCode = "Ambiguous" // BadGateway specifies the bad gateway state for http status code. BadGateway HTTPStatusCode = "BadGateway" // BadRequest specifies the bad request state for http status code. BadRequest HTTPStatusCode = "BadRequest" // Conflict specifies the conflict state for http status code. Conflict HTTPStatusCode = "Conflict" // Continue specifies the continue state for http status code. Continue HTTPStatusCode = "Continue" // Created specifies the created state for http status code. Created HTTPStatusCode = "Created" // ExpectationFailed specifies the expectation failed state for http status // code. ExpectationFailed HTTPStatusCode = "ExpectationFailed" // Forbidden specifies the forbidden state for http status code. Forbidden HTTPStatusCode = "Forbidden" // Found specifies the found state for http status code. Found HTTPStatusCode = "Found" // GatewayTimeout specifies the gateway timeout state for http status code. GatewayTimeout HTTPStatusCode = "GatewayTimeout" // Gone specifies the gone state for http status code. Gone HTTPStatusCode = "Gone" // HTTPVersionNotSupported specifies the http version not supported state // for http status code. HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported" // InternalServerError specifies the internal server error state for http // status code. InternalServerError HTTPStatusCode = "InternalServerError" // LengthRequired specifies the length required state for http status code. LengthRequired HTTPStatusCode = "LengthRequired" // MethodNotAllowed specifies the method not allowed state for http status // code. MethodNotAllowed HTTPStatusCode = "MethodNotAllowed" // Moved specifies the moved state for http status code. Moved HTTPStatusCode = "Moved" // MovedPermanently specifies the moved permanently state for http status // code. MovedPermanently HTTPStatusCode = "MovedPermanently" // MultipleChoices specifies the multiple choices state for http status // code. MultipleChoices HTTPStatusCode = "MultipleChoices" // NoContent specifies the no content state for http status code. NoContent HTTPStatusCode = "NoContent" // NonAuthoritativeInformation specifies the non authoritative information // state for http status code. NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation" // NotAcceptable specifies the not acceptable state for http status code. NotAcceptable HTTPStatusCode = "NotAcceptable" // NotFound specifies the not found state for http status code. NotFound HTTPStatusCode = "NotFound" // NotImplemented specifies the not implemented state for http status code. NotImplemented HTTPStatusCode = "NotImplemented" // NotModified specifies the not modified state for http status code. NotModified HTTPStatusCode = "NotModified" // OK specifies the ok state for http status code. OK HTTPStatusCode = "OK" // PartialContent specifies the partial content state for http status code. PartialContent HTTPStatusCode = "PartialContent" // PaymentRequired specifies the payment required state for http status // code. PaymentRequired HTTPStatusCode = "PaymentRequired" // PreconditionFailed specifies the precondition failed state for http // status code. PreconditionFailed HTTPStatusCode = "PreconditionFailed" // ProxyAuthenticationRequired specifies the proxy authentication required // state for http status code. ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired" // Redirect specifies the redirect state for http status code. Redirect HTTPStatusCode = "Redirect" // RedirectKeepVerb specifies the redirect keep verb state for http status // code. RedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb" // RedirectMethod specifies the redirect method state for http status code. RedirectMethod HTTPStatusCode = "RedirectMethod" // RequestedRangeNotSatisfiable specifies the requested range not // satisfiable state for http status code. RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable" // RequestEntityTooLarge specifies the request entity too large state for // http status code. RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge" // RequestTimeout specifies the request timeout state for http status code. RequestTimeout HTTPStatusCode = "RequestTimeout" // RequestURITooLong specifies the request uri too long state for http // status code. RequestURITooLong HTTPStatusCode = "RequestUriTooLong" // ResetContent specifies the reset content state for http status code. ResetContent HTTPStatusCode = "ResetContent" // SeeOther specifies the see other state for http status code. SeeOther HTTPStatusCode = "SeeOther" // status code. ServiceUnavailable HTTPStatusCode = "ServiceUnavailable" // SwitchingProtocols specifies the switching protocols state for http // status code. SwitchingProtocols HTTPStatusCode = "SwitchingProtocols" // TemporaryRedirect specifies the temporary redirect state for http status // code. TemporaryRedirect HTTPStatusCode = "TemporaryRedirect" Unauthorized HTTPStatusCode = "Unauthorized" // UnsupportedMediaType specifies the unsupported media type state for http // status code. UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType" // Unused specifies the unused state for http status code. Unused HTTPStatusCode = "Unused" // UpgradeRequired specifies the upgrade required state for http status // code. UpgradeRequired HTTPStatusCode = "UpgradeRequired" // UseProxy specifies the use proxy state for http status code. UseProxy HTTPStatusCode = "UseProxy" )
type ManagementClient ¶
ManagementClient is the base client for Dns.
func New ¶
func New(subscriptionID string) ManagementClient
New creates an instance of the ManagementClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient
NewWithBaseURI creates an instance of the ManagementClient client.
type MxRecord ¶
type MxRecord struct { Preference *int32 `json:"preference,omitempty"` Exchange *string `json:"exchange,omitempty"` }
MxRecord is an MX record.
type NsRecord ¶
type NsRecord struct {
Nsdname *string `json:"nsdname,omitempty"`
}
NsRecord is an NS record.
type OperationStatus ¶
type OperationStatus string
OperationStatus enumerates the values for operation status.
const ( // Failed specifies the failed state for operation status. Failed OperationStatus = "Failed" // InProgress specifies the in progress state for operation status. InProgress OperationStatus = "InProgress" // Succeeded specifies the succeeded state for operation status. Succeeded OperationStatus = "Succeeded" )
type PtrRecord ¶
type PtrRecord struct {
Ptrdname *string `json:"ptrdname,omitempty"`
}
PtrRecord is a PTR record.
type RecordSet ¶
type RecordSet struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Etag *string `json:"etag,omitempty"` *RecordSetProperties `json:"properties,omitempty"` }
RecordSet is describes a DNS record set (a collection of DNS records with the same name and type).
type RecordSetListResult ¶
type RecordSetListResult struct { autorest.Response `json:"-"` Value *[]RecordSet `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
RecordSetListResult is the response to a record set List operation.
func (RecordSetListResult) RecordSetListResultPreparer ¶
func (client RecordSetListResult) RecordSetListResultPreparer() (*http.Request, error)
RecordSetListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type RecordSetProperties ¶
type RecordSetProperties struct { Metadata *map[string]*string `json:"metadata,omitempty"` TTL *int64 `json:"TTL,omitempty"` ARecords *[]ARecord `json:"ARecords,omitempty"` AaaaRecords *[]AaaaRecord `json:"AAAARecords,omitempty"` MxRecords *[]MxRecord `json:"MXRecords,omitempty"` NsRecords *[]NsRecord `json:"NSRecords,omitempty"` PtrRecords *[]PtrRecord `json:"PTRRecords,omitempty"` SrvRecords *[]SrvRecord `json:"SRVRecords,omitempty"` TxtRecords *[]TxtRecord `json:"TXTRecords,omitempty"` CnameRecord *CnameRecord `json:"CNAMERecord,omitempty"` SoaRecord *SoaRecord `json:"SOARecord,omitempty"` }
RecordSetProperties is represents the properties of the records in the record set.
type RecordSetUpdateParameters ¶
type RecordSetUpdateParameters struct {
RecordSet *RecordSet `json:"RecordSet,omitempty"`
}
RecordSetUpdateParameters is parameters supplied to update a record set.
type RecordSetsClient ¶
type RecordSetsClient struct {
ManagementClient
}
RecordSetsClient is the the DNS Management Client.
func NewRecordSetsClient ¶
func NewRecordSetsClient(subscriptionID string) RecordSetsClient
NewRecordSetsClient creates an instance of the RecordSetsClient client.
func NewRecordSetsClientWithBaseURI ¶
func NewRecordSetsClientWithBaseURI(baseURI string, subscriptionID string) RecordSetsClient
NewRecordSetsClientWithBaseURI creates an instance of the RecordSetsClient client.
func (RecordSetsClient) CreateOrUpdate ¶
func (client RecordSetsClient) CreateOrUpdate(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string, ifNoneMatch string) (result RecordSet, err error)
CreateOrUpdate creates or updates a record set within a DNS zone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created). parameters is parameters supplied to the CreateOrUpdate operation. ifMatch is the etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag value to prevent accidentally overwritting any concurrent changes. ifNoneMatch is set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored.
func (RecordSetsClient) CreateOrUpdatePreparer ¶
func (client RecordSetsClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string, ifNoneMatch string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (RecordSetsClient) CreateOrUpdateResponder ¶
func (client RecordSetsClient) CreateOrUpdateResponder(resp *http.Response) (result RecordSet, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (RecordSetsClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (RecordSetsClient) Delete ¶
func (client RecordSetsClient) Delete(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, ifMatch string) (result autorest.Response, err error)
Delete deletes a record set from a DNS zone. This operation cannot be undone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted). ifMatch is the etag of the record set. Omit this value to always delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
func (RecordSetsClient) DeletePreparer ¶
func (client RecordSetsClient) DeletePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, ifMatch string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (RecordSetsClient) DeleteResponder ¶
func (client RecordSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (RecordSetsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (RecordSetsClient) Get ¶
func (client RecordSetsClient) Get(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType) (result RecordSet, err error)
Get gets a record set.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the type of DNS record in this record set.
func (RecordSetsClient) GetPreparer ¶
func (client RecordSetsClient) GetPreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType) (*http.Request, error)
GetPreparer prepares the Get request.
func (RecordSetsClient) GetResponder ¶
func (client RecordSetsClient) GetResponder(resp *http.Response) (result RecordSet, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RecordSetsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RecordSetsClient) ListByDNSZone ¶
func (client RecordSetsClient) ListByDNSZone(resourceGroupName string, zoneName string, top *int32) (result RecordSetListResult, err error)
ListByDNSZone lists all record sets in a DNS zone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). top is the maximum number of record sets to return. If not specified, returns up to 100 record sets.
func (RecordSetsClient) ListByDNSZoneNextResults ¶
func (client RecordSetsClient) ListByDNSZoneNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error)
ListByDNSZoneNextResults retrieves the next set of results, if any.
func (RecordSetsClient) ListByDNSZonePreparer ¶
func (client RecordSetsClient) ListByDNSZonePreparer(resourceGroupName string, zoneName string, top *int32) (*http.Request, error)
ListByDNSZonePreparer prepares the ListByDNSZone request.
func (RecordSetsClient) ListByDNSZoneResponder ¶
func (client RecordSetsClient) ListByDNSZoneResponder(resp *http.Response) (result RecordSetListResult, err error)
ListByDNSZoneResponder handles the response to the ListByDNSZone request. The method always closes the http.Response Body.
func (RecordSetsClient) ListByDNSZoneSender ¶
ListByDNSZoneSender sends the ListByDNSZone request. The method will close the http.Response Body if it receives an error.
func (RecordSetsClient) ListByType ¶
func (client RecordSetsClient) ListByType(resourceGroupName string, zoneName string, recordType RecordType, top *int32) (result RecordSetListResult, err error)
ListByType lists the record sets of a specified type in a DNS zone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). recordType is the type of record sets to enumerate. top is the maximum number of record sets to return. If not specified, returns up to 100 record sets.
func (RecordSetsClient) ListByTypeNextResults ¶
func (client RecordSetsClient) ListByTypeNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error)
ListByTypeNextResults retrieves the next set of results, if any.
func (RecordSetsClient) ListByTypePreparer ¶
func (client RecordSetsClient) ListByTypePreparer(resourceGroupName string, zoneName string, recordType RecordType, top *int32) (*http.Request, error)
ListByTypePreparer prepares the ListByType request.
func (RecordSetsClient) ListByTypeResponder ¶
func (client RecordSetsClient) ListByTypeResponder(resp *http.Response) (result RecordSetListResult, err error)
ListByTypeResponder handles the response to the ListByType request. The method always closes the http.Response Body.
func (RecordSetsClient) ListByTypeSender ¶
ListByTypeSender sends the ListByType request. The method will close the http.Response Body if it receives an error.
func (RecordSetsClient) Update ¶
func (client RecordSetsClient) Update(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string) (result RecordSet, err error)
Update updates a record set within a DNS zone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the type of DNS record in this record set. parameters is parameters supplied to the Update operation. ifMatch is the etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag value to prevent accidentally overwritting concurrent changes.
func (RecordSetsClient) UpdatePreparer ¶
func (client RecordSetsClient) UpdatePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (RecordSetsClient) UpdateResponder ¶
func (client RecordSetsClient) UpdateResponder(resp *http.Response) (result RecordSet, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (RecordSetsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type RecordType ¶
type RecordType string
RecordType enumerates the values for record type.
const ( // A specifies the a state for record type. A RecordType = "A" // AAAA specifies the aaaa state for record type. AAAA RecordType = "AAAA" // CNAME specifies the cname state for record type. CNAME RecordType = "CNAME" // MX specifies the mx state for record type. MX RecordType = "MX" // NS specifies the ns state for record type. NS RecordType = "NS" // PTR specifies the ptr state for record type. PTR RecordType = "PTR" // SOA specifies the soa state for record type. SOA RecordType = "SOA" // SRV specifies the srv state for record type. SRV RecordType = "SRV" // TXT specifies the txt state for record type. TXT RecordType = "TXT" )
type Resource ¶
type Resource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
Resource is
type SoaRecord ¶
type SoaRecord struct { Host *string `json:"host,omitempty"` Email *string `json:"email,omitempty"` SerialNumber *int64 `json:"serialNumber,omitempty"` RefreshTime *int64 `json:"refreshTime,omitempty"` RetryTime *int64 `json:"retryTime,omitempty"` ExpireTime *int64 `json:"expireTime,omitempty"` MinimumTTL *int64 `json:"minimumTTL,omitempty"` }
SoaRecord is an SOA record.
type SrvRecord ¶
type SrvRecord struct { Priority *int32 `json:"priority,omitempty"` Weight *int32 `json:"weight,omitempty"` Port *int32 `json:"port,omitempty"` Target *string `json:"target,omitempty"` }
SrvRecord is an SRV record.
type TxtRecord ¶
type TxtRecord struct {
Value *[]string `json:"value,omitempty"`
}
TxtRecord is a TXT record.
type Zone ¶
type Zone struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` Etag *string `json:"etag,omitempty"` *ZoneProperties `json:"properties,omitempty"` }
Zone is describes a DNS zone.
type ZoneDeleteResult ¶
type ZoneDeleteResult struct { autorest.Response `json:"-"` AzureAsyncOperation *string `json:"azureAsyncOperation,omitempty"` Status OperationStatus `json:"status,omitempty"` StatusCode HTTPStatusCode `json:"statusCode,omitempty"` RequestID *string `json:"requestId,omitempty"` }
ZoneDeleteResult is the response to a Zone Delete operation.
type ZoneListResult ¶
type ZoneListResult struct { autorest.Response `json:"-"` Value *[]Zone `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
ZoneListResult is the response to a Zone List or ListAll operation.
func (ZoneListResult) ZoneListResultPreparer ¶
func (client ZoneListResult) ZoneListResultPreparer() (*http.Request, error)
ZoneListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type ZoneProperties ¶
type ZoneProperties struct { MaxNumberOfRecordSets *int64 `json:"maxNumberOfRecordSets,omitempty"` NumberOfRecordSets *int64 `json:"numberOfRecordSets,omitempty"` NameServers *[]string `json:"nameServers,omitempty"` }
ZoneProperties is represents the properties of the zone.
type ZonesClient ¶
type ZonesClient struct {
ManagementClient
}
ZonesClient is the the DNS Management Client.
func NewZonesClient ¶
func NewZonesClient(subscriptionID string) ZonesClient
NewZonesClient creates an instance of the ZonesClient client.
func NewZonesClientWithBaseURI ¶
func NewZonesClientWithBaseURI(baseURI string, subscriptionID string) ZonesClient
NewZonesClientWithBaseURI creates an instance of the ZonesClient client.
func (ZonesClient) CreateOrUpdate ¶
func (client ZonesClient) CreateOrUpdate(resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ifNoneMatch string) (result Zone, err error)
CreateOrUpdate creates or updates a DNS zone. Does not modify DNS records within the zone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). parameters is parameters supplied to the CreateOrUpdate operation. ifMatch is the etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwritting any concurrent changes. ifNoneMatch is set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored.
func (ZonesClient) CreateOrUpdatePreparer ¶
func (client ZonesClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ifNoneMatch string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ZonesClient) CreateOrUpdateResponder ¶
func (client ZonesClient) CreateOrUpdateResponder(resp *http.Response) (result Zone, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ZonesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ZonesClient) Delete ¶
func (client ZonesClient) Delete(resourceGroupName string, zoneName string, ifMatch string, cancel <-chan struct{}) (result autorest.Response, err error)
Delete deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot). ifMatch is the etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
func (ZonesClient) DeletePreparer ¶
func (client ZonesClient) DeletePreparer(resourceGroupName string, zoneName string, ifMatch string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ZonesClient) DeleteResponder ¶
func (client ZonesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ZonesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ZonesClient) Get ¶
func (client ZonesClient) Get(resourceGroupName string, zoneName string) (result Zone, err error)
Get gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating dot).
func (ZonesClient) GetPreparer ¶
func (client ZonesClient) GetPreparer(resourceGroupName string, zoneName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ZonesClient) GetResponder ¶
func (client ZonesClient) GetResponder(resp *http.Response) (result Zone, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ZonesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ZonesClient) List ¶
func (client ZonesClient) List(top *int32) (result ZoneListResult, err error)
List lists the DNS zones in all resource groups in a subscription.
top is the maximum number of DNS zones to return. If not specified, returns up to 100 zones.
func (ZonesClient) ListByResourceGroup ¶
func (client ZonesClient) ListByResourceGroup(resourceGroupName string, top *int32) (result ZoneListResult, err error)
ListByResourceGroup lists the DNS zones within a resource group.
resourceGroupName is the name of the resource group. top is the maximum number of record sets to return. If not specified, returns up to 100 record sets.
func (ZonesClient) ListByResourceGroupNextResults ¶
func (client ZonesClient) ListByResourceGroupNextResults(lastResults ZoneListResult) (result ZoneListResult, err error)
ListByResourceGroupNextResults retrieves the next set of results, if any.
func (ZonesClient) ListByResourceGroupPreparer ¶
func (client ZonesClient) ListByResourceGroupPreparer(resourceGroupName string, top *int32) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ZonesClient) ListByResourceGroupResponder ¶
func (client ZonesClient) ListByResourceGroupResponder(resp *http.Response) (result ZoneListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ZonesClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ZonesClient) ListNextResults ¶
func (client ZonesClient) ListNextResults(lastResults ZoneListResult) (result ZoneListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (ZonesClient) ListPreparer ¶
func (client ZonesClient) ListPreparer(top *int32) (*http.Request, error)
ListPreparer prepares the List request.
func (ZonesClient) ListResponder ¶
func (client ZonesClient) ListResponder(resp *http.Response) (result ZoneListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ZonesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.