From 4ec2715409c4d0041e491e1edded2c129f6fe1c5 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Thu, 27 Jan 2022 08:37:50 -0600 Subject: [PATCH] Include POST format in cc_phone_home docs LP: #1959149 --- cloudinit/config/cc_phone_home.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cloudinit/config/cc_phone_home.py b/cloudinit/config/cc_phone_home.py index cc1fe53e8e6..a0e1da78099 100644 --- a/cloudinit/config/cc_phone_home.py +++ b/cloudinit/config/cc_phone_home.py @@ -24,6 +24,19 @@ - ``hostname`` - ``fdqn`` +Data is sent as ``x-www-form-urlencoded`` arguments. + +**Example HTTP POST**:: + + POST / HTTP/1.1 + Content-Length: 1337 + User-Agent: Cloud-Init/21.4 + Accept-Encoding: gzip, deflate + Accept: */* + Content-Type: application/x-www-form-urlencoded + + pub_key_dsa=dsa_contents&pub_key_rsa=rsa_contents&pub_key_ecdsa=ecdsa_contents&pub_key_ed25519=ed25519_contents&instance_id=i-87018aed&hostname=myhost&fqdn=myhost.internal + **Internal name:** ``cc_phone_home`` **Module frequency:** per instance