describeVirtualRouter method
Describes an existing virtual router.
May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter meshName
:
The name of the service mesh in which the virtual router resides.
Parameter virtualRouterName
:
The name of the virtual router to describe.
Implementation
Future<DescribeVirtualRouterOutput> describeVirtualRouter({
required String meshName,
required String virtualRouterName,
}) async {
ArgumentError.checkNotNull(meshName, 'meshName');
_s.validateStringLength(
'meshName',
meshName,
1,
255,
isRequired: true,
);
ArgumentError.checkNotNull(virtualRouterName, 'virtualRouterName');
_s.validateStringLength(
'virtualRouterName',
virtualRouterName,
1,
255,
isRequired: true,
);
final response = await _protocol.sendRaw(
payload: null,
method: 'GET',
requestUri:
'/meshes/${Uri.encodeComponent(meshName)}/virtualRouters/${Uri.encodeComponent(virtualRouterName)}',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return DescribeVirtualRouterOutput(
virtualRouter: VirtualRouterData.fromJson($json),
);
}