共用方式為


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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager 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 Resource Manager API 或入口網站取得此值。

serviceName

string

服務資源的名稱。

傳回

Promise<void>

enableTestEndpoint(string, string, ServicesEnableTestEndpointOptionalParams)

啟用服務的測試端點功能。

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

參數

resourceGroupName

string

包含資源的資源群組名稱。 您可以從 Azure Resource Manager API 或入口網站取得此值。

serviceName

string

服務資源的名稱。

傳回

Promise<TestKeys>

get(string, string, ServicesGetOptionalParams)

取得服務及其屬性。

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

參數

resourceGroupName

string

包含資源的資源群組名稱。 您可以從 Azure Resource Manager API 或入口網站取得此值。

serviceName

string

服務資源的名稱。

options
ServicesGetOptionalParams

選項參數。

傳回

Promise<ServiceResource>

list(string, ServicesListOptionalParams)

處理列出資源群組中所有資源的要求。

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

參數

resourceGroupName

string

包含資源的資源群組名稱。 您可以從 Azure Resource Manager 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 Resource Manager 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 Resource Manager API 或入口網站取得此值。

serviceName

string

服務資源的名稱。

regenerateTestKeyRequest
RegenerateTestKeyRequestPayload

作業的參數

options
ServicesRegenerateTestKeyOptionalParams

選項參數。

傳回

Promise<TestKeys>