Share via


WorkspaceApiDiagnostic interface

Interface representing a WorkspaceApiDiagnostic.

Methods

createOrUpdate(string, string, string, string, string, DiagnosticContract, WorkspaceApiDiagnosticCreateOrUpdateOptionalParams)

Creates a new Diagnostic for an API or updates an existing one.

delete(string, string, string, string, string, string, WorkspaceApiDiagnosticDeleteOptionalParams)

Deletes the specified Diagnostic from an API.

get(string, string, string, string, string, WorkspaceApiDiagnosticGetOptionalParams)

Gets the details of the Diagnostic for an API specified by its identifier.

getEntityTag(string, string, string, string, string, WorkspaceApiDiagnosticGetEntityTagOptionalParams)

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

listByWorkspace(string, string, string, string, WorkspaceApiDiagnosticListByWorkspaceOptionalParams)

Lists all diagnostics of an API.

update(string, string, string, string, string, string, DiagnosticUpdateContract, WorkspaceApiDiagnosticUpdateOptionalParams)

Updates the details of the Diagnostic for an API specified by its identifier.

Method Details

createOrUpdate(string, string, string, string, string, DiagnosticContract, WorkspaceApiDiagnosticCreateOrUpdateOptionalParams)

Creates a new Diagnostic for an API or updates an existing one.

function createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, parameters: DiagnosticContract, options?: WorkspaceApiDiagnosticCreateOrUpdateOptionalParams): Promise<WorkspaceApiDiagnosticCreateOrUpdateResponse>

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.

diagnosticId

string

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

parameters
DiagnosticContract

Create parameters.

options
WorkspaceApiDiagnosticCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, string, string, string, WorkspaceApiDiagnosticDeleteOptionalParams)

Deletes the specified Diagnostic from an API.

function delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, ifMatch: string, options?: WorkspaceApiDiagnosticDeleteOptionalParams): 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.

diagnosticId

string

Diagnostic identifier. 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
WorkspaceApiDiagnosticDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, string, WorkspaceApiDiagnosticGetOptionalParams)

Gets the details of the Diagnostic for an API specified by its identifier.

function get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, options?: WorkspaceApiDiagnosticGetOptionalParams): Promise<WorkspaceApiDiagnosticGetResponse>

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.

diagnosticId

string

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

options
WorkspaceApiDiagnosticGetOptionalParams

The options parameters.

Returns

getEntityTag(string, string, string, string, string, WorkspaceApiDiagnosticGetEntityTagOptionalParams)

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

function getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, options?: WorkspaceApiDiagnosticGetEntityTagOptionalParams): Promise<WorkspaceApiDiagnosticGetEntityTagHeaders>

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.

diagnosticId

string

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

options
WorkspaceApiDiagnosticGetEntityTagOptionalParams

The options parameters.

Returns

listByWorkspace(string, string, string, string, WorkspaceApiDiagnosticListByWorkspaceOptionalParams)

Lists all diagnostics of an API.

function listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams): PagedAsyncIterableIterator<DiagnosticContract, DiagnosticContract[], 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
WorkspaceApiDiagnosticListByWorkspaceOptionalParams

The options parameters.

Returns

update(string, string, string, string, string, string, DiagnosticUpdateContract, WorkspaceApiDiagnosticUpdateOptionalParams)

Updates the details of the Diagnostic for an API specified by its identifier.

function update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticUpdateContract, options?: WorkspaceApiDiagnosticUpdateOptionalParams): Promise<WorkspaceApiDiagnosticUpdateResponse>

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.

diagnosticId

string

Diagnostic identifier. 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
DiagnosticUpdateContract

Diagnostic Update parameters.

options
WorkspaceApiDiagnosticUpdateOptionalParams

The options parameters.

Returns