Create an ExternalProvider¶
POST /api/v1/externalprovider
Creates a new ExternalProvider.
Authorization¶
Request body¶
Required.
Content type: application/json
Schema: CreateExternalProviderRequest
Example:
{
"name": "string",
"namespace": "string",
"displayName": "string",
"description": "string",
"endpointUrl": "string",
"authMechanism": "apikey",
"credentialSecretRef": "string",
"provider": "string",
"config": {
"key": "string"
}
}
Responses¶
| Status | Description | Response body |
|---|---|---|
201 Created | ExternalProvider created | None |
Example request¶
curl -X POST "/maas/api/v1/externalprovider" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"namespace": "string",
"displayName": "string",
"description": "string",
"endpointUrl": "string",
"authMechanism": "apikey",
"credentialSecretRef": "string",
"provider": "string",
"config": {
"key": "string"
}
}'