expandAttachmentForMachines
Get contents metadata for an expanded attachment
Details
- Method:
GET - Path:
/rest/api/3/attachment/{id}/expand/raw - Operation ID:
expandAttachmentForMachines
Parameters
{
"id": {
"description": "The ID of the attachment.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"properties": {
"entries": {
"description": "The list of the items included in the archive.",
"items": {
"additionalProperties": false,
"properties": {
"abbreviatedName": {
"type": "string"
},
"entryIndex": {
"format": "int64",
"type": "integer"
},
"mediaType": {
"type": "string"
},
"name": {
"type": "string"
},
"size": {
"format": "int64",
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"totalEntryCount": {
"description": "The number of items in the archive.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('expandAttachmentForMachines', {
# Add required parameters here
})