GET
/v1/rating/module_config/pyscripts/scripts
¶Get the script list
Parameters: |
|
---|---|
Return: | List of every scripts. |
Return type: |
GET
/v1/rating/module_config/pyscripts/scripts/
(script_id)¶Return a script.
Parameters: |
|
---|---|
Return type: |
POST
/v1/rating/module_config/pyscripts/scripts
¶Create pyscripts script.
Parameters: |
|
---|---|
Return type: |
PUT
/v1/rating/module_config/pyscripts/scripts
¶Update pyscripts script.
Parameters: |
|
---|---|
Return type: |
DELETE
/v1/rating/module_config/pyscripts/scripts
¶Delete the script.
Parameters: |
|
---|
Script
¶Type describing a script.
Data samples:
{
"checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"data": "return 0",
"name": "policy1",
"script_id": "bc05108d-f515-4984-8077-de319cbf35aa"
}
b'<value>\n <script_id>bc05108d-f515-4984-8077-de319cbf35aa</script_id>\n <name>policy1</name>\n <data>return 0</data>\n <checksum>da39a3ee5e6b4b0d3255bfef95601890afd80709</checksum>\n</value>'
checksum
¶Checksum of the script data.
data
¶Data of the script.
name
¶Name of the script.
script_id
¶UUID of the script.
ScriptCollection
¶Type describing a list of scripts.
Data samples:
{
"scripts": [
{
"checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"data": "return 0",
"name": "policy1",
"script_id": "bc05108d-f515-4984-8077-de319cbf35aa"
}
]
}
b'<value>\n <scripts>\n <item>\n <script_id>bc05108d-f515-4984-8077-de319cbf35aa</script_id>\n <name>policy1</name>\n <data>return 0</data>\n <checksum>da39a3ee5e6b4b0d3255bfef95601890afd80709</checksum>\n </item>\n </scripts>\n</value>'
scripts
¶List of scripts.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.