---
title: "PUT /v1/storages/{storage_id}/access-info"
method: PUT
path: "/v1/storages/{storage_id}/access-info"
tags: ["Storages"]
---

# PUT /v1/storages/{storage_id}/access-info

`PUT /v1/storages/{storage_id}/access-info`

## Request

- The document declares no server URL.
- Auth: none declared

Update a registered storage system access information in Infrastructure management DB.

## Path parameters

- `storage_id` string, required

## Request body

- union
  - object
    - `host` string
    - `port` string
    - `username` string, required
    - `password` string, required
    - `rest` RestAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `ssh` SSHAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `pub_key` string
      - `pub_key_type` 'ed25519' | 'ecdsa' | 'rsa'
    - `cli` CLIAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `smis` SMISAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `namespace` string
    - `extra_attributes` object
  - object
    - `host` string
    - `port` string
    - `username` string, required
    - `password` string, required
    - `pub_key` string
    - `pub_key_type` 'ed25519' | 'ecdsa' | 'rsa'
    - `rest` RestAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `ssh` SSHAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `pub_key` string
      - `pub_key_type` 'ed25519' | 'ecdsa' | 'rsa'
    - `cli` CLIAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `smis` SMISAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `namespace` string
    - `extra_attributes` object
  - object
    - `host` string
    - `port` string
    - `username` string, required
    - `password` string, required
    - `rest` RestAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `ssh` SSHAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `pub_key` string
      - `pub_key_type` 'ed25519' | 'ecdsa' | 'rsa'
    - `cli` CLIAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `smis` SMISAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `namespace` string
    - `extra_attributes` object
  - object
    - `host` string
    - `port` string
    - `username` string, required
    - `password` string, required
    - `namespace` string
    - `rest` RestAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `ssh` SSHAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `pub_key` string
      - `pub_key_type` 'ed25519' | 'ecdsa' | 'rsa'
    - `cli` CLIAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
    - `smis` SMISAccessInfoUpdate
      - `host` string
      - `port` string
      - `username` string, required
      - `password` string, required
      - `namespace` string
    - `extra_attributes` object

## Response `200`

Storage backend  available with updated access information

- StorageAccessInfoResponse
  - `id` string
  - `rest` RestAccessInfoResponse
    - `host` string, required
    - `port` string, required
    - `username` string, required
    - `password` string
  - `ssh` SSHAccessInfoResponse
    - `host` string, required
    - `port` string, required
    - `username` string, required
    - `password` string
    - `pub_key` string
    - `pub_key_type` 'ed25519' | 'ecdsa' | 'rsa'
  - `cli` CLIAccessInfoResponse
    - `host` string, required
    - `port` string, required
    - `username` string, required
    - `password` string
  - `smis` SMISAccessInfoResponse
    - `host` string, required
    - `port` string, required
    - `username` string, required
    - `password` string
    - `namespace` string, required
  - `vendor` string
  - `model` string
  - `extra_attributes` object

## Other responses

- `400`: BadRequest
- `401`: NotAuthorized
- `403`: Forbidden
- `500`: An unexpected error occured.

## Changes

- **2021-02-02** `97ad4728b0b0`: 5 info
  - added the new optional request property `cli`
  - added the new optional request property `smis`
  - added `#/components/schemas/CLIAccessInfoUpdate, #/components/schemas/SMISAccessInfoUpdate` to the request body `anyOf` list
  - added the optional property `cli` to the response with the `200` status
  - …1 more
- **2020-08-24** `d0b031044a4c`: 2 breaking
  - the response property `ssh/pub_key` became optional for the status `200`
  - the response property `ssh/pub_key_type` became optional for the status `200`
- **2020-07-29** `d529ded8b1d2`: 6 warning, 5 info
  - removed the request property `host`
  - removed the request property `password`
  - removed the request property `port`
  - removed the request property `username`
  - …7 more
- **2020-06-22** `e50f7d699db5`: 8 breaking, 12 info
  - removed the required property `code` from the response with the `400` status
  - removed the required property `code` from the response with the `401` status
  - removed the required property `code` from the response with the `403` status
  - removed the required property `code` from the response with the `500` status
  - …16 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/sodafoundation/apis/soda-infrastructure-management-api/changes/v1/storages/:storage_id/access-info/put.md)

---

[API](https://skmtc.dev/sodafoundation/apis/soda-infrastructure-management-api.md) - [All operations](https://skmtc.dev/sodafoundation/apis/soda-infrastructure-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sodafoundation/apis/soda-infrastructure-management-api/revisions/b2017613d719?raw)
