Every repository has an auto-generated RSA key pair. This is used when cloning the repository from GitHub and when encrypting/decrypting secure data for use in builds, e.g. via the Travis CI command line client.
Users may read the public key and fingerprint via GET request, or generate a new key pair via POST, but otherwise this key pair cannot be edited or removed.
Included when the resource is the main response of a request, or is eager loaded.
Name | Type | Description |
---|
description | String | A text description. |
public_key | String | The public key. |
fingerprint | String | The fingerprint. |
Included when the resource is returned as part of another resource.
Name | Type | Description |
---|
description | String | A text description. |
public_key | String | The public key. |
fingerprint | String | The fingerprint. |
Return the current key pair.
GET
/repo/{provider}/{repository.id}/key_pair/generated
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
GET
/repo/{provider}/{repository.slug}/key_pair/generated
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
GET
/repo/{repository.id}/key_pair/generated
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
Example:GET /repo/891/key_pair/generated
GET
/repo/{repository.slug}/key_pair/generated
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
Example:GET /repo/rails%2Frails/key_pair/generated
Generate a new key pair, replacing the previous one.
POST
/repo/{provider}/{repository.id}/key_pair/generated
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
POST
/repo/{provider}/{repository.slug}/key_pair/generated
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
POST
/repo/{repository.id}/key_pair/generated
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Example:POST /repo/891/key_pair/generated
POST
/repo/{repository.slug}/key_pair/generated
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Example:POST /repo/rails%2Frails/key_pair/generated