edge_stacks
Create an EdgeStack from a git repository
Access policy: administrator
post/edge_stacks/create/repository
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/edge_stacks/create/repository
- Auth
- API key in header X-API-KEY
- or API key in header Authorization
Query parameters
dryrunstring
if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
Request body
Example request
{
"EdgeGroups": [
1
],
"FilePathInRepository": "docker-compose.yml",
"Name": "stack-name",
"RepositoryAuthentication": true,
"RepositoryPassword": "myGitPassword",
"RepositoryReferenceName": "refs/heads/master",
"RepositoryURL": "https://github.com/openfaas/faas",
"RepositoryUsername": "myGitUsername",
"SourceID": 1
}Response
OK
Example response
{
"CreatedBy": "admin",
"CreatedByUserId": "1",
"Id": 1
}Changes
No recorded changes to this operation across all 21 revisions of this API.