Skip to main content

Key v1.0

Manage Keys (used for sftp storage, etc..)

info

You are viewing REST API documentation. This documentation is auto-generated from a swagger specification which itself is generated from annotations in the source code of the project. It is possible that this documentation includes bugs and that code samples are incomplete or wrong.

Authentication

Keys

Keys Controller

Create a key

POST https://auvious.video:443/security/keys HTTP/1.1
Host: auvious.video:443
Content-Type: application/json
Accept: application/json

Use this to create a new key

Request body

{
"comment": "string",
"key": "string",
"organizationId": "string",
"privateKey": "string",
"publicKey": "string",
"type": "SSH_RSA"
}

Parameters

ParameterInTypeRequiredDescription
bodybody[create key web command model](#schemacreate key web command model)falsenone

Responses

Overview
StatusMeaningDescriptionSchema
200OKOK[Result of keypair create operation](#schemaresult of keypair create operation)
201CreatedCreatedNone
401UnauthorizedUnauthorizedNone
403ForbiddenForbiddenNone
404Not FoundNot FoundNone
Examples

200 Response

{
"id": "string",
"key": "string",
"publicKey": "string"
}
caution

To perform this operation, you must be authenticated by means of one of the following methods: Client Credentials Flow ( Scopes: global ), Jwt ( Scopes: global ), None ( Scopes: global ), None ( Scopes: global ), None ( Scopes: global )

Code samples

curl -X POST https://auvious.video:443/security/keys \
-H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}'

Retrieve a key

GET https://auvious.video:443/security/keys/{id} HTTP/1.1
Host: auvious.video:443
Accept: application/json

Use this to retrieve a key, only services and admins are allowed, but private parts are hidden if not a service

Parameters

ParameterInTypeRequiredDescription
idpathstringtrueid

Responses

Overview
StatusMeaningDescriptionSchema
200OKOK[key entity](#schemakey entity)
401UnauthorizedUnauthorizedNone
403ForbiddenForbiddenNone
404Not FoundNot FoundNone
Examples

200 Response

{
"comment": "string",
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"key": "string",
"keySize": 0,
"organizationId": "string",
"privateKey": "string",
"publicKey": "string",
"type": "SSH_RSA",
"userId": "string"
}
caution

To perform this operation, you must be authenticated by means of one of the following methods: Client Credentials Flow ( Scopes: global ), Jwt ( Scopes: global ), None ( Scopes: global ), None ( Scopes: global ), None ( Scopes: global )

Code samples

curl -X GET https://auvious.video:443/security/keys/{id} \
-H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}'

Schemas

Result of keypair create operation

{
"id": "string",
"key": "string",
"publicKey": "string"
}

Result of keypair create operation

Properties

NameTypeRequiredRestrictionsDescription
idstringfalsenonekeypair id
keystringfalsenonekey value, for symmetric keys
publicKeystringfalsenonepublic key for asymmetric keys

create key web command model

{
"comment": "string",
"key": "string",
"organizationId": "string",
"privateKey": "string",
"publicKey": "string",
"type": "SSH_RSA"
}

create key web command model

Properties

NameTypeRequiredRestrictionsDescription
commentstringfalsenonekey comment, supply this to include more information about the key
keystringfalsenonekey include this if you want to import a symmetric type key
organizationIdstringfalsenoneorganizationId, optional, only supplied by internal services
privateKeystringfalsenoneprivate key, include at least this if you want to import a key
publicKeystringfalsenonepublic key, include this optionally if you want to import a key
typestringfalsenonekey type, mandatory
Enumerated Values
PropertyValue
typeSSH_RSA

key entity

{
"comment": "string",
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"key": "string",
"keySize": 0,
"organizationId": "string",
"privateKey": "string",
"publicKey": "string",
"type": "SSH_RSA",
"userId": "string"
}

key entity

Properties

NameTypeRequiredRestrictionsDescription
commentstringfalsenonekey comment
createdAtstring(date-time)falsenonecreation timestamp
idstringfalsenonekey reference id
keystringfalsenonekey part for non assymetric keys
keySizeinteger(int32)falsenonekey size
organizationIdstringfalsenoneorganization id of creator
privateKeystringfalsenoneprivate part of key, if assymetric type
publicKeystringfalsenonepublic part of key, if assymetric type
typestringfalsenonekey type
userIdstringfalsenoneuser id of creator
Enumerated Values
PropertyValue
typeSSH_RSA