The instance-git-pull command copies a file or folder from an Object Storage bucket or Magna-bucket into a specified destination folder on the instance.

JSON Input Data Format
{
    "id": string,
    "gitrepo": string,
    "gitbranch": string,
    "path": string
}
id * Specifies the instance ID to which the files will be copied.
gitrepo * Specifies the repository URL. For example: git@sky.git:mynginx.repo.
gitbranch Specifies the repository branch name to be pulled. The default value is main.
path * Specifies the path and name of the destination folder. The path must start with a /, indicating the root of the instance.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "The process was successfully completed"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}