Skip to main content

Keys

POST Swift Key#

Create Swift keys.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/storage/swift
HeadersAuthorization
ParametersprojectId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Shows the project Id

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
versionYesstringv1Shows the version of API
projectIdYesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Shows the project Id

Request body#

{  "name": "string"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
nameYesstring"string"Sends the name of keys.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "username": "string",    "secretKey": "string"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultobjectReturn the result of swift keys.
usernamestring"string"Returns the username of keys.
secretKeystring"string"Returns the secret key.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE Key#

Delete Swift key.

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/projects/{projectId}/storage/swift
HeadersAuthorization
ParametersprojectId, version
BodyNot Applicable
Queryname

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Shows the project Id
Query Parameter NameMandatoryTypeExampleDescription
{name}Yesstring"string"Sends the name of keys.

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
versionYesstringv1Shows the version of API
projectIdYesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Shows the project Id

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 204 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found