你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Services interface

表示服务的接口。

方法

beginCreateOrUpdate(string, string, ServiceResource, ServicesCreateOrUpdateOptionalParams)

创建新的服务或更新退出的服务。

beginCreateOrUpdateAndWait(string, string, ServiceResource, ServicesCreateOrUpdateOptionalParams)

创建新的服务或更新退出的服务。

beginDelete(string, string, ServicesDeleteOptionalParams)

删除服务的操作。

beginDeleteAndWait(string, string, ServicesDeleteOptionalParams)

删除服务的操作。

beginStart(string, string, ServicesStartOptionalParams)

启动服务。

beginStartAndWait(string, string, ServicesStartOptionalParams)

启动服务。

beginStop(string, string, ServicesStopOptionalParams)

停止服务。

beginStopAndWait(string, string, ServicesStopOptionalParams)

停止服务。

beginUpdate(string, string, ServiceResource, ServicesUpdateOptionalParams)

更新退出服务的操作。

beginUpdateAndWait(string, string, ServiceResource, ServicesUpdateOptionalParams)

更新退出服务的操作。

checkNameAvailability(string, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams)

检查资源名称是否有效且尚未使用。

disableTestEndpoint(string, string, ServicesDisableTestEndpointOptionalParams)

禁用服务的测试终结点功能。

enableTestEndpoint(string, string, ServicesEnableTestEndpointOptionalParams)

为服务启用测试终结点功能。

get(string, string, ServicesGetOptionalParams)

获取服务及其属性。

list(string, ServicesListOptionalParams)

处理列出资源组中的所有资源的请求。

listBySubscription(ServicesListBySubscriptionOptionalParams)

处理请求以列出订阅中的所有资源。

listTestKeys(string, string, ServicesListTestKeysOptionalParams)

列出服务的测试密钥。

regenerateTestKey(string, string, RegenerateTestKeyRequestPayload, ServicesRegenerateTestKeyOptionalParams)

为服务重新生成测试密钥。

方法详细信息

beginCreateOrUpdate(string, string, ServiceResource, ServicesCreateOrUpdateOptionalParams)

创建新的服务或更新退出的服务。

function beginCreateOrUpdate(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ServiceResource>, ServiceResource>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

resource
ServiceResource

创建或更新操作的参数

options
ServicesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<ServiceResource>, ServiceResource>>

beginCreateOrUpdateAndWait(string, string, ServiceResource, ServicesCreateOrUpdateOptionalParams)

创建新的服务或更新退出的服务。

function beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServiceResource>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

resource
ServiceResource

创建或更新操作的参数

options
ServicesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<ServiceResource>

beginDelete(string, string, ServicesDeleteOptionalParams)

删除服务的操作。

function beginDelete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, ServicesDeleteOptionalParams)

删除服务的操作。

function beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesDeleteOptionalParams

选项参数。

返回

Promise<void>

beginStart(string, string, ServicesStartOptionalParams)

启动服务。

function beginStart(resourceGroupName: string, serviceName: string, options?: ServicesStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesStartOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginStartAndWait(string, string, ServicesStartOptionalParams)

启动服务。

function beginStartAndWait(resourceGroupName: string, serviceName: string, options?: ServicesStartOptionalParams): Promise<void>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesStartOptionalParams

选项参数。

返回

Promise<void>

beginStop(string, string, ServicesStopOptionalParams)

停止服务。

function beginStop(resourceGroupName: string, serviceName: string, options?: ServicesStopOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesStopOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginStopAndWait(string, string, ServicesStopOptionalParams)

停止服务。

function beginStopAndWait(resourceGroupName: string, serviceName: string, options?: ServicesStopOptionalParams): Promise<void>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesStopOptionalParams

选项参数。

返回

Promise<void>

beginUpdate(string, string, ServiceResource, ServicesUpdateOptionalParams)

更新退出服务的操作。

function beginUpdate(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ServiceResource>, ServiceResource>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

resource
ServiceResource

更新操作的参数

options
ServicesUpdateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<ServiceResource>, ServiceResource>>

beginUpdateAndWait(string, string, ServiceResource, ServicesUpdateOptionalParams)

更新退出服务的操作。

function beginUpdateAndWait(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesUpdateOptionalParams): Promise<ServiceResource>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

resource
ServiceResource

更新操作的参数

options
ServicesUpdateOptionalParams

选项参数。

返回

Promise<ServiceResource>

checkNameAvailability(string, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams)

检查资源名称是否有效且尚未使用。

function checkNameAvailability(location: string, availabilityParameters: NameAvailabilityParameters, options?: ServicesCheckNameAvailabilityOptionalParams): Promise<NameAvailability>

参数

location

string

区域

availabilityParameters
NameAvailabilityParameters

提供给操作的参数。

返回

Promise<NameAvailability>

disableTestEndpoint(string, string, ServicesDisableTestEndpointOptionalParams)

禁用服务的测试终结点功能。

function disableTestEndpoint(resourceGroupName: string, serviceName: string, options?: ServicesDisableTestEndpointOptionalParams): Promise<void>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

返回

Promise<void>

enableTestEndpoint(string, string, ServicesEnableTestEndpointOptionalParams)

为服务启用测试终结点功能。

function enableTestEndpoint(resourceGroupName: string, serviceName: string, options?: ServicesEnableTestEndpointOptionalParams): Promise<TestKeys>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

返回

Promise<TestKeys>

get(string, string, ServicesGetOptionalParams)

获取服务及其属性。

function get(resourceGroupName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise<ServiceResource>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesGetOptionalParams

选项参数。

返回

Promise<ServiceResource>

list(string, ServicesListOptionalParams)

处理列出资源组中的所有资源的请求。

function list(resourceGroupName: string, options?: ServicesListOptionalParams): PagedAsyncIterableIterator<ServiceResource, ServiceResource[], PageSettings>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

options
ServicesListOptionalParams

选项参数。

返回

listBySubscription(ServicesListBySubscriptionOptionalParams)

处理请求以列出订阅中的所有资源。

function listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ServiceResource, ServiceResource[], PageSettings>

参数

返回

listTestKeys(string, string, ServicesListTestKeysOptionalParams)

列出服务的测试密钥。

function listTestKeys(resourceGroupName: string, serviceName: string, options?: ServicesListTestKeysOptionalParams): Promise<TestKeys>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
ServicesListTestKeysOptionalParams

选项参数。

返回

Promise<TestKeys>

regenerateTestKey(string, string, RegenerateTestKeyRequestPayload, ServicesRegenerateTestKeyOptionalParams)

为服务重新生成测试密钥。

function regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: RegenerateTestKeyRequestPayload, options?: ServicesRegenerateTestKeyOptionalParams): Promise<TestKeys>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

regenerateTestKeyRequest
RegenerateTestKeyRequestPayload

操作的参数

options
ServicesRegenerateTestKeyOptionalParams

选项参数。

返回

Promise<TestKeys>