update_probe
¶
update_probe(
monitor_name: ResourceName,
probe_id: ProbeId,
*,
config_overrides: Optional[NetworkMonitorClientConfig] = None,
state: Optional[ProbeState] = None,
destination: Optional[Destination] = None,
destination_port: Optional[Port] = None,
protocol: Optional[Protocol] = None,
packet_size: Optional[PacketSize] = None,
) -> UpdateProbeOutput
Updates a monitor probe. This action requires both the monitorName and probeId parameters. Run ListMonitors to get a list of monitor names. Run GetMonitor to get a list of probes and probe IDs.
You can update the following para create a monitor with probes using this command. For each probe, you define the following:
-
state—The state of the probe. -
destination— The target destination IP address for the probe. -
destinationPort—Required only if the protocol isTCP. -
protocol—The communication protocol between the source and destination. This will be eitherTCPorICMP. -
packetSize—The size of the packets. This must be a number between56and8500. -
(Optional)
tags—Key-value pairs created and assigned to the probe.
Parameters:
-
monitor_name(ResourceName) –The name of the monitor that the probe was updated for.
-
probe_id(ProbeId) –The ID of the probe to update.
-
state(Optional[ProbeState], default:None) –The state of the probe update.
-
destination(Optional[Destination], default:None) –The updated IP address for the probe destination. This must be either an IPv4 or IPv6 address.
-
destination_port(Optional[Port], default:None) –The updated port for the probe destination. This is required only if the
protocolisTCPand must be a number between1and65536. -
protocol(Optional[Protocol], default:None) –The updated network protocol for the destination. This can be either
TCPorICMP. If the protocol isTCP, thenportis also required. -
packet_size(Optional[PacketSize], default:None) –he updated packets size for network traffic between the source and destination. This must be a number between
56and8500.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–This request exceeds a service quota.
-
ThrottlingException–The request was denied due to request throttling
-
ValidationException–One of the parameters for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkmonitor/_services/network_monitor.py
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 | |