Verifies the specified nodes, which must have a status of PENDING_VERIFICATION, so that they can be added to the appliance. Returns the updated management status of each node.
Parameters:
-
appliance_arn
(ApplianceArn)
–
The Amazon Resource Name (ARN) of the appliance.
-
node_arns
(NodeArnList)
–
The Amazon Resource Names (ARNs) of the appliance nodes to verify.
Raises:
Source code in docs_src/capo_backup_external/_services/async_backup_external.py
| async def verify_nodes(
self,
appliance_arn: "capo_backup_external.types.appliance_arn.ApplianceArn",
node_arns: "capo_backup_external.types.node_arn_list.NodeArnList",
*,
config_overrides: Optional[AsyncBackupExternalClientConfig] = None,
) -> "capo_backup_external.types.verify_nodes_output.VerifyNodesOutput":
"""Verifies the specified nodes, which must have a status of `PENDING_VERIFICATION`, so that they can be added to the appliance. Returns the updated management status of each node.
Args:
appliance_arn: The Amazon Resource Name (ARN) of the appliance.
node_arns: The Amazon Resource Names (ARNs) of the appliance nodes to verify.
Raises:
capo_backup_external.errors.access_denied_exception.AccessDeniedException: The request was denied because you do not have permission to perform the requested operation.
capo_backup_external.errors.conflict_exception.ConflictException: The request conflicts with the current state of the specified resource.
capo_backup_external.errors.internal_server_exception.InternalServerException: The request failed because of an internal server error.
capo_backup_external.errors.resource_not_found_exception.ResourceNotFoundException: The specified resource was not found.
capo_backup_external.errors.throttling_exception.ThrottlingException: The request was denied because the request rate is too high.
capo_backup_external.errors.validation_exception.ValidationException: The request contains invalid parameters.
capo_backup_external.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_backup_external.types.verify_nodes_input.VerifyNodesInput]",
) -> AsyncOperationResponse[
"capo_backup_external.types.verify_nodes_output.VerifyNodesOutput"
]:
import capo_backup_external._operations.backup_external.verify_nodes
(
output,
http_response,
) = await capo_backup_external._operations.backup_external.verify_nodes.async_verify_nodes(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("VerifyNodes")
)
input_: capo_backup_external.types.verify_nodes_input.VerifyNodesInput = {
"appliance_arn": appliance_arn,
"node_arns": node_arns,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|