Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Code samples
POST https://api-gw-service-nmn.local/apis/nls/v1/ncns/reboot HTTP/1.1
Host: api-gw-service-nmn.local
Content-Type: application/json
Accept: application/json
# You can also use wget
curl -X POST https://api-gw-service-nmn.local/apis/nls/v1/ncns/reboot \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.post('https://api-gw-service-nmn.local/apis/nls/v1/ncns/reboot', headers = headers)
print(r.json())
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "https://api-gw-service-nmn.local/apis/nls/v1/ncns/reboot", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /nls/v1/ncns/reboot
End to end rolling reboot ncns
Body parameter
{
"dryRun": true,
"hosts": [
"string"
],
"switchPassword": "string",
"wipeOsd": true
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | models.CreateRebootWorkflowRequest | true | hostnames to include |
Example responses
200 Response
{
"name": "string",
"targetNcns": [
"string"
]
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | models.CreateRebootWorkflowResponse |
400 | Bad Request | Bad Request | ResponseError |
404 | Not Found | Not Found | ResponseError |
500 | Internal Server Error | Internal Server Error | ResponseError |
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth
Code samples
POST https://api-gw-service-nmn.local/apis/nls/v1/ncns/rebuild HTTP/1.1
Host: api-gw-service-nmn.local
Content-Type: application/json
Accept: application/json
# You can also use wget
curl -X POST https://api-gw-service-nmn.local/apis/nls/v1/ncns/rebuild \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.post('https://api-gw-service-nmn.local/apis/nls/v1/ncns/rebuild', headers = headers)
print(r.json())
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "https://api-gw-service-nmn.local/apis/nls/v1/ncns/rebuild", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /nls/v1/ncns/rebuild
End to end rolling rebuild ncns
Body parameter
{
"desiredCfsConfig": "string",
"dryRun": true,
"hosts": [
"string"
],
"imageId": "string",
"labels": {
"property1": "string",
"property2": "string"
},
"switchPassword": "string",
"workflowType": "string",
"zapOsds": true
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | models.CreateRebuildWorkflowRequest | true | hostnames to include |
Example responses
200 Response
{
"name": "string",
"targetNcns": [
"string"
]
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | models.CreateRebuildWorkflowResponse |
400 | Bad Request | Bad Request | ResponseError |
404 | Not Found | Not Found | ResponseError |
500 | Internal Server Error | Internal Server Error | ResponseError |
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth
Code samples
GET https://api-gw-service-nmn.local/apis/nls/v1/workflows HTTP/1.1
Host: api-gw-service-nmn.local
Accept: application/json
# You can also use wget
curl -X GET https://api-gw-service-nmn.local/apis/nls/v1/workflows \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
import requests
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.get('https://api-gw-service-nmn.local/apis/nls/v1/workflows', headers = headers)
print(r.json())
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "https://api-gw-service-nmn.local/apis/nls/v1/workflows", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /nls/v1/workflows
Get status of a ncn workflow
Name | In | Type | Required | Description |
---|---|---|---|---|
labelSelector | query | string | false | Label Selector |
Example responses
200 Response
[
{
"label": {},
"name": "string",
"status": {}
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | Inline |
400 | Bad Request | Bad Request | ResponseError |
404 | Not Found | Not Found | ResponseError |
500 | Internal Server Error | Internal Server Error | ResponseError |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [models.GetWorkflowResponse] | false | none | none |
» label | object | false | none | none |
» name | string | false | none | none |
» status | object | false | none | none |
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth
Code samples
DELETE https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name} HTTP/1.1
Host: api-gw-service-nmn.local
Accept: application/json
# You can also use wget
curl -X DELETE https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
import requests
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.delete('https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}', headers = headers)
print(r.json())
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
DELETE /nls/v1/workflows/{name}
Delete a ncn workflow
Name | In | Type | Required | Description |
---|---|---|---|---|
name | path | string | true | name of workflow |
Example responses
200 Response
{
"message": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | ResponseOk |
400 | Bad Request | Bad Request | ResponseError |
404 | Not Found | Not Found | ResponseError |
500 | Internal Server Error | Internal Server Error | ResponseError |
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth
Code samples
PUT https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/rerun HTTP/1.1
Host: api-gw-service-nmn.local
Accept: application/json
# You can also use wget
curl -X PUT https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/rerun \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
import requests
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.put('https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/rerun', headers = headers)
print(r.json())
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PUT", "https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/rerun", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
PUT /nls/v1/workflows/{name}/rerun
Rerun a workflow, all steps will run
Name | In | Type | Required | Description |
---|---|---|---|---|
name | path | string | true | name of workflow |
Example responses
200 Response
{
"message": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | ResponseOk |
400 | Bad Request | Bad Request | ResponseError |
404 | Not Found | Not Found | ResponseError |
500 | Internal Server Error | Internal Server Error | ResponseError |
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth
Code samples
PUT https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/retry HTTP/1.1
Host: api-gw-service-nmn.local
Content-Type: application/json
Accept: application/json
# You can also use wget
curl -X PUT https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/retry \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.put('https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/retry', headers = headers)
print(r.json())
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PUT", "https://api-gw-service-nmn.local/apis/nls/v1/workflows/{name}/retry", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
PUT /nls/v1/workflows/{name}/retry
Retry a failed ncn workflow, skip passed steps
Body parameter
{
"restartSuccessful": true,
"stepName": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
name | path | string | true | name of workflow |
body | body | models.RetryWorkflowRequestBody | true | retry options |
Example responses
200 Response
{
"message": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | ResponseOk |
400 | Bad Request | Bad Request | ResponseError |
404 | Not Found | Not Found | ResponseError |
500 | Internal Server Error | Internal Server Error | ResponseError |
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth
{
"message": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
message | string | false | none | none |
{
"message": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
message | string | false | none | none |
{
"dryRun": true,
"hosts": [
"string"
],
"switchPassword": "string",
"wipeOsd": true
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
dryRun | boolean | false | none | none |
hosts | [string] | false | none | none |
switchPassword | string | false | none | none |
wipeOsd | boolean | false | none | none |
{
"name": "string",
"targetNcns": [
"string"
]
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | false | none | none |
targetNcns | [string] | false | none | none |
{
"desiredCfsConfig": "string",
"dryRun": true,
"hosts": [
"string"
],
"imageId": "string",
"labels": {
"property1": "string",
"property2": "string"
},
"switchPassword": "string",
"workflowType": "string",
"zapOsds": true
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
desiredCfsConfig | string | false | none | none |
dryRun | boolean | false | none | none |
hosts | [string] | false | none | none |
imageId | string | false | none | none |
labels | object | false | none | none |
» additionalProperties | string | false | none | none |
switchPassword | string | false | none | none |
workflowType | string | false | none | used to determine storage rebuild vs upgrade |
zapOsds | boolean | false | none | this is necessary for storage rebuilds when unable to wipe the node prior to rebuild |
{
"name": "string",
"targetNcns": [
"string"
]
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | false | none | none |
targetNcns | [string] | false | none | none |
{
"label": {},
"name": "string",
"status": {}
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
label | object | false | none | none |
name | string | false | none | none |
status | object | false | none | none |
{
"restartSuccessful": true,
"stepName": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
restartSuccessful | boolean | false | none | none |
stepName | string | false | none | none |