Rsa

Repos Rsa Create

Set the active RSA key for the Repository.

Request

posthttps://api.cloudsmith.io/v1/repos/{owner}/{identifier}/rsa
Body params optional

Response body

object

object

rsa_passphrase
string
optional
length ≥ 1
rsa_private_key
string
required
length ≥ 1

Response

Responses

The provided RSA key is the same as the current RSA key.

object

object

active
boolean
optional
created_at
date-time
optional
default
boolean
optional
fingerprint
string
optional
length ≥ 1
fingerprint_short
string
optional
public_key
string
optional
length ≥ 1
ssh_fingerprint
string | null
optional

The provided RSA key was assigned to the Repository.

object

object

active
boolean
optional
created_at
date-time
optional
default
boolean
optional
fingerprint
string
optional
length ≥ 1
fingerprint_short
string
optional
public_key
string
optional
length ≥ 1
ssh_fingerprint
string | null
optional

The provided RSA key is not valid

object

object

detail
string
required
length ≥ 1
fields
object
optional

Custom RSA keys are not active; upgrade your account!

object

object

detail
string
required
length ≥ 1
fields
object
optional

Organization/Repository does not exist, or you do not have permissions.

object

object

detail
string
required
length ≥ 1
fields
object
optional

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1
fields
object
optional