REST Source Control Repository
Sync a source control repository such as https://github.com/phantomcyber/playbooks.git or file:////opt/phantom/scm/git/local.
/rest/scm/<scm_id>
Sync an existing source control repository.
Syntax
https://<username>:<password>@<host>/rest/scm/<scm_id>
The body of your request must be a JSON object.
Key | Required | Type | Description |
---|---|---|---|
pull | Required | Boolean | Update local repository from the specified remote repository. |
force | Optional | Boolean | If set to "true" Splunk Phantom treats the remote repository as authoritative and overwrites any local changes to playbooks. |
preserve | Optional | Boolean | If set to "true" Splunk Phantom retains the local metadata for changes to playbooks. Playbooks from the community repository always have a status of Inactive. If you have set the status of a community playbook to Active locally, updating from the community repository will set its status to Inactive unless you use the preserve key. |
POST
Sync an existing source control repository by Id.
REST Severity | REST Status |
This documentation applies to the following versions of Splunk® Phantom (Legacy): 4.8, 4.9, 4.10, 4.10.1, 4.10.2, 4.10.3, 4.10.4, 4.10.6, 4.10.7
Feedback submitted, thanks!