# Accessing Ceph Storage via RESTful API

> When Users want to use the RESTful API to access the Ceph Storage, you must be have API Keys.

When Users want to use the RESTful API to access the Ceph Storage, you must be have API Keys.

## Create an API User {#create-an-api-user}

### Accessing CubeCOS cluster VIP via SSH {#accessing-cubecos-cluster-vip-via-ssh}

```bash
ssh admin@192.168.1.x

Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
Password:
```

### Create an API User {#create-an-api-user-1}

Use command `storage > restful > key_create`

```bash
controller> storage
controller:storage> restful
controller:restful> key_create
Input username: bigstack
5343c5c8-dc07-4427-bc07-9e4956b05a44
```

### List All API Keys {#list-all-api-keys}

Use command `storage > restful > key_list`

```bash
controller:restful> key_list
{
    "bigstack": "5343c5c8-dc07-4427-bc07-9e4956b05a44"
}
```

### Test the User against the API Using curl {#test-the-user-against-the-api-using-curl}

```bash
curl -k https://bigstack:5343c5c8-dc07-4427-bc07-9e4956b05a44@192.168.1.x:8003/server
```

## Reference {#reference}

For additional usage please check out the link: [Ceph Restful Module](https://docs.ceph.com/en/quincy/mgr/restful/).
