create_or_update_credential
Create or update a credential for a consumer in the APISIX-MCP server, specifying username, credential ID, and configuration details.
Instructions
Create or update a credential for a consumer
Input Schema
Name | Required | Description | Default |
---|---|---|---|
credential | Yes | credential configuration object | |
id | Yes | credential id | |
username | Yes | consumer username |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"credential": {
"additionalProperties": true,
"description": "credential configuration object",
"properties": {
"desc": {
"description": "credential description",
"maxLength": 256,
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "credential labels",
"type": "object"
},
"name": {
"description": "credential name",
"type": "string"
},
"plugins": {
"additionalProperties": true,
"description": "credential plugins",
"properties": {
"_meta": {
"additionalProperties": false,
"properties": {
"disable": {
"default": false,
"description": "control whether the plugin is enabled",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
},
"required": [
"name"
],
"type": "object"
},
"id": {
"description": "credential id",
"type": "string"
},
"username": {
"description": "consumer username",
"type": "string"
}
},
"required": [
"username",
"id",
"credential"
],
"type": "object"
}