Share via


WorkspaceApiRelease interface

Interface representing a WorkspaceApiRelease.

Methods

createOrUpdate(string, string, string, string, string, ApiReleaseContract, WorkspaceApiReleaseCreateOrUpdateOptionalParams)

Creates a new Release for the API.

delete(string, string, string, string, string, string, WorkspaceApiReleaseDeleteOptionalParams)

Deletes the specified release in the API.

get(string, string, string, string, string, WorkspaceApiReleaseGetOptionalParams)

Returns the details of an API release.

getEntityTag(string, string, string, string, string, WorkspaceApiReleaseGetEntityTagOptionalParams)

Returns the etag of an API release.

listByService(string, string, string, string, WorkspaceApiReleaseListByServiceOptionalParams)

Lists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters.

update(string, string, string, string, string, string, ApiReleaseContract, WorkspaceApiReleaseUpdateOptionalParams)

Updates the details of the release of the API specified by its identifier.

Method Details

createOrUpdate(string, string, string, string, string, ApiReleaseContract, WorkspaceApiReleaseCreateOrUpdateOptionalParams)

Creates a new Release for the API.

function createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams): Promise<WorkspaceApiReleaseCreateOrUpdateResponse>

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 identifier. Must be unique in the current API Management service instance.

releaseId

string

Release identifier within an API. Must be unique in the current API Management service instance.

parameters
ApiReleaseContract

Create parameters.

options
WorkspaceApiReleaseCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, string, string, string, WorkspaceApiReleaseDeleteOptionalParams)

Deletes the specified release in the API.

function delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, options?: WorkspaceApiReleaseDeleteOptionalParams): 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 identifier. Must be unique in the current API Management service instance.

releaseId

string

Release identifier within an API. Must be unique in the current API Management service instance.

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
WorkspaceApiReleaseDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, string, WorkspaceApiReleaseGetOptionalParams)

Returns the details of an API release.

function get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetOptionalParams): Promise<WorkspaceApiReleaseGetResponse>

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 identifier. Must be unique in the current API Management service instance.

releaseId

string

Release identifier within an API. Must be unique in the current API Management service instance.

options
WorkspaceApiReleaseGetOptionalParams

The options parameters.

Returns

getEntityTag(string, string, string, string, string, WorkspaceApiReleaseGetEntityTagOptionalParams)

Returns the etag of an API release.

function getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetEntityTagOptionalParams): Promise<WorkspaceApiReleaseGetEntityTagHeaders>

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 identifier. Must be unique in the current API Management service instance.

releaseId

string

Release identifier within an API. Must be unique in the current API Management service instance.

options
WorkspaceApiReleaseGetEntityTagOptionalParams

The options parameters.

Returns

listByService(string, string, string, string, WorkspaceApiReleaseListByServiceOptionalParams)

Lists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters.

function listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiReleaseListByServiceOptionalParams): PagedAsyncIterableIterator<ApiReleaseContract, ApiReleaseContract[], 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.

apiId

string

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

options
WorkspaceApiReleaseListByServiceOptionalParams

The options parameters.

Returns

update(string, string, string, string, string, string, ApiReleaseContract, WorkspaceApiReleaseUpdateOptionalParams)

Updates the details of the release of the API specified by its identifier.

function update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseUpdateOptionalParams): Promise<WorkspaceApiReleaseUpdateResponse>

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 identifier. Must be unique in the current API Management service instance.

releaseId

string

Release identifier within an API. Must be unique in the current API Management service instance.

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
ApiReleaseContract

API Release Update parameters.

options
WorkspaceApiReleaseUpdateOptionalParams

The options parameters.

Returns