reposGetDeployKey
Get a deploy key
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/keys/{key_id} - Operation ID:
repos/get-deploy-key
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"key_id": {
"description": "The unique identifier of the key.",
"required": true,
"location": "path",
"type": "integer"
}
}Response Schema
{
"title": "Deploy Key",
"description": "An SSH key granting access to a single repository.",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"verified": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"read_only": {
"type": "boolean"
},
"added_by": {
"type": "string",
"nullable": true
},
"last_used": {
"nullable": true,
"type": "string",
"format": "date-time"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"id",
"key",
"url",
"title",
"verified",
"created_at",
"read_only"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposGetDeployKey', {
# Add required parameters here
})