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

Services interface

Interface representing a Services.

Methods

createOrUpdate(string, string, string, ServiceResource, ServicesCreateOrUpdateOptionalParams)

Synchronously creates a new service or updates an existing service.

delete(string, string, string, ServicesDeleteOptionalParams)

Deletes the service.

get(string, string, string, ServicesGetOptionalParams)

Gets the service.

list(string, string, ServicesListOptionalParams)

Lists the services in the service topology.

Method Details

createOrUpdate(string, string, string, ServiceResource, ServicesCreateOrUpdateOptionalParams)

Synchronously creates a new service or updates an existing service.

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServiceResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

serviceInfo
ServiceResource

The service object

options
ServicesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<ServiceResource>

delete(string, string, string, ServicesDeleteOptionalParams)

Deletes the service.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

options
ServicesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, ServicesGetOptionalParams)

Gets the service.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

options
ServicesGetOptionalParams

The options parameters.

Returns

Promise<ServiceResource>

list(string, string, ServicesListOptionalParams)

Lists the services in the service topology.

function list(resourceGroupName: string, serviceTopologyName: string, options?: ServicesListOptionalParams): Promise<ServicesListResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

options
ServicesListOptionalParams

The options parameters.

Returns