你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Endpoints interface
表示终结点的接口。
方法
方法详细信息
beginCreate(string, string, string, Endpoint, EndpointsCreateOptionalParams)
在指定的订阅、资源组和配置文件下创建具有指定终结点名称的新 CDN 终结点。
function beginCreate(resourceGroupName: string, profileName: string, endpointName: string, endpoint: Endpoint, options?: EndpointsCreateOptionalParams): Promise<SimplePollerLike<OperationState<Endpoint>, Endpoint>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- endpoint
- Endpoint
终结点属性
- options
- EndpointsCreateOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<Endpoint>, Endpoint>>
beginCreateAndWait(string, string, string, Endpoint, EndpointsCreateOptionalParams)
在指定的订阅、资源组和配置文件下创建具有指定终结点名称的新 CDN 终结点。
function beginCreateAndWait(resourceGroupName: string, profileName: string, endpointName: string, endpoint: Endpoint, options?: EndpointsCreateOptionalParams): Promise<Endpoint>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- endpoint
- Endpoint
终结点属性
- options
- EndpointsCreateOptionalParams
选项参数。
返回
Promise<Endpoint>
beginDelete(string, string, string, EndpointsDeleteOptionalParams)
删除具有指定订阅、资源组和配置文件下指定终结点名称的现有 CDN 终结点。
function beginDelete(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsDeleteOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, EndpointsDeleteOptionalParams)
删除具有指定订阅、资源组和配置文件下指定终结点名称的现有 CDN 终结点。
function beginDeleteAndWait(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsDeleteOptionalParams
选项参数。
返回
Promise<void>
beginLoadContent(string, string, string, LoadParameters, EndpointsLoadContentOptionalParams)
将内容预加载到 CDN。 可用于 Verizon 配置文件。
function beginLoadContent(resourceGroupName: string, profileName: string, endpointName: string, contentFilePaths: LoadParameters, options?: EndpointsLoadContentOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- contentFilePaths
- LoadParameters
要加载的内容的路径。 路径应为完整 URL,例如加载单个文件的“/pictures/city.png”
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginLoadContentAndWait(string, string, string, LoadParameters, EndpointsLoadContentOptionalParams)
将内容预加载到 CDN。 可用于 Verizon 配置文件。
function beginLoadContentAndWait(resourceGroupName: string, profileName: string, endpointName: string, contentFilePaths: LoadParameters, options?: EndpointsLoadContentOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- contentFilePaths
- LoadParameters
要加载的内容的路径。 路径应为完整 URL,例如加载单个文件的“/pictures/city.png”
选项参数。
返回
Promise<void>
beginPurgeContent(string, string, string, PurgeParameters, EndpointsPurgeContentOptionalParams)
从 CDN 中删除内容。
function beginPurgeContent(resourceGroupName: string, profileName: string, endpointName: string, contentFilePaths: PurgeParameters, options?: EndpointsPurgeContentOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- contentFilePaths
- PurgeParameters
要清除的内容的路径。 路径可以是完整 URL,例如删除单个文件的“/pictures/city.png”,或者包含通配符的目录,例如“/pictures/*”,用于删除目录中的所有文件夹和文件。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginPurgeContentAndWait(string, string, string, PurgeParameters, EndpointsPurgeContentOptionalParams)
从 CDN 中删除内容。
function beginPurgeContentAndWait(resourceGroupName: string, profileName: string, endpointName: string, contentFilePaths: PurgeParameters, options?: EndpointsPurgeContentOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- contentFilePaths
- PurgeParameters
要清除的内容的路径。 路径可以是完整 URL,例如删除单个文件的“/pictures/city.png”,或者包含通配符的目录,例如“/pictures/*”,用于删除目录中的所有文件夹和文件。
选项参数。
返回
Promise<void>
beginStart(string, string, string, EndpointsStartOptionalParams)
启动处于停止状态的现有 CDN 终结点。
function beginStart(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsStartOptionalParams): Promise<SimplePollerLike<OperationState<Endpoint>, Endpoint>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsStartOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<Endpoint>, Endpoint>>
beginStartAndWait(string, string, string, EndpointsStartOptionalParams)
启动处于停止状态的现有 CDN 终结点。
function beginStartAndWait(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsStartOptionalParams): Promise<Endpoint>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsStartOptionalParams
选项参数。
返回
Promise<Endpoint>
beginStop(string, string, string, EndpointsStopOptionalParams)
停止现有的正在运行的 CDN 终结点。
function beginStop(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsStopOptionalParams): Promise<SimplePollerLike<OperationState<Endpoint>, Endpoint>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsStopOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<Endpoint>, Endpoint>>
beginStopAndWait(string, string, string, EndpointsStopOptionalParams)
停止现有的正在运行的 CDN 终结点。
function beginStopAndWait(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsStopOptionalParams): Promise<Endpoint>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsStopOptionalParams
选项参数。
返回
Promise<Endpoint>
beginUpdate(string, string, string, EndpointUpdateParameters, EndpointsUpdateOptionalParams)
使用指定订阅、资源组和配置文件下的指定终结点名称更新现有 CDN 终结点。 创建终结点后只能更新标记。 若要更新源,请使用“更新源”作。 若要更新源组,请使用“更新源”组作。 若要更新自定义域,请使用“更新自定义域”作。
function beginUpdate(resourceGroupName: string, profileName: string, endpointName: string, endpointUpdateProperties: EndpointUpdateParameters, options?: EndpointsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Endpoint>, Endpoint>>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- endpointUpdateProperties
- EndpointUpdateParameters
终结点更新属性
- options
- EndpointsUpdateOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<Endpoint>, Endpoint>>
beginUpdateAndWait(string, string, string, EndpointUpdateParameters, EndpointsUpdateOptionalParams)
使用指定订阅、资源组和配置文件下的指定终结点名称更新现有 CDN 终结点。 创建终结点后只能更新标记。 若要更新源,请使用“更新源”作。 若要更新源组,请使用“更新源”组作。 若要更新自定义域,请使用“更新自定义域”作。
function beginUpdateAndWait(resourceGroupName: string, profileName: string, endpointName: string, endpointUpdateProperties: EndpointUpdateParameters, options?: EndpointsUpdateOptionalParams): Promise<Endpoint>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- endpointUpdateProperties
- EndpointUpdateParameters
终结点更新属性
- options
- EndpointsUpdateOptionalParams
选项参数。
返回
Promise<Endpoint>
get(string, string, string, EndpointsGetOptionalParams)
获取具有指定订阅、资源组和配置文件下指定终结点名称的现有 CDN 终结点。
function get(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsGetOptionalParams): Promise<Endpoint>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- options
- EndpointsGetOptionalParams
选项参数。
返回
Promise<Endpoint>
listByProfile(string, string, EndpointsListByProfileOptionalParams)
列出现有的 CDN 终结点。
function listByProfile(resourceGroupName: string, profileName: string, options?: EndpointsListByProfileOptionalParams): PagedAsyncIterableIterator<Endpoint, Endpoint[], PageSettings>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
选项参数。
返回
listResourceUsage(string, string, string, EndpointsListResourceUsageOptionalParams)
检查给定终结点下地理筛选器和自定义域的配额和使用情况。
function listResourceUsage(resourceGroupName: string, profileName: string, endpointName: string, options?: EndpointsListResourceUsageOptionalParams): PagedAsyncIterableIterator<ResourceUsage, ResourceUsage[], PageSettings>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
选项参数。
返回
validateCustomDomain(string, string, string, ValidateCustomDomainInput, EndpointsValidateCustomDomainOptionalParams)
验证自定义域映射,以确保它映射到 DNS 中正确的 CDN 终结点。
function validateCustomDomain(resourceGroupName: string, profileName: string, endpointName: string, customDomainProperties: ValidateCustomDomainInput, options?: EndpointsValidateCustomDomainOptionalParams): Promise<ValidateCustomDomainOutput>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- profileName
-
string
资源组中唯一的 CDN 配置文件的名称。
- endpointName
-
string
全局唯一的配置文件下的终结点的名称。
- customDomainProperties
- ValidateCustomDomainInput
要验证的自定义域。
选项参数。
返回
Promise<ValidateCustomDomainOutput>