Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d86414fe
Commit
d86414fe
authored
Jul 11, 2023
by
sg1888
Browse files
Excluded scopes for api key test
parent
832318fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/panos.sh
View file @
d86414fe
...
...
@@ -56,7 +56,9 @@ deployer() {
if
[
"
$type
"
=
'keytest'
]
;
then
_debug
"**** Testing saved API Key ****"
_H1
=
"Content-Type: application/x-www-form-urlencoded"
content
=
"type=commit&key=
$_panos_key
&action=partial&cmd=<commit><partial><admin><member>acmekeytest</member></admin></partial></commit>"
#Exclude all scopes for the empty commit
_exclude_scope
=
"<policy-and-objects>exclude</policy-and-objects><device-and-network>exclude</device-and-network><shared-object>exclude</shared-object>"
content
=
"type=commit&key=
$_panos_key
&cmd=<commit><partial>
$_exclude_scope
<admin><member>acmekeytest</member></admin></partial></commit>"
fi
# Generate API Key
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment