Freigeben über


ServiceUnits interface

Interface representing a ServiceUnits.

Methods

beginCreateOrUpdate(string, string, string, string, ServiceUnitResource, ServiceUnitsCreateOrUpdateOptionalParams)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

beginCreateOrUpdateAndWait(string, string, string, string, ServiceUnitResource, ServiceUnitsCreateOrUpdateOptionalParams)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

delete(string, string, string, string, ServiceUnitsDeleteOptionalParams)

Deletes the service unit.

get(string, string, string, string, ServiceUnitsGetOptionalParams)

Gets the service unit.

list(string, string, string, ServiceUnitsListOptionalParams)

Lists the service units under a service in the service topology.

Method Details

beginCreateOrUpdate(string, string, string, string, ServiceUnitResource, ServiceUnitsCreateOrUpdateOptionalParams)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

function beginCreateOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: string, serviceUnitInfo: ServiceUnitResource, options?: ServiceUnitsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServiceUnitsCreateOrUpdateResponse>, ServiceUnitsCreateOrUpdateResponse>>

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.

serviceUnitName

string

The name of the service unit resource.

serviceUnitInfo
ServiceUnitResource

The service unit resource object.

options
ServiceUnitsCreateOrUpdateOptionalParams

The options parameters.

Returns

beginCreateOrUpdateAndWait(string, string, string, string, ServiceUnitResource, ServiceUnitsCreateOrUpdateOptionalParams)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

function beginCreateOrUpdateAndWait(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: string, serviceUnitInfo: ServiceUnitResource, options?: ServiceUnitsCreateOrUpdateOptionalParams): Promise<ServiceUnitsCreateOrUpdateResponse>

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.

serviceUnitName

string

The name of the service unit resource.

serviceUnitInfo
ServiceUnitResource

The service unit resource object.

options
ServiceUnitsCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, string, ServiceUnitsDeleteOptionalParams)

Deletes the service unit.

function delete(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: string, options?: ServiceUnitsDeleteOptionalParams): 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.

serviceUnitName

string

The name of the service unit resource.

options
ServiceUnitsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, ServiceUnitsGetOptionalParams)

Gets the service unit.

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: string, options?: ServiceUnitsGetOptionalParams): Promise<ServiceUnitResource>

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.

serviceUnitName

string

The name of the service unit resource.

options
ServiceUnitsGetOptionalParams

The options parameters.

Returns

list(string, string, string, ServiceUnitsListOptionalParams)

Lists the service units under a service in the service topology.

function list(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: ServiceUnitsListOptionalParams): Promise<ServiceUnitsListResponse>

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
ServiceUnitsListOptionalParams

The options parameters.

Returns