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

Services interface

表示服务的接口。

方法

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

同步创建新的服务或更新现有服务。

delete(string, string, string, ServicesDeleteOptionalParams)

删除服务。

get(string, string, string, ServicesGetOptionalParams)

获取服务。

list(string, string, ServicesListOptionalParams)

列出服务拓扑中的服务。

方法详细信息

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

同步创建新的服务或更新现有服务。

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

serviceInfo
ServiceResource

服务对象

options
ServicesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<ServiceResource>

delete(string, string, string, ServicesDeleteOptionalParams)

删除服务。

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

options
ServicesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, ServicesGetOptionalParams)

获取服务。

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

options
ServicesGetOptionalParams

选项参数。

返回

Promise<ServiceResource>

list(string, string, ServicesListOptionalParams)

列出服务拓扑中的服务。

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

options
ServicesListOptionalParams

选项参数。

返回