I've created a stich and an action to send a POST which Google states it supports Google Support Doc
https://username:password@domains.google.com/nic/update?hostname=my.domain.com
Here is it is from the Config:
config system automation-action
edit "my.domain.com"
set action-type webhook
set minimum-interval 600
set protocol https
set uri "username:password@domains.google.com/nic/update?hostname=my.domain.com"
set port 443
config http-headers
edit 1
set key "User Agent"
set value "Chrome/41.0 email@domain.com"
next
edit 2
set key "Authorization"
set value "Basic base64-encoded-auth-string"
next
edit 3
set key "Host"
set value "domains.google.com"
next
end
set verify-host-cert disable
next
end
Watching Debug off the console I see the following:
__action_webhook_status()-134: Failed to resolve address for: username:password@domains.google.com
__run_action()-298: Error when running service for stitch:Google DDNS action:my.domain.com.
__action_webhook_status()-134: Failed to resolve address for: username:password@domains.google.com
__run_action()-298: Error when running service for stitch:Google DDNS action:my.domain.com.
Thoughts?
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Here is the CLI for the Action:
config system automation-action
edit "Google DDNS"
set action-type webhook
set minimum-interval (Time is up to you)
set protocol https
set uri "domains.google.com/nic/update?hostname=my.domain.com"
set port 443
config http-headers
edit 1
set key "Authorization"
set value "Basic base64-encoded-auth-string"
next
end
next
end
The Authorization Header will be your Username:Password converted to Base64
Thanks everyone.
So you're using CURL to run this post command but don't support passing user:pass in front of the domain???
auto_curl_perform()-107: Curl perform error:22 - HTTP response code said error.
__action_webhook_status()-150: Failed to perform curl for url:https://domains.google.com/nic/update?hostname=my.domain.com.
__run_action()-298: Error when running service for stitch:Test action:my.domain.com.
Just so there is no confusion, out of Ubuntu
curl -X POST https://username:password@domains.google.com/nic/update?hostname=my.domain.com
Works just fine
Here is the CLI for the Action:
config system automation-action
edit "Google DDNS"
set action-type webhook
set minimum-interval (Time is up to you)
set protocol https
set uri "domains.google.com/nic/update?hostname=my.domain.com"
set port 443
config http-headers
edit 1
set key "Authorization"
set value "Basic base64-encoded-auth-string"
next
end
next
end
The Authorization Header will be your Username:Password converted to Base64
Thanks everyone.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1732 | |
1106 | |
752 | |
447 | |
240 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.