disassociateLicense method

Future<DisassociateLicenseResponse> disassociateLicense({
  1. required LicenseType licenseType,
  2. required String workspaceId,
})

Removes the Grafana Enterprise license from a workspace.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter licenseType : The type of license to remove from the workspace.

Parameter workspaceId : The ID of the workspace to remove the Grafana Enterprise license from.

Implementation

Future<DisassociateLicenseResponse> disassociateLicense({
  required LicenseType licenseType,
  required String workspaceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/workspaces/${Uri.encodeComponent(workspaceId)}/licenses/${Uri.encodeComponent(licenseType.value)}',
    exceptionFnMap: _exceptionFns,
  );
  return DisassociateLicenseResponse.fromJson(response);
}