Share via


WorkspaceDiagnostic interface

Interface representing a WorkspaceDiagnostic.

Methods

createOrUpdate(string, string, string, string, DiagnosticContract, WorkspaceDiagnosticCreateOrUpdateOptionalParams)

Creates a new Diagnostic or updates an existing one.

delete(string, string, string, string, string, WorkspaceDiagnosticDeleteOptionalParams)

Deletes the specified Diagnostic.

get(string, string, string, string, WorkspaceDiagnosticGetOptionalParams)

Gets the details of the Diagnostic specified by its identifier.

getEntityTag(string, string, string, string, WorkspaceDiagnosticGetEntityTagOptionalParams)

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

listByWorkspace(string, string, string, WorkspaceDiagnosticListByWorkspaceOptionalParams)

Lists all diagnostics in the specified workspace.

update(string, string, string, string, string, DiagnosticUpdateContract, WorkspaceDiagnosticUpdateOptionalParams)

Updates the details of the Diagnostic specified by its identifier.

Method Details

createOrUpdate(string, string, string, string, DiagnosticContract, WorkspaceDiagnosticCreateOrUpdateOptionalParams)

Creates a new Diagnostic or updates an existing one.

function createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, parameters: DiagnosticContract, options?: WorkspaceDiagnosticCreateOrUpdateOptionalParams): Promise<WorkspaceDiagnosticCreateOrUpdateResponse>

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.

diagnosticId

string

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

parameters
DiagnosticContract

Create parameters.

options
WorkspaceDiagnosticCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, string, string, WorkspaceDiagnosticDeleteOptionalParams)

Deletes the specified Diagnostic.

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

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
WorkspaceDiagnosticDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, WorkspaceDiagnosticGetOptionalParams)

Gets the details of the Diagnostic specified by its identifier.

function get(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, options?: WorkspaceDiagnosticGetOptionalParams): Promise<WorkspaceDiagnosticGetResponse>

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.

diagnosticId

string

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

options
WorkspaceDiagnosticGetOptionalParams

The options parameters.

Returns

getEntityTag(string, string, string, string, WorkspaceDiagnosticGetEntityTagOptionalParams)

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

function getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, options?: WorkspaceDiagnosticGetEntityTagOptionalParams): Promise<WorkspaceDiagnosticGetEntityTagHeaders>

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.

diagnosticId

string

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

options
WorkspaceDiagnosticGetEntityTagOptionalParams

The options parameters.

Returns

listByWorkspace(string, string, string, WorkspaceDiagnosticListByWorkspaceOptionalParams)

Lists all diagnostics in the specified workspace.

function listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceDiagnosticListByWorkspaceOptionalParams): 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.

options
WorkspaceDiagnosticListByWorkspaceOptionalParams

The options parameters.

Returns

update(string, string, string, string, string, DiagnosticUpdateContract, WorkspaceDiagnosticUpdateOptionalParams)

Updates the details of the Diagnostic specified by its identifier.

function update(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticUpdateContract, options?: WorkspaceDiagnosticUpdateOptionalParams): Promise<WorkspaceDiagnosticUpdateResponse>

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.

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
WorkspaceDiagnosticUpdateOptionalParams

The options parameters.

Returns