WorkspaceDiagnostic interface
Interface representing a WorkspaceDiagnostic.
Methods
| create |
Creates a new Diagnostic or updates an existing one. |
| delete(string, string, string, string, string, Workspace |
Deletes the specified Diagnostic. |
| get(string, string, string, string, Workspace |
Gets the details of the Diagnostic specified by its identifier. |
| get |
Gets the entity state (Etag) version of the Diagnostic specified by its identifier. |
| list |
Lists all diagnostics in the specified workspace. |
| update(string, string, string, string, string, Diagnostic |
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.
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.
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.
The options parameters.
Returns
Promise<WorkspaceDiagnosticGetResponse>
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.
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.
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.
The options parameters.
Returns
Promise<WorkspaceDiagnosticUpdateResponse>