Documentation ¶
Overview ¶
Package cdn implements the Azure ARM Cdn service API version 2016-10-02.
Use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type CheckNameAvailabilityInput
- type CheckNameAvailabilityOutput
- type CustomDomain
- type CustomDomainListResult
- type CustomDomainParameters
- type CustomDomainProperties
- type CustomDomainPropertiesParameters
- type CustomDomainResourceState
- type CustomDomainsClient
- func (client CustomDomainsClient) Create(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client CustomDomainsClient) CreatePreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client CustomDomainsClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client CustomDomainsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client CustomDomainsClient) Delete(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client CustomDomainsClient) DeletePreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client CustomDomainsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client CustomDomainsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client CustomDomainsClient) Get(resourceGroupName string, profileName string, endpointName string, ...) (result CustomDomain, err error)
- func (client CustomDomainsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client CustomDomainsClient) GetResponder(resp *http.Response) (result CustomDomain, err error)
- func (client CustomDomainsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client CustomDomainsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string) (result CustomDomainListResult, err error)
- func (client CustomDomainsClient) ListByEndpointNextResults(lastResults CustomDomainListResult) (result CustomDomainListResult, err error)
- func (client CustomDomainsClient) ListByEndpointPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)
- func (client CustomDomainsClient) ListByEndpointResponder(resp *http.Response) (result CustomDomainListResult, err error)
- func (client CustomDomainsClient) ListByEndpointSender(req *http.Request) (*http.Response, error)
- type DeepCreatedOrigin
- type DeepCreatedOriginProperties
- type Endpoint
- type EndpointListResult
- type EndpointProperties
- type EndpointPropertiesUpdateParameters
- type EndpointResourceState
- type EndpointUpdateParameters
- type EndpointsClient
- func (client EndpointsClient) Create(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) CreatePreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) DeletePreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Get(resourceGroupName string, profileName string, endpointName string) (result Endpoint, err error)
- func (client EndpointsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)
- func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error)
- func (client EndpointsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) ListByProfile(resourceGroupName string, profileName string) (result EndpointListResult, err error)
- func (client EndpointsClient) ListByProfileNextResults(lastResults EndpointListResult) (result EndpointListResult, err error)
- func (client EndpointsClient) ListByProfilePreparer(resourceGroupName string, profileName string) (*http.Request, error)
- func (client EndpointsClient) ListByProfileResponder(resp *http.Response) (result EndpointListResult, err error)
- func (client EndpointsClient) ListByProfileSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) LoadContent(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) LoadContentPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) LoadContentResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) LoadContentSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) PurgeContent(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) PurgeContentPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) PurgeContentResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) PurgeContentSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Start(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) StartPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) StartSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Stop(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) StopPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) StopSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Update(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) UpdateSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) ValidateCustomDomain(resourceGroupName string, profileName string, endpointName string, ...) (result ValidateCustomDomainOutput, err error)
- func (client EndpointsClient) ValidateCustomDomainPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client EndpointsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error)
- func (client EndpointsClient) ValidateCustomDomainSender(req *http.Request) (*http.Response, error)
- type ErrorResponse
- type GeoFilter
- type GeoFilterActions
- type LoadParameters
- type ManagementClient
- func (client ManagementClient) CheckNameAvailability(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)
- func (client ManagementClient) CheckNameAvailabilityPreparer(checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error)
- func (client ManagementClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)
- func (client ManagementClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) ListOperations() (result OperationListResult, err error)
- func (client ManagementClient) ListOperationsNextResults(lastResults OperationListResult) (result OperationListResult, err error)
- func (client ManagementClient) ListOperationsPreparer() (*http.Request, error)
- func (client ManagementClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)
- func (client ManagementClient) ListOperationsSender(req *http.Request) (*http.Response, error)
- type Operation
- type OperationDisplay
- type OperationListResult
- type Origin
- type OriginListResult
- type OriginProperties
- type OriginPropertiesParameters
- type OriginResourceState
- type OriginUpdateParameters
- type OriginsClient
- func (client OriginsClient) Get(resourceGroupName string, profileName string, endpointName string, ...) (result Origin, err error)
- func (client OriginsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client OriginsClient) GetResponder(resp *http.Response) (result Origin, err error)
- func (client OriginsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client OriginsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string) (result OriginListResult, err error)
- func (client OriginsClient) ListByEndpointNextResults(lastResults OriginListResult) (result OriginListResult, err error)
- func (client OriginsClient) ListByEndpointPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)
- func (client OriginsClient) ListByEndpointResponder(resp *http.Response) (result OriginListResult, err error)
- func (client OriginsClient) ListByEndpointSender(req *http.Request) (*http.Response, error)
- func (client OriginsClient) Update(resourceGroupName string, profileName string, endpointName string, ...) (result autorest.Response, err error)
- func (client OriginsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointName string, ...) (*http.Request, error)
- func (client OriginsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client OriginsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type Profile
- type ProfileListResult
- type ProfileProperties
- type ProfileResourceState
- type ProfileUpdateParameters
- type ProfilesClient
- func (client ProfilesClient) Create(resourceGroupName string, profileName string, profile Profile, ...) (result autorest.Response, err error)
- func (client ProfilesClient) CreatePreparer(resourceGroupName string, profileName string, profile Profile, ...) (*http.Request, error)
- func (client ProfilesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ProfilesClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) Delete(resourceGroupName string, profileName string, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client ProfilesClient) DeletePreparer(resourceGroupName string, profileName string, cancel <-chan struct{}) (*http.Request, error)
- func (client ProfilesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ProfilesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) GenerateSsoURI(resourceGroupName string, profileName string) (result SsoURI, err error)
- func (client ProfilesClient) GenerateSsoURIPreparer(resourceGroupName string, profileName string) (*http.Request, error)
- func (client ProfilesClient) GenerateSsoURIResponder(resp *http.Response) (result SsoURI, err error)
- func (client ProfilesClient) GenerateSsoURISender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) Get(resourceGroupName string, profileName string) (result Profile, err error)
- func (client ProfilesClient) GetPreparer(resourceGroupName string, profileName string) (*http.Request, error)
- func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error)
- func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) List() (result ProfileListResult, err error)
- func (client ProfilesClient) ListByResourceGroup(resourceGroupName string) (result ProfileListResult, err error)
- func (client ProfilesClient) ListByResourceGroupNextResults(lastResults ProfileListResult) (result ProfileListResult, err error)
- func (client ProfilesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error)
- func (client ProfilesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) ListNextResults(lastResults ProfileListResult) (result ProfileListResult, err error)
- func (client ProfilesClient) ListPreparer() (*http.Request, error)
- func (client ProfilesClient) ListResponder(resp *http.Response) (result ProfileListResult, err error)
- func (client ProfilesClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) Update(resourceGroupName string, profileName string, ...) (result autorest.Response, err error)
- func (client ProfilesClient) UpdatePreparer(resourceGroupName string, profileName string, ...) (*http.Request, error)
- func (client ProfilesClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ProfilesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type PurgeParameters
- type QueryStringCachingBehavior
- type Resource
- type ResourceType
- type Sku
- type SkuName
- type SsoURI
- type ValidateCustomDomainInput
- type ValidateCustomDomainOutput
Constants ¶
const ( // APIVersion is the version of the Cdn APIVersion = "2016-10-02" // DefaultBaseURI is the default URI used for the service Cdn 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 CheckNameAvailabilityInput ¶
type CheckNameAvailabilityInput struct { Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
CheckNameAvailabilityInput is input of CheckNameAvailability API.
type CheckNameAvailabilityOutput ¶
type CheckNameAvailabilityOutput struct { autorest.Response `json:"-"` NameAvailable *bool `json:"nameAvailable,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` }
CheckNameAvailabilityOutput is output of check name availability API.
type CustomDomain ¶
type CustomDomain 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"` *CustomDomainProperties `json:"properties,omitempty"` }
CustomDomain is cDN CustomDomain represents a mapping between a user-specified domain name and a CDN endpoint. This is to use custom domain names to represent the URLs for branding purposes.
type CustomDomainListResult ¶
type CustomDomainListResult struct { autorest.Response `json:"-"` Value *[]CustomDomain `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
CustomDomainListResult is result of the request to list custom domains. It contains a list of custom domain objects and a URL link to get the next set of results.
func (CustomDomainListResult) CustomDomainListResultPreparer ¶
func (client CustomDomainListResult) CustomDomainListResultPreparer() (*http.Request, error)
CustomDomainListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type CustomDomainParameters ¶
type CustomDomainParameters struct {
*CustomDomainPropertiesParameters `json:"properties,omitempty"`
}
CustomDomainParameters is the customDomain JSON object required for custom domain creation or update.
type CustomDomainProperties ¶
type CustomDomainProperties struct { HostName *string `json:"hostName,omitempty"` ResourceState CustomDomainResourceState `json:"resourceState,omitempty"` ValidationData *string `json:"validationData,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
CustomDomainProperties is the JSON object that contains the properties of the custom domain to create.
type CustomDomainPropertiesParameters ¶
type CustomDomainPropertiesParameters struct {
HostName *string `json:"hostName,omitempty"`
}
CustomDomainPropertiesParameters is the JSON object that contains the properties of the custom domain to create.
type CustomDomainResourceState ¶
type CustomDomainResourceState string
CustomDomainResourceState enumerates the values for custom domain resource state.
const ( // Active specifies the active state for custom domain resource state. Active CustomDomainResourceState = "Active" // Creating specifies the creating state for custom domain resource state. Creating CustomDomainResourceState = "Creating" // Deleting specifies the deleting state for custom domain resource state. Deleting CustomDomainResourceState = "Deleting" )
type CustomDomainsClient ¶
type CustomDomainsClient struct {
ManagementClient
}
CustomDomainsClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.
func NewCustomDomainsClient ¶
func NewCustomDomainsClient(subscriptionID string) CustomDomainsClient
NewCustomDomainsClient creates an instance of the CustomDomainsClient client.
func NewCustomDomainsClientWithBaseURI ¶
func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string) CustomDomainsClient
NewCustomDomainsClientWithBaseURI creates an instance of the CustomDomainsClient client.
func (CustomDomainsClient) Create ¶
func (client CustomDomainsClient) Create(resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties CustomDomainParameters, cancel <-chan struct{}) (result autorest.Response, err error)
Create creates a new CDN custom domain within an endpoint. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint. customDomainProperties is custom domain properties required for creation.
func (CustomDomainsClient) CreatePreparer ¶
func (client CustomDomainsClient) CreatePreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties CustomDomainParameters, cancel <-chan struct{}) (*http.Request, error)
CreatePreparer prepares the Create request.
func (CustomDomainsClient) CreateResponder ¶
func (client CustomDomainsClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (CustomDomainsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (CustomDomainsClient) Delete ¶
func (client CustomDomainsClient) Delete(resourceGroupName string, profileName string, endpointName string, customDomainName string, cancel <-chan struct{}) (result autorest.Response, err error)
Delete deletes an existing CDN custom domain within an endpoint. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint.
func (CustomDomainsClient) DeletePreparer ¶
func (client CustomDomainsClient) DeletePreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (CustomDomainsClient) DeleteResponder ¶
func (client CustomDomainsClient) 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 (CustomDomainsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (CustomDomainsClient) Get ¶
func (client CustomDomainsClient) Get(resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error)
Get gets an existing CDN custom domain within an endpoint.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint.
func (CustomDomainsClient) GetPreparer ¶
func (client CustomDomainsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (CustomDomainsClient) GetResponder ¶
func (client CustomDomainsClient) GetResponder(resp *http.Response) (result CustomDomain, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (CustomDomainsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (CustomDomainsClient) ListByEndpoint ¶
func (client CustomDomainsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string) (result CustomDomainListResult, err error)
ListByEndpoint lists the existing CDN custom domains within an endpoint.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.
func (CustomDomainsClient) ListByEndpointNextResults ¶
func (client CustomDomainsClient) ListByEndpointNextResults(lastResults CustomDomainListResult) (result CustomDomainListResult, err error)
ListByEndpointNextResults retrieves the next set of results, if any.
func (CustomDomainsClient) ListByEndpointPreparer ¶
func (client CustomDomainsClient) ListByEndpointPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)
ListByEndpointPreparer prepares the ListByEndpoint request.
func (CustomDomainsClient) ListByEndpointResponder ¶
func (client CustomDomainsClient) ListByEndpointResponder(resp *http.Response) (result CustomDomainListResult, err error)
ListByEndpointResponder handles the response to the ListByEndpoint request. The method always closes the http.Response Body.
func (CustomDomainsClient) ListByEndpointSender ¶
ListByEndpointSender sends the ListByEndpoint request. The method will close the http.Response Body if it receives an error.
type DeepCreatedOrigin ¶
type DeepCreatedOrigin struct { Name *string `json:"name,omitempty"` *DeepCreatedOriginProperties `json:"properties,omitempty"` }
DeepCreatedOrigin is origins to be added when creating a CDN endpoint.
type DeepCreatedOriginProperties ¶
type DeepCreatedOriginProperties struct { HostName *string `json:"hostName,omitempty"` HTTPPort *int32 `json:"httpPort,omitempty"` HTTPSPort *int32 `json:"httpsPort,omitempty"` }
DeepCreatedOriginProperties is properties of origins Properties of the origin created on the CDN endpoint.
type Endpoint ¶
type Endpoint 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"` *EndpointProperties `json:"properties,omitempty"` }
Endpoint is cDN endpoint is the entity within a CDN profile containing configuration information regarding caching behaviors and origins. The CDN endpoint is exposed using the URL format <endpointname>.azureedge.net by default, but custom domains can also be created.
type EndpointListResult ¶
type EndpointListResult struct { autorest.Response `json:"-"` Value *[]Endpoint `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
EndpointListResult is result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the the next set of results.
func (EndpointListResult) EndpointListResultPreparer ¶
func (client EndpointListResult) EndpointListResultPreparer() (*http.Request, error)
EndpointListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type EndpointProperties ¶
type EndpointProperties struct { OriginHostHeader *string `json:"originHostHeader,omitempty"` OriginPath *string `json:"originPath,omitempty"` ContentTypesToCompress *[]string `json:"contentTypesToCompress,omitempty"` IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` IsHTTPAllowed *bool `json:"isHttpAllowed,omitempty"` IsHTTPSAllowed *bool `json:"isHttpsAllowed,omitempty"` QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` OptimizationType *string `json:"optimizationType,omitempty"` GeoFilters *[]GeoFilter `json:"geoFilters,omitempty"` HostName *string `json:"hostName,omitempty"` Origins *[]DeepCreatedOrigin `json:"origins,omitempty"` ResourceState EndpointResourceState `json:"resourceState,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
EndpointProperties is the JSON object that contains the properties of the endpoint to create.
type EndpointPropertiesUpdateParameters ¶
type EndpointPropertiesUpdateParameters struct { OriginHostHeader *string `json:"originHostHeader,omitempty"` OriginPath *string `json:"originPath,omitempty"` ContentTypesToCompress *[]string `json:"contentTypesToCompress,omitempty"` IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` IsHTTPAllowed *bool `json:"isHttpAllowed,omitempty"` IsHTTPSAllowed *bool `json:"isHttpsAllowed,omitempty"` QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` OptimizationType *string `json:"optimizationType,omitempty"` GeoFilters *[]GeoFilter `json:"geoFilters,omitempty"` }
EndpointPropertiesUpdateParameters is result of the request to list endpoints. It contains a list of endpoints and a URL link to get the next set of results.
type EndpointResourceState ¶
type EndpointResourceState string
EndpointResourceState enumerates the values for endpoint resource state.
const ( // EndpointResourceStateCreating specifies the endpoint resource state // creating state for endpoint resource state. EndpointResourceStateCreating EndpointResourceState = "Creating" // EndpointResourceStateDeleting specifies the endpoint resource state // deleting state for endpoint resource state. EndpointResourceStateDeleting EndpointResourceState = "Deleting" // EndpointResourceStateRunning specifies the endpoint resource state // running state for endpoint resource state. EndpointResourceStateRunning EndpointResourceState = "Running" // EndpointResourceStateStarting specifies the endpoint resource state // starting state for endpoint resource state. EndpointResourceStateStarting EndpointResourceState = "Starting" // EndpointResourceStateStopped specifies the endpoint resource state // stopped state for endpoint resource state. EndpointResourceStateStopped EndpointResourceState = "Stopped" // EndpointResourceStateStopping specifies the endpoint resource state // stopping state for endpoint resource state. EndpointResourceStateStopping EndpointResourceState = "Stopping" )
type EndpointUpdateParameters ¶
type EndpointUpdateParameters struct { Tags *map[string]*string `json:"tags,omitempty"` *EndpointPropertiesUpdateParameters `json:"properties,omitempty"` }
EndpointUpdateParameters is endpoint properties required for new endpoint creation.
type EndpointsClient ¶
type EndpointsClient struct {
ManagementClient
}
EndpointsClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.
func NewEndpointsClient ¶
func NewEndpointsClient(subscriptionID string) EndpointsClient
NewEndpointsClient creates an instance of the EndpointsClient client.
func NewEndpointsClientWithBaseURI ¶
func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient
NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client.
func (EndpointsClient) Create ¶
func (client EndpointsClient) Create(resourceGroupName string, profileName string, endpointName string, endpoint Endpoint, cancel <-chan struct{}) (result autorest.Response, err error)
Create creates a new CDN endpoint with the specified parameters. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. endpoint is endpoint properties
func (EndpointsClient) CreatePreparer ¶
func (client EndpointsClient) CreatePreparer(resourceGroupName string, profileName string, endpointName string, endpoint Endpoint, cancel <-chan struct{}) (*http.Request, error)
CreatePreparer prepares the Create request.
func (EndpointsClient) CreateResponder ¶
func (client EndpointsClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (EndpointsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Delete ¶
func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (result autorest.Response, err error)
Delete deletes an existing CDN endpoint with the specified parameters. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.
func (EndpointsClient) DeletePreparer ¶
func (client EndpointsClient) DeletePreparer(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (EndpointsClient) DeleteResponder ¶
func (client EndpointsClient) 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 (EndpointsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Get ¶
func (client EndpointsClient) Get(resourceGroupName string, profileName string, endpointName string) (result Endpoint, err error)
Get gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.
func (EndpointsClient) GetPreparer ¶
func (client EndpointsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (EndpointsClient) GetResponder ¶
func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (EndpointsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) ListByProfile ¶
func (client EndpointsClient) ListByProfile(resourceGroupName string, profileName string) (result EndpointListResult, err error)
ListByProfile lists existing CDN endpoints.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.
func (EndpointsClient) ListByProfileNextResults ¶
func (client EndpointsClient) ListByProfileNextResults(lastResults EndpointListResult) (result EndpointListResult, err error)
ListByProfileNextResults retrieves the next set of results, if any.
func (EndpointsClient) ListByProfilePreparer ¶
func (client EndpointsClient) ListByProfilePreparer(resourceGroupName string, profileName string) (*http.Request, error)
ListByProfilePreparer prepares the ListByProfile request.
func (EndpointsClient) ListByProfileResponder ¶
func (client EndpointsClient) ListByProfileResponder(resp *http.Response) (result EndpointListResult, err error)
ListByProfileResponder handles the response to the ListByProfile request. The method always closes the http.Response Body.
func (EndpointsClient) ListByProfileSender ¶
ListByProfileSender sends the ListByProfile request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) LoadContent ¶
func (client EndpointsClient) LoadContent(resourceGroupName string, profileName string, endpointName string, contentFilePaths LoadParameters, cancel <-chan struct{}) (result autorest.Response, err error)
LoadContent forcibly pre-loads CDN endpoint content. Available for Verizon Profiles. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. contentFilePaths is the path to the content to be loaded. Path should describe a file.
func (EndpointsClient) LoadContentPreparer ¶
func (client EndpointsClient) LoadContentPreparer(resourceGroupName string, profileName string, endpointName string, contentFilePaths LoadParameters, cancel <-chan struct{}) (*http.Request, error)
LoadContentPreparer prepares the LoadContent request.
func (EndpointsClient) LoadContentResponder ¶
func (client EndpointsClient) LoadContentResponder(resp *http.Response) (result autorest.Response, err error)
LoadContentResponder handles the response to the LoadContent request. The method always closes the http.Response Body.
func (EndpointsClient) LoadContentSender ¶
LoadContentSender sends the LoadContent request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) PurgeContent ¶
func (client EndpointsClient) PurgeContent(resourceGroupName string, profileName string, endpointName string, contentFilePaths PurgeParameters, cancel <-chan struct{}) (result autorest.Response, err error)
PurgeContent forcibly purges CDN endpoint content. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. contentFilePaths is the path to the content to be purged. Path can describe a file or directory using the wildcard. e.g. '/my/directory/*' or '/my/file.exe/'
func (EndpointsClient) PurgeContentPreparer ¶
func (client EndpointsClient) PurgeContentPreparer(resourceGroupName string, profileName string, endpointName string, contentFilePaths PurgeParameters, cancel <-chan struct{}) (*http.Request, error)
PurgeContentPreparer prepares the PurgeContent request.
func (EndpointsClient) PurgeContentResponder ¶
func (client EndpointsClient) PurgeContentResponder(resp *http.Response) (result autorest.Response, err error)
PurgeContentResponder handles the response to the PurgeContent request. The method always closes the http.Response Body.
func (EndpointsClient) PurgeContentSender ¶
PurgeContentSender sends the PurgeContent request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Start ¶
func (client EndpointsClient) Start(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (result autorest.Response, err error)
Start starts an existing stopped CDN endpoint. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.
func (EndpointsClient) StartPreparer ¶
func (client EndpointsClient) StartPreparer(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (*http.Request, error)
StartPreparer prepares the Start request.
func (EndpointsClient) StartResponder ¶
func (client EndpointsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
StartResponder handles the response to the Start request. The method always closes the http.Response Body.
func (EndpointsClient) StartSender ¶
StartSender sends the Start request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Stop ¶
func (client EndpointsClient) Stop(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (result autorest.Response, err error)
Stop stops an existing running CDN endpoint. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.
func (EndpointsClient) StopPreparer ¶
func (client EndpointsClient) StopPreparer(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (*http.Request, error)
StopPreparer prepares the Stop request.
func (EndpointsClient) StopResponder ¶
func (client EndpointsClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
StopResponder handles the response to the Stop request. The method always closes the http.Response Body.
func (EndpointsClient) StopSender ¶
StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Update ¶
func (client EndpointsClient) Update(resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties EndpointUpdateParameters, cancel <-chan struct{}) (result autorest.Response, err error)
Update updates an existing CDN endpoint with the specified parameters. Only tags and OriginHostHeader can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update custom domains, use the Update Custom Domain operation. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. endpointUpdateProperties is endpoint update properties
func (EndpointsClient) UpdatePreparer ¶
func (client EndpointsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties EndpointUpdateParameters, cancel <-chan struct{}) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (EndpointsClient) UpdateResponder ¶
func (client EndpointsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (EndpointsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) ValidateCustomDomain ¶
func (client EndpointsClient) ValidateCustomDomain(resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error)
ValidateCustomDomain validates a custom domain mapping to ensure it maps to the correct CNAME in DNS.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainProperties is custom domain to validate.
func (EndpointsClient) ValidateCustomDomainPreparer ¶
func (client EndpointsClient) ValidateCustomDomainPreparer(resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (*http.Request, error)
ValidateCustomDomainPreparer prepares the ValidateCustomDomain request.
func (EndpointsClient) ValidateCustomDomainResponder ¶
func (client EndpointsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error)
ValidateCustomDomainResponder handles the response to the ValidateCustomDomain request. The method always closes the http.Response Body.
func (EndpointsClient) ValidateCustomDomainSender ¶
ValidateCustomDomainSender sends the ValidateCustomDomain request. The method will close the http.Response Body if it receives an error.
type ErrorResponse ¶
type ErrorResponse struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` }
ErrorResponse is error reponse indicates CDN service is not able to process the incoming request. The reason is provided in the error message.
type GeoFilter ¶
type GeoFilter struct { RelativePath *string `json:"relativePath,omitempty"` Action GeoFilterActions `json:"action,omitempty"` CountryCodes *[]string `json:"countryCodes,omitempty"` }
GeoFilter is geo filter of a CDN endpoint.
type GeoFilterActions ¶
type GeoFilterActions string
GeoFilterActions enumerates the values for geo filter actions.
const ( // Allow specifies the allow state for geo filter actions. Allow GeoFilterActions = "Allow" // Block specifies the block state for geo filter actions. Block GeoFilterActions = "Block" )
type LoadParameters ¶
type LoadParameters struct {
ContentPaths *[]string `json:"contentPaths,omitempty"`
}
LoadParameters is parameters required for endpoint load.
type ManagementClient ¶
type ManagementClient struct { autorest.Client BaseURI string APIVersion string SubscriptionID string }
ManagementClient is the base client for Cdn.
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.
func (ManagementClient) CheckNameAvailability ¶
func (client ManagementClient) CheckNameAvailability(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)
CheckNameAvailability check the availability of a resource name without creating the resource. This is needed for resources where name is globally unique, such as a CDN endpoint.
checkNameAvailabilityInput is input to check.
func (ManagementClient) CheckNameAvailabilityPreparer ¶
func (client ManagementClient) CheckNameAvailabilityPreparer(checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error)
CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
func (ManagementClient) CheckNameAvailabilityResponder ¶
func (client ManagementClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)
CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.
func (ManagementClient) CheckNameAvailabilitySender ¶
func (client ManagementClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.
func (ManagementClient) ListOperations ¶
func (client ManagementClient) ListOperations() (result OperationListResult, err error)
ListOperations lists all of the available CDN REST API operations.
func (ManagementClient) ListOperationsNextResults ¶
func (client ManagementClient) ListOperationsNextResults(lastResults OperationListResult) (result OperationListResult, err error)
ListOperationsNextResults retrieves the next set of results, if any.
func (ManagementClient) ListOperationsPreparer ¶
func (client ManagementClient) ListOperationsPreparer() (*http.Request, error)
ListOperationsPreparer prepares the ListOperations request.
func (ManagementClient) ListOperationsResponder ¶
func (client ManagementClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)
ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.
func (ManagementClient) ListOperationsSender ¶
ListOperationsSender sends the ListOperations request. The method will close the http.Response Body if it receives an error.
type Operation ¶
type Operation struct { Name *string `json:"name,omitempty"` Display *OperationDisplay `json:"display,omitempty"` }
Operation is cDN REST API operation
type OperationDisplay ¶
type OperationDisplay struct { Provider *string `json:"provider,omitempty"` Resource *string `json:"resource,omitempty"` Operation *string `json:"operation,omitempty"` }
OperationDisplay is the object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` Value *[]Operation `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
OperationListResult is result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) OperationListResultPreparer ¶
func (client OperationListResult) OperationListResultPreparer() (*http.Request, error)
OperationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type Origin ¶
type Origin 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"` *OriginProperties `json:"properties,omitempty"` }
Origin is cDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.
type OriginListResult ¶
type OriginListResult struct { autorest.Response `json:"-"` Value *[]Origin `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
OriginListResult is result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results.
func (OriginListResult) OriginListResultPreparer ¶
func (client OriginListResult) OriginListResultPreparer() (*http.Request, error)
OriginListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type OriginProperties ¶
type OriginProperties struct { HostName *string `json:"hostName,omitempty"` HTTPPort *int32 `json:"httpPort,omitempty"` HTTPSPort *int32 `json:"httpsPort,omitempty"` ResourceState OriginResourceState `json:"resourceState,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
OriginProperties is the JSON object that contains the properties of the origin to create.
type OriginPropertiesParameters ¶
type OriginPropertiesParameters struct { HostName *string `json:"hostName,omitempty"` HTTPPort *int32 `json:"httpPort,omitempty"` HTTPSPort *int32 `json:"httpsPort,omitempty"` }
OriginPropertiesParameters is the JSON object that contains the properties of the origin to create.
type OriginResourceState ¶
type OriginResourceState string
OriginResourceState enumerates the values for origin resource state.
const ( // OriginResourceStateActive specifies the origin resource state active // state for origin resource state. OriginResourceStateActive OriginResourceState = "Active" // OriginResourceStateCreating specifies the origin resource state // creating state for origin resource state. OriginResourceStateCreating OriginResourceState = "Creating" // OriginResourceStateDeleting specifies the origin resource state // deleting state for origin resource state. OriginResourceStateDeleting OriginResourceState = "Deleting" )
type OriginUpdateParameters ¶
type OriginUpdateParameters struct {
*OriginPropertiesParameters `json:"properties,omitempty"`
}
OriginUpdateParameters is origin properties needed for origin creation or update.
type OriginsClient ¶
type OriginsClient struct {
ManagementClient
}
OriginsClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.
func NewOriginsClient ¶
func NewOriginsClient(subscriptionID string) OriginsClient
NewOriginsClient creates an instance of the OriginsClient client.
func NewOriginsClientWithBaseURI ¶
func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string) OriginsClient
NewOriginsClientWithBaseURI creates an instance of the OriginsClient client.
func (OriginsClient) Get ¶
func (client OriginsClient) Get(resourceGroupName string, profileName string, endpointName string, originName string) (result Origin, err error)
Get gets an existing CDN origin within an endpoint.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. originName is name of the origin which is unique within the endpoint.
func (OriginsClient) GetPreparer ¶
func (client OriginsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string, originName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (OriginsClient) GetResponder ¶
func (client OriginsClient) GetResponder(resp *http.Response) (result Origin, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (OriginsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (OriginsClient) ListByEndpoint ¶
func (client OriginsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string) (result OriginListResult, err error)
ListByEndpoint lists the existing CDN origins within an endpoint.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.
func (OriginsClient) ListByEndpointNextResults ¶
func (client OriginsClient) ListByEndpointNextResults(lastResults OriginListResult) (result OriginListResult, err error)
ListByEndpointNextResults retrieves the next set of results, if any.
func (OriginsClient) ListByEndpointPreparer ¶
func (client OriginsClient) ListByEndpointPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)
ListByEndpointPreparer prepares the ListByEndpoint request.
func (OriginsClient) ListByEndpointResponder ¶
func (client OriginsClient) ListByEndpointResponder(resp *http.Response) (result OriginListResult, err error)
ListByEndpointResponder handles the response to the ListByEndpoint request. The method always closes the http.Response Body.
func (OriginsClient) ListByEndpointSender ¶
ListByEndpointSender sends the ListByEndpoint request. The method will close the http.Response Body if it receives an error.
func (OriginsClient) Update ¶
func (client OriginsClient) Update(resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties OriginUpdateParameters, cancel <-chan struct{}) (result autorest.Response, err error)
Update updates an existing CDN origin within an endpoint. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. originName is name of the origin which is unique within the endpoint. originUpdateProperties is origin properties
func (OriginsClient) UpdatePreparer ¶
func (client OriginsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties OriginUpdateParameters, cancel <-chan struct{}) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (OriginsClient) UpdateResponder ¶
func (client OriginsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (OriginsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type Profile ¶
type Profile 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"` Sku *Sku `json:"sku,omitempty"` *ProfileProperties `json:"properties,omitempty"` }
Profile is cDN profile represents the top level resource and the entry point into the CDN API. This allows users to set up a logical grouping of endpoints in addition to creating shared configuration settings and selecting pricing tiers and providers.
type ProfileListResult ¶
type ProfileListResult struct { autorest.Response `json:"-"` Value *[]Profile `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
ProfileListResult is result of the request to list profiles. It contains a list of profile objects and a URL link to get the the next set of results.
func (ProfileListResult) ProfileListResultPreparer ¶
func (client ProfileListResult) ProfileListResultPreparer() (*http.Request, error)
ProfileListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type ProfileProperties ¶
type ProfileProperties struct { ResourceState ProfileResourceState `json:"resourceState,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
ProfileProperties is the JSON object that contains the properties of the profile to create.
type ProfileResourceState ¶
type ProfileResourceState string
ProfileResourceState enumerates the values for profile resource state.
const ( // ProfileResourceStateActive specifies the profile resource state active // state for profile resource state. ProfileResourceStateActive ProfileResourceState = "Active" // ProfileResourceStateCreating specifies the profile resource state // creating state for profile resource state. ProfileResourceStateCreating ProfileResourceState = "Creating" // ProfileResourceStateDeleting specifies the profile resource state // deleting state for profile resource state. ProfileResourceStateDeleting ProfileResourceState = "Deleting" // ProfileResourceStateDisabled specifies the profile resource state // disabled state for profile resource state. ProfileResourceStateDisabled ProfileResourceState = "Disabled" )
type ProfileUpdateParameters ¶
ProfileUpdateParameters is profile properties required for profile update.
type ProfilesClient ¶
type ProfilesClient struct {
ManagementClient
}
ProfilesClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.
func NewProfilesClient ¶
func NewProfilesClient(subscriptionID string) ProfilesClient
NewProfilesClient creates an instance of the ProfilesClient client.
func NewProfilesClientWithBaseURI ¶
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient
NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
func (ProfilesClient) Create ¶
func (client ProfilesClient) Create(resourceGroupName string, profileName string, profile Profile, cancel <-chan struct{}) (result autorest.Response, err error)
Create creates a new CDN profile with a profile name under the specified subscription and resource group. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. profile is profile properties needed to create a new profile.
func (ProfilesClient) CreatePreparer ¶
func (client ProfilesClient) CreatePreparer(resourceGroupName string, profileName string, profile Profile, cancel <-chan struct{}) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ProfilesClient) CreateResponder ¶
func (client ProfilesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (ProfilesClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) Delete ¶
func (client ProfilesClient) Delete(resourceGroupName string, profileName string, cancel <-chan struct{}) (result autorest.Response, err error)
Delete deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the deletion of all subresources including endpoints, origins and custom domains. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.
func (ProfilesClient) DeletePreparer ¶
func (client ProfilesClient) DeletePreparer(resourceGroupName string, profileName string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ProfilesClient) DeleteResponder ¶
func (client ProfilesClient) 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 (ProfilesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) GenerateSsoURI ¶
func (client ProfilesClient) GenerateSsoURI(resourceGroupName string, profileName string) (result SsoURI, err error)
GenerateSsoURI generates a dynamic SSO URI used to sign in to the CDN supplemental portal. Supplemnetal portal is used to configure advanced feature capabilities that are not yet available in the Azure portal, such as core reports in a standard profile; rules engine, advanced HTTP reports, and real-time stats and alerts in a premium profile. The SSO URI changes approximately every 10 minutes.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.
func (ProfilesClient) GenerateSsoURIPreparer ¶
func (client ProfilesClient) GenerateSsoURIPreparer(resourceGroupName string, profileName string) (*http.Request, error)
GenerateSsoURIPreparer prepares the GenerateSsoURI request.
func (ProfilesClient) GenerateSsoURIResponder ¶
func (client ProfilesClient) GenerateSsoURIResponder(resp *http.Response) (result SsoURI, err error)
GenerateSsoURIResponder handles the response to the GenerateSsoURI request. The method always closes the http.Response Body.
func (ProfilesClient) GenerateSsoURISender ¶
GenerateSsoURISender sends the GenerateSsoURI request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) Get ¶
func (client ProfilesClient) Get(resourceGroupName string, profileName string) (result Profile, err error)
Get gets a CDN profile with the specified profile name under the specified subscription and resource group.
resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.
func (ProfilesClient) GetPreparer ¶
func (client ProfilesClient) GetPreparer(resourceGroupName string, profileName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ProfilesClient) GetResponder ¶
func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ProfilesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) List ¶
func (client ProfilesClient) List() (result ProfileListResult, err error)
List lists all the CDN profiles within an Azure subscription.
func (ProfilesClient) ListByResourceGroup ¶
func (client ProfilesClient) ListByResourceGroup(resourceGroupName string) (result ProfileListResult, err error)
ListByResourceGroup lists all the CDN profiles within a resource group.
resourceGroupName is name of the Resource group within the Azure subscription.
func (ProfilesClient) ListByResourceGroupNextResults ¶
func (client ProfilesClient) ListByResourceGroupNextResults(lastResults ProfileListResult) (result ProfileListResult, err error)
ListByResourceGroupNextResults retrieves the next set of results, if any.
func (ProfilesClient) ListByResourceGroupPreparer ¶
func (client ProfilesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ProfilesClient) ListByResourceGroupResponder ¶
func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ProfilesClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) ListNextResults ¶
func (client ProfilesClient) ListNextResults(lastResults ProfileListResult) (result ProfileListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (ProfilesClient) ListPreparer ¶
func (client ProfilesClient) ListPreparer() (*http.Request, error)
ListPreparer prepares the List request.
func (ProfilesClient) ListResponder ¶
func (client ProfilesClient) ListResponder(resp *http.Response) (result ProfileListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ProfilesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) Update ¶
func (client ProfilesClient) Update(resourceGroupName string, profileName string, profileUpdateParameters ProfileUpdateParameters, cancel <-chan struct{}) (result autorest.Response, err error)
Update updates an existing CDN profile with the specified profile name under the specified subscription and resource group. 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 name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. profileUpdateParameters is profile properties needed to update an existing profile.
func (ProfilesClient) UpdatePreparer ¶
func (client ProfilesClient) UpdatePreparer(resourceGroupName string, profileName string, profileUpdateParameters ProfileUpdateParameters, cancel <-chan struct{}) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ProfilesClient) UpdateResponder ¶
func (client ProfilesClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ProfilesClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type PurgeParameters ¶
type PurgeParameters struct {
ContentPaths *[]string `json:"contentPaths,omitempty"`
}
PurgeParameters is parameters required for endpoint purge.
type QueryStringCachingBehavior ¶
type QueryStringCachingBehavior string
QueryStringCachingBehavior enumerates the values for query string caching behavior.
const ( // BypassCaching specifies the bypass caching state for query string // caching behavior. BypassCaching QueryStringCachingBehavior = "BypassCaching" // IgnoreQueryString specifies the ignore query string state for query // string caching behavior. IgnoreQueryString QueryStringCachingBehavior = "IgnoreQueryString" // NotSet specifies the not set state for query string caching behavior. NotSet QueryStringCachingBehavior = "NotSet" // UseQueryString specifies the use query string state for query string // caching behavior. UseQueryString QueryStringCachingBehavior = "UseQueryString" )
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 the Resource definition.
type ResourceType ¶
type ResourceType string
ResourceType enumerates the values for resource type.
const ( // MicrosoftCdnProfilesEndpoints specifies the microsoft cdn profiles // endpoints state for resource type. MicrosoftCdnProfilesEndpoints ResourceType = "Microsoft.Cdn/Profiles/Endpoints" )
type Sku ¶
type Sku struct {
Name SkuName `json:"name,omitempty"`
}
Sku is the SKU (pricing tier) of the CDN profile.
type SkuName ¶
type SkuName string
SkuName enumerates the values for sku name.
const ( // CustomVerizon specifies the custom verizon state for sku name. CustomVerizon SkuName = "Custom_Verizon" // PremiumVerizon specifies the premium verizon state for sku name. PremiumVerizon SkuName = "Premium_Verizon" // StandardAkamai specifies the standard akamai state for sku name. StandardAkamai SkuName = "Standard_Akamai" // StandardChinaCdn specifies the standard china cdn state for sku name. StandardChinaCdn SkuName = "Standard_ChinaCdn" // StandardVerizon specifies the standard verizon state for sku name. StandardVerizon SkuName = "Standard_Verizon" )
type SsoURI ¶
type SsoURI struct { autorest.Response `json:"-"` SsoURIValue *string `json:"ssoUriValue,omitempty"` }
SsoURI is sSO URI required to login to third party web portal.
type ValidateCustomDomainInput ¶
type ValidateCustomDomainInput struct {
HostName *string `json:"hostName,omitempty"`
}
ValidateCustomDomainInput is input of the custom domain to be validated.
type ValidateCustomDomainOutput ¶
type ValidateCustomDomainOutput struct { autorest.Response `json:"-"` CustomDomainValidated *bool `json:"customDomainValidated,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` }
ValidateCustomDomainOutput is output of custom domain validation.