Creates or edits an IIS plugin publication profile.
- Endpoint:
/api/certificate/profile/iis
- Method:
POST
- Request:
POST /api/certificate/profile/iis
Request parameters
| Parameter |
Type |
Required |
Description |
code_profile |
int |
No |
Existing profile code. If not provided, a new profile will be created. |
name_profile |
string |
Yes |
Profile name. |
site |
string |
No |
Site where the certificate should be installed. If not provided, the certificate will be installed on the default IIS site. |
cert_store |
string |
No |
IIS certificate management repository. Default: MY. |
port |
int |
No |
Port. Default: 443. |
code_credential |
int |
Conditional |
Credential code to be used in publication. Required if username is not provided. |
username |
string |
Conditional |
Username used to locate credentials for publication. Required if code_credential is not provided. |
devices |
array |
Yes |
Array with device codes where the certificate should be published. |
Example using cURL
curl -X POST https://[segura_vault_url]/api/certificate/profile/iis \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name_profile": "Windows Servers",
"site": "intranet.example.com",
"cert_store": "MY",
"port": 443,
"code_credential": 15,
"devices": [201, 202]
}'
Response
{
"status": 200,
"message": "Profile created successfully",
"error": false,
"code_profile": 35,
"name_profile": "Windows Servers",
"site": "intranet.example.com",
"cert_store": "MY",
"port": 443,
"code_credential": 15,
"devices": [201, 202]
}
Error responses
| HTTP Status Code |
Description |
| 400 Bad Request |
Invalid parameters provided. |
| 401 Unauthorized |
Unauthorized access. |
| 403 Forbidden |
Forbidden access. |
| 404 Not Found |
Resource not found. |
| 500 Internal Server Error |
Internal server error. |