Accesskeys

Per user access key.

This tag groups all operations for accesskeys.

Retrieve all Accesskeys

get

This endpoint enables retrieving all Accesskeys using pagination and optional filters.

Authorizations
Query parameters
offsetinteger · int32Optional

The first element (of the total list of elements) to include in the response. Use together with limit for pagination.

Default: 0Example: 0
limitinteger · int32 · min: 1 · max: 1000Optional

The maximum number of elements to return. Use together with offset for pagination.

Default: 100Example: 100
filter.accesskeyIdstringOptional

The accesskey ID to filter by.

Responses
200
Returned all requested Accesskeys successfully.
application/json
Responseall of
and
get
GET /accesskeys HTTP/1.1
Host: s3.ionos.com
Authorization: Bearer JWT
Accept: */*
{
  "id": "5cd907ee-6b6a-5e3a-abaf-5c2edd01d78c",
  "type": "collection",
  "href": "/accesskeys",
  "items": [
    {
      "id": "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
      "type": "accesskey",
      "href": "/accesskeys/fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
      "metadata": {
        "createdDate": "2020-12-10T13:37:50+01:00",
        "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
        "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
        "lastModifiedDate": "2020-12-11T13:37:50+01:00",
        "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
        "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
        "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
        "status": "AVAILABLE",
        "statusMessage": null,
        "administrative": false,
        "supportedRegions": [
          "de",
          "eu-central-2",
          "eu-south-2"
        ]
      },
      "properties": {
        "description": "Access key details",
        "accessKey": "00000Du4KiV8A1tGUbjI2Ky1YmXqXnCpaQpgWw6_1V5fhMPRnAAAAAEIkfcQAAAAAAiR9xAioHCB_FWuNJ4un864Pouw",
        "secretKey": "tFVkUARsoeCdntQs2jVSyGG6TMPfPZ+ghnsWj/gG",
        "canonicalUserId": "a73e086eeaaa03e21e4e932ac8a2ed7a",
        "contractUserId": "11111111:00000000-0000-0000-0000-000000000000"
      }
    }
  ],
  "offset": 0,
  "limit": 42,
  "_links": {
    "prev": "http://PREVIOUS-PAGE-URI",
    "self": "http://THIS-PAGE-URI",
    "next": "http://NEXT-PAGE-URI"
  }
}

Create AccessKey

post

Creates a new AccessKey.

The full AccessKey needs to be provided to create the object. Optional data will be filled with defaults or left empty.

Authorizations
Body
metadataanyOptional

Metadata

Responses
201
AccessKey successfully created.
application/json
post
POST /accesskeys HTTP/1.1
Host: s3.ionos.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "metadata": {},
  "properties": {
    "description": "Access key details"
  }
}
{
  "id": "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "type": "accesskey",
  "href": "/accesskeys/fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "metadata": {
    "createdDate": "2020-12-10T13:37:50+01:00",
    "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedDate": "2020-12-11T13:37:50+01:00",
    "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
    "status": "AVAILABLE",
    "statusMessage": null,
    "administrative": false,
    "supportedRegions": [
      "de",
      "eu-central-2",
      "eu-south-2"
    ]
  },
  "properties": {
    "description": "Access key details",
    "accessKey": "00000Du4KiV8A1tGUbjI2Ky1YmXqXnCpaQpgWw6_1V5fhMPRnAAAAAEIkfcQAAAAAAiR9xAioHCB_FWuNJ4un864Pouw",
    "secretKey": "tFVkUARsoeCdntQs2jVSyGG6TMPfPZ+ghnsWj/gG",
    "canonicalUserId": "a73e086eeaaa03e21e4e932ac8a2ed7a",
    "contractUserId": "11111111:00000000-0000-0000-0000-000000000000"
  }
}

Retrieve AccessKey

get

Returns the AccessKey by ID.

Authorizations
Path parameters
accesskeyIdstring · uuidRequired

The ID (UUID) of the AccessKey.

Example: fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af
Responses
200
Getting AccessKey was successful.
application/json
get
GET /accesskeys/{accesskeyId} HTTP/1.1
Host: s3.ionos.com
Authorization: Bearer JWT
Accept: */*
{
  "id": "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "type": "accesskey",
  "href": "/accesskeys/fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "metadata": {
    "createdDate": "2020-12-10T13:37:50+01:00",
    "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedDate": "2020-12-11T13:37:50+01:00",
    "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
    "status": "AVAILABLE",
    "statusMessage": null,
    "administrative": false,
    "supportedRegions": [
      "de",
      "eu-central-2",
      "eu-south-2"
    ]
  },
  "properties": {
    "description": "Access key details",
    "accessKey": "00000Du4KiV8A1tGUbjI2Ky1YmXqXnCpaQpgWw6_1V5fhMPRnAAAAAEIkfcQAAAAAAiR9xAioHCB_FWuNJ4un864Pouw",
    "secretKey": "tFVkUARsoeCdntQs2jVSyGG6TMPfPZ+ghnsWj/gG",
    "canonicalUserId": "a73e086eeaaa03e21e4e932ac8a2ed7a",
    "contractUserId": "11111111:00000000-0000-0000-0000-000000000000"
  }
}

Ensure AccessKey

put

Ensures that the AccessKey with the provided ID is created or modified. The full AccessKey needs to be provided to ensure (either update or create) the AccessKey. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.

Authorizations
Path parameters
accesskeyIdstring · uuidRequired

The ID (UUID) of the AccessKey.

Example: fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af
Body
idstring · uuidRequired

The ID (UUID) of the AccessKey.

Example: fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af
metadataanyOptional

Metadata

Responses
200
AccessKey successfully updated.
application/json
put
PUT /accesskeys/{accesskeyId} HTTP/1.1
Host: s3.ionos.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "id": "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "metadata": {},
  "properties": {
    "description": "Access key details"
  }
}
{
  "id": "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "type": "accesskey",
  "href": "/accesskeys/fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "metadata": {
    "createdDate": "2020-12-10T13:37:50+01:00",
    "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedDate": "2020-12-11T13:37:50+01:00",
    "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
    "status": "AVAILABLE",
    "statusMessage": null,
    "administrative": false,
    "supportedRegions": [
      "de",
      "eu-central-2",
      "eu-south-2"
    ]
  },
  "properties": {
    "description": "Access key details",
    "accessKey": "00000Du4KiV8A1tGUbjI2Ky1YmXqXnCpaQpgWw6_1V5fhMPRnAAAAAEIkfcQAAAAAAiR9xAioHCB_FWuNJ4un864Pouw",
    "secretKey": "tFVkUARsoeCdntQs2jVSyGG6TMPfPZ+ghnsWj/gG",
    "canonicalUserId": "a73e086eeaaa03e21e4e932ac8a2ed7a",
    "contractUserId": "11111111:00000000-0000-0000-0000-000000000000"
  }
}

Delete AccessKey

delete

Deletes the specified AccessKey.

Authorizations
Path parameters
accesskeyIdstring · uuidRequired

The ID (UUID) of the AccessKey.

Example: fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af
Responses
202
Deleting AccessKey was successful.
delete
DELETE /accesskeys/{accesskeyId} HTTP/1.1
Host: s3.ionos.com
Authorization: Bearer JWT
Accept: */*

No content

Ensure AccessKey

put

Renew will replace the existing secret access key with a new one.

Authorizations
Path parameters
accesskeyIdstring · uuidRequired

The ID (UUID) of the AccessKey that should be ensured.

Example: fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af
Responses
200
AccessKey successfully updated.
application/json
put
PUT /accesskeys/{accesskeyId}/renew HTTP/1.1
Host: s3.ionos.com
Authorization: Bearer JWT
Accept: */*
{
  "id": "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "type": "accesskey",
  "href": "/accesskeys/fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af",
  "metadata": {
    "createdDate": "2020-12-10T13:37:50+01:00",
    "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedDate": "2020-12-11T13:37:50+01:00",
    "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
    "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
    "status": "AVAILABLE",
    "statusMessage": null,
    "administrative": false,
    "supportedRegions": [
      "de",
      "eu-central-2",
      "eu-south-2"
    ]
  },
  "properties": {
    "description": "Access key details",
    "accessKey": "00000Du4KiV8A1tGUbjI2Ky1YmXqXnCpaQpgWw6_1V5fhMPRnAAAAAEIkfcQAAAAAAiR9xAioHCB_FWuNJ4un864Pouw",
    "secretKey": "tFVkUARsoeCdntQs2jVSyGG6TMPfPZ+ghnsWj/gG",
    "canonicalUserId": "a73e086eeaaa03e21e4e932ac8a2ed7a",
    "contractUserId": "11111111:00000000-0000-0000-0000-000000000000"
  }
}

Was this helpful?