TCPSocketAction describes an action based on opening a socket
Attribute
Name
Description
port
int Optional. Port number to access on the container. Must be in
the range 1 to 65535. If not specified, defaults to the
exposed port of the container, which is the value of
container.ports[0].containerPort.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-02 UTC."],[],[],null,["# Class TCPSocketAction (0.10.19)\n\nVersion latestkeyboard_arrow_down\n\n- [0.10.19 (latest)](/python/docs/reference/run/latest/google.cloud.run_v2.types.TCPSocketAction)\n- [0.10.18](/python/docs/reference/run/0.10.18/google.cloud.run_v2.types.TCPSocketAction)\n- [0.9.1](/python/docs/reference/run/0.9.1/google.cloud.run_v2.types.TCPSocketAction)\n- [0.8.1](/python/docs/reference/run/0.8.1/google.cloud.run_v2.types.TCPSocketAction)\n- [0.7.1](/python/docs/reference/run/0.7.1/google.cloud.run_v2.types.TCPSocketAction)\n- [0.6.0](/python/docs/reference/run/0.6.0/google.cloud.run_v2.types.TCPSocketAction)\n- [0.5.0](/python/docs/reference/run/0.5.0/google.cloud.run_v2.types.TCPSocketAction)\n- [0.4.2](/python/docs/reference/run/0.4.2/google.cloud.run_v2.types.TCPSocketAction)\n- [0.3.0](/python/docs/reference/run/0.3.0/google.cloud.run_v2.types.TCPSocketAction)\n- [0.2.1](/python/docs/reference/run/0.2.1/google.cloud.run_v2.types.TCPSocketAction)\n- [0.1.0](/python/docs/reference/run/0.1.0/google.cloud.run_v2.types.TCPSocketAction) \n\n TCPSocketAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nTCPSocketAction describes an action based on opening a socket"]]