Modifies the configuration of a storage component, overwriting the existing settings. Use the POST /storage_component/list endpoint to verify existing settings or changes. Use the PATCH /storage_component/update endpoint to update specific settings.
X-XSRF-TOKEN
String
required
XSRF token header for CSRF security. Can be obtained as the value of a cookie by performing a GET on /csrf.
XSRF token header for CSRF security. Can be obtained as the value of a cookie by performing a GET on /csrf.
xXSRFTOKEN_example
Cookie
String
required
XSRF token header for CSRF security. Can be obtained as the value of a cookie by performing a GET on /csrf.
XSRF token header for CSRF security. Can be obtained as the value of a cookie by performing a GET on /csrf.
cookie_example
curl -X 'POST'
-H
'Accept: application/json'
-H
'X-XSRF-TOKEN: xXSRFTOKEN_example'
-H
'Cookie: cookie_example'
'http://localhost/v1/storage_component/update'
-d
'{
"storageClassId" : 4,
"storageComponentConfig" : {
"arrayLun" : "arrayLun",
"connectionTTL" : 2,
"managementHost" : "hostname.acme.org",
"dataClaimCapacity" : "dataClaimCapacity",
"arrayName" : "arrayName",
"socketRecvBufferSizeHint" : 3,
"userAgentPrefix" : "userAgentPrefix",
"storageFaultDomain" : "storageFaultDomain",
"proxyPort" : 1,
"storageClass" : "storageClass",
"dataPersistentVolumeName" : "dataPersistentVolumeName",
"arrayStorageTier" : "arrayStorageTier",
"socketSendBufferSizeHint" : 9,
"proxyUserName" : "proxyUserName",
"host" : "URL of an existing storage component backend",
"socketTimeout" : 5,
"connectionTimeout" : 5,
"maxConnections" : 7,
"secretKey" : "secretKey",
"siteAffiliation" : {
"id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
"proxyPassword" : "proxyPassword",
"label" : "Cloud AWS Bucket",
"useProxy" : true,
"proxyHost" : "proxyHost",
"arrayHost" : "arrayHost",
"usePathStyleAlways" : true,
"bucket" : "bucket",
"node" : "node",
"arrayNamespace" : "arrayNamespace",
"proxyDomain" : "proxyDomain",
"port" : 6,
"accessKey" : "accessKey",
"managementPassword" : "secret",
"arrayPort" : 2,
"managementProtocol" : "http or https",
"namespace" : "namespace",
"region" : "region",
"managementUser" : "admin"
},
"storageFaultDomainId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"storageType" : "storageType",
"id" : 0,
"storageCustomMetadata" : {
"custom1" : "data",
"custom2" : "data2"
}
}'
import http.client
conn = http.client.HTTPConnection("undefinedundefined")
headers = {
'X-XSRF-TOKEN': "SOME_STRING_VALUE",
'Cookie': "SOME_STRING_VALUE"
}
conn.request("POST", "/v1/storage_component/update", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))require 'uri'
require 'net/http'
url = URI("http://undefinedundefined/v1/storage_component/update")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-XSRF-TOKEN"] = 'SOME_STRING_VALUE'
request["Cookie"] = 'SOME_STRING_VALUE'
response = http.request(request)
puts response.read_bodyconst data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("POST", "http://undefinedundefined/v1/storage_component/update");
xhr.setRequestHeader("X-XSRF-TOKEN", "SOME_STRING_VALUE");
xhr.setRequestHeader("Cookie", "SOME_STRING_VALUE");
xhr.send(data);HttpResponse<String> response = Unirest.post("http://undefinedundefined/v1/storage_component/update")
.header("X-XSRF-TOKEN", "SOME_STRING_VALUE")
.header("Cookie", "SOME_STRING_VALUE")
.asString();import Foundation
let headers = [
"X-XSRF-TOKEN": "SOME_STRING_VALUE",
"Cookie": "SOME_STRING_VALUE"
]
let request = NSMutableURLRequest(url: NSURL(string: "http://undefinedundefined/v1/storage_component/update")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://undefinedundefined/v1/storage_component/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Cookie: SOME_STRING_VALUE",
"X-XSRF-TOKEN: SOME_STRING_VALUE"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "http://undefinedundefined/v1/storage_component/update");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "X-XSRF-TOKEN: SOME_STRING_VALUE");
headers = curl_slist_append(headers, "Cookie: SOME_STRING_VALUE");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);var client = new RestClient("http://undefinedundefined/v1/storage_component/update");
var request = new RestRequest(Method.POST);
request.AddHeader("X-XSRF-TOKEN", "SOME_STRING_VALUE");
request.AddHeader("Cookie", "SOME_STRING_VALUE");
IRestResponse response = client.Execute(request);idintegerrequiredID of the storage component
ID of the storage component
storageTypestringrequiredType of the storage component. Valid values are: AMAZON_S3, HCP_S3, HCPS_S3, GENERIC_S3, TAAL, ARRAY.
Type of the storage component. Valid values are: AMAZON_S3, HCP_S3, HCPS_S3, GENERIC_S3, TAAL, ARRAY.
storageComponentConfigobjectrequired
labelstringName of the storage component
Name of the storage component
"Cloud AWS Bucket"storageFaultDomainstringstorage fault domain associated with the storage component
storage fault domain associated with the storage component
storageClassstringstorage class associated with the storage component
storage class associated with the storage component
hoststringHost domain of the storage backend
Host domain of the storage backend
"URL of an existing storage component backend"uriSchemestring (Enum)Set to HTTPS to use a secure https connection to access the storage backend. Set to HTTP to use http
Set to HTTPS to use a secure https connection to access the storage backend. Set to HTTP to use http
portintegerint32S3 HTTP port
S3 HTTP port
bucketstringName of the bucket (the bucket must already exist)
Name of the bucket (the bucket must already exist)
regionstringSpecifies the S3 region.
Specifies the S3 region.
authTypestring (Enum)AWS Signature Version used for authenticating all interactions with Amazon S3. If this not provided on a create, server will default to V4.
AWS Signature Version used for authenticating all interactions with Amazon S3. If this not provided on a create, server will default to V4.
siteAffiliationobject
idstringrequireduuidUUID identifier for metadata.
UUID identifier for metadata.
accessKeystringAccess key of the S3 credentials to access the bucket
Access key of the S3 credentials to access the bucket
secretKeystringSecret key of the S3 credentials to access the bucket
Secret key of the S3 credentials to access the bucket
useProxybooleanSet to true to use a proxy server. Set to false to opt out. When useProxy is enabled, you must also specify proxyHost and proxyPort.
Set to true to use a proxy server. Set to false to opt out. When useProxy is enabled, you must also specify proxyHost and proxyPort.
proxyHoststringProxy host (required if useProxy is set to true)
Proxy host (required if useProxy is set to true)
proxyPortintegerint32Proxy domain port (required if useProxy is set to true)
Proxy domain port (required if useProxy is set to true)
proxyUserNamestringUser name for the proxy domain.
User name for the proxy domain.
proxyPasswordstringPassword for the proxy domain.
Password for the proxy domain.
proxyDomainstringProxy domain. This is not supported.
Proxy domain. This is not supported.
usePathStyleAlwaysbooleanIf set to true, the path-style syntax is used for sending requests to the S3 storage. If set to false, the virtual-hosted style is used.
If set to true, the path-style syntax is used for sending requests to the S3 storage. If set to false, the virtual-hosted style is used.
connectionTimeoutintegerint32The amount of time (in milliseconds) that the HTTP connection will wait to establish a connection before giving up and timing out
The amount of time (in milliseconds) that the HTTP connection will wait to establish a connection before giving up and timing out
socketTimeoutintegerint32A timeout for reading from a connected socket
A timeout for reading from a connected socket
connectionTTLintegerint64A connection time-to-live (TTL) for a request
A connection time-to-live (TTL) for a request
maxConnectionsintegerint32The maximum allowed number of open HTTP connections with the storage component
The maximum allowed number of open HTTP connections with the storage component
userAgentPrefixstringThe HTTP user agent prefix header used in requests to the storage component
The HTTP user agent prefix header used in requests to the storage component
socketSendBufferSizeHintintegerint32The size hint (in bytes) for the low level TCP receive buffer (socketSendBufferSizeHint must also be specified)
The size hint (in bytes) for the low level TCP receive buffer (socketSendBufferSizeHint must also be specified)
socketRecvBufferSizeHintintegerint32The size hint (in bytes) for the low level TCP send buffer (socketSendBufferSizeHint must also be specified)
The size hint (in bytes) for the low level TCP send buffer (socketSendBufferSizeHint must also be specified)
managementProtocolstringURL protocol definition
URL protocol definition
"http or https"managementHoststringHost to use to establish a management connection
Host to use to establish a management connection
"hostname.acme.org"managementUserstringUser credential to establish a management connection
User credential to establish a management connection
"admin"managementPasswordstringPassword credential to establish a management connection
Password credential to establish a management connection
"secret"namespacestringThe namespace in which the data PersistentVolumeClaims are created in, as well as the Array custom resource.
The namespace in which the data PersistentVolumeClaims are created in, as well as the Array custom resource.
dataPersistentVolumeNamestringThe name of the PersistentVolume to be used for storing data.
The name of the PersistentVolume to be used for storing data.
dataClaimCapacitystringThe amount of storage capacity to be used for storing data.
The amount of storage capacity to be used for storing data.
nodestringThe node to schedule taal to run with dynamic volumes.
The node to schedule taal to run with dynamic volumes.
arrayNamestringThe name of the array being added
The name of the array being added
arrayStorageTierstringThe storage tier or the underlying storage of the array
The storage tier or the underlying storage of the array
arrayNamespacestringThe namespace of the array components
The namespace of the array components
arrayLunstringThe lun of the array
The lun of the array
arrayHoststringThe host
The host
arrayPortintegerThe port
The port
storageFaultDomainIdstringrequireduuidStorage fault domain ID of the storage component
Storage fault domain ID of the storage component
storageClassIdintegerrequiredStorage class ID of the storage component
Storage class ID of the storage component
storageCustomMetadataobjectrequiredCustom metadata of the storage component as a map of strings.
Custom metadata of the storage component as a map of strings.
Additional propertiesstring
[*/* content]