Share via


WorkspaceApi interface

Interface representing a WorkspaceApi.

Methods

beginCreateOrUpdate(string, string, string, string, ApiCreateOrUpdateParameter, WorkspaceApiCreateOrUpdateOptionalParams)

Creates new or updates existing specified API of the workspace in an API Management service instance.

beginCreateOrUpdateAndWait(string, string, string, string, ApiCreateOrUpdateParameter, WorkspaceApiCreateOrUpdateOptionalParams)

Creates new or updates existing specified API of the workspace in an API Management service instance.

delete(string, string, string, string, string, WorkspaceApiDeleteOptionalParams)

Deletes the specified API of the workspace in an API Management service instance.

get(string, string, string, string, WorkspaceApiGetOptionalParams)

Gets the details of the API specified by its identifier.

getEntityTag(string, string, string, string, WorkspaceApiGetEntityTagOptionalParams)

Gets the entity state (Etag) version of the API specified by its identifier.

listByService(string, string, string, WorkspaceApiListByServiceOptionalParams)

Lists all APIs of the workspace in an API Management service instance.

update(string, string, string, string, string, ApiUpdateContract, WorkspaceApiUpdateOptionalParams)

Updates the specified API of the workspace in an API Management service instance.

Method Details

beginCreateOrUpdate(string, string, string, string, ApiCreateOrUpdateParameter, WorkspaceApiCreateOrUpdateOptionalParams)

Creates new or updates existing specified API of the workspace in an API Management service instance.

function beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WorkspaceApiCreateOrUpdateResponse>, WorkspaceApiCreateOrUpdateResponse>>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

apiId

string

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

parameters
ApiCreateOrUpdateParameter

Create or update parameters.

options
WorkspaceApiCreateOrUpdateOptionalParams

The options parameters.

Returns

beginCreateOrUpdateAndWait(string, string, string, string, ApiCreateOrUpdateParameter, WorkspaceApiCreateOrUpdateOptionalParams)

Creates new or updates existing specified API of the workspace in an API Management service instance.

function beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise<WorkspaceApiCreateOrUpdateResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

apiId

string

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

parameters
ApiCreateOrUpdateParameter

Create or update parameters.

options
WorkspaceApiCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, string, string, WorkspaceApiDeleteOptionalParams)

Deletes the specified API of the workspace in an API Management service instance.

function delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, options?: WorkspaceApiDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

apiId

string

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

ifMatch

string

ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

options
WorkspaceApiDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, WorkspaceApiGetOptionalParams)

Gets the details of the API specified by its identifier.

function get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetOptionalParams): Promise<WorkspaceApiGetResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

apiId

string

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

options
WorkspaceApiGetOptionalParams

The options parameters.

Returns

getEntityTag(string, string, string, string, WorkspaceApiGetEntityTagOptionalParams)

Gets the entity state (Etag) version of the API specified by its identifier.

function getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetEntityTagOptionalParams): Promise<WorkspaceApiGetEntityTagHeaders>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

apiId

string

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

options
WorkspaceApiGetEntityTagOptionalParams

The options parameters.

Returns

listByService(string, string, string, WorkspaceApiListByServiceOptionalParams)

Lists all APIs of the workspace in an API Management service instance.

function listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiListByServiceOptionalParams): PagedAsyncIterableIterator<ApiContract, ApiContract[], PageSettings>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

options
WorkspaceApiListByServiceOptionalParams

The options parameters.

Returns

update(string, string, string, string, string, ApiUpdateContract, WorkspaceApiUpdateOptionalParams)

Updates the specified API of the workspace in an API Management service instance.

function update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, parameters: ApiUpdateContract, options?: WorkspaceApiUpdateOptionalParams): Promise<WorkspaceApiUpdateResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

workspaceId

string

Workspace identifier. Must be unique in the current API Management service instance.

apiId

string

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

ifMatch

string

ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

parameters
ApiUpdateContract

API Update Contract parameters.

options
WorkspaceApiUpdateOptionalParams

The options parameters.

Returns