POST
/
cloud
/
v1
/
user_actions
/
subscribe_amqp
Create amqp subscription
curl --request POST \
  --url https://api.gcore.com/cloud/v1/user_actions/subscribe_amqp \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "connection_string": "amqps://guest:guest@192.168.123.20:5671/user_action_events",
  "exchange": null,
  "receive_child_client_events": false,
  "routing_key": "foo"
}'

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json
connection_string
string
required

Connection string of the following structure "scheme://username:password@host:port/virtual_host"

Examples:

"amqps://guest:guest@192.168.123.20:5671/user_action_events"

exchange
string | null

Exchange name

Examples:

null

receive_child_client_events
boolean
default:false

Set to true if you would like to receive user action logs of all clients with the reseller_id matching the current client_id. Defaults to false

Examples:

false

routing_key
string | null

Routing key

Examples:

"foo"

Response

204

No Content