describeNode method
Returns information about a node.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter nodeId :
The node's ID.
Parameter ownerAccount :
The account ID of the node's owner.
Implementation
Future<DescribeNodeResponse> describeNode({
required String nodeId,
String? ownerAccount,
}) async {
final $query = <String, List<String>>{
if (ownerAccount != null) 'OwnerAccount': [ownerAccount],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/nodes/${Uri.encodeComponent(nodeId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeNodeResponse.fromJson(response);
}