Services interface
表示服务的接口。
方法
方法详细信息
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
服务对象
选项参数。
返回
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
选项参数。
返回
Promise<ServicesListResponse>