summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorJames Falcon <james.falcon@canonical.com>2022-01-27 21:29:10 -0600
committerGitHub <noreply@github.com>2022-01-27 20:29:10 -0700
commit17a1cb4a9505f6b58eafde2397b80ffd66da7938 (patch)
treee8025a610f9cdb813bced956ef4a38fde76f387f /cloudinit/config
parent223b23e2c428aff6c1e61f49d8e2edde77801a12 (diff)
downloadvyos-cloud-init-17a1cb4a9505f6b58eafde2397b80ffd66da7938.tar.gz
vyos-cloud-init-17a1cb4a9505f6b58eafde2397b80ffd66da7938.zip
Include POST format in cc_phone_home docs (#1218)
LP: #1959149
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_phone_home.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cloudinit/config/cc_phone_home.py b/cloudinit/config/cc_phone_home.py
index cc1fe53e..a0e1da78 100644
--- a/cloudinit/config/cc_phone_home.py
+++ b/cloudinit/config/cc_phone_home.py
@@ -24,6 +24,19 @@ keys to post. Available keys are:
- ``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