Update Ssh Key Pair
1 min
POST
{{url}}/aioc-rest-web/rest/sc/ssh/updateSshKeyPair
Header Parameters
- CookiestringExample
- X-XSRF-TOKENstringExample
Body Parameters
- bodystringExample
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/sc/ssh/updateSshKeyPair \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/sc/ssh/updateSshKeyPair", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "net/http"
url = URI("{{url}}/aioc-rest-web/rest/sc/ssh/updateSshKeyPair")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
url = "{{url}}/aioc-rest-web/rest/sc/ssh/updateSshKeyPair"
payload = {}
headers = {
'accept': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
true