All URIs are relative to http://portainer.domain/api
| Method | HTTP request | Description |
|---|---|---|
| endpointGroupAccessUpdate | PUT /endpoint_groups/{id}/access | Manage accesses to an endpoint group |
| endpointGroupCreate | POST /endpoint_groups | Create a new endpoint |
| endpointGroupDelete | DELETE /endpoint_groups/{id} | Remove an endpoint group |
| endpointGroupInspect | GET /endpoint_groups/{id} | Inspect an endpoint group |
| endpointGroupList | GET /endpoint_groups | List endpoint groups |
| endpointGroupUpdate | PUT /endpoint_groups/{id} | Update an endpoint group |
EndpointGroup endpointGroupAccessUpdate(id, body)
Manage accesses to an endpoint group
Manage user and team accesses to an endpoint group. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.EndpointGroupsApi();
var id = 56; // Number | EndpointGroup identifier
var body = new PortainerApi.EndpointGroupAccessUpdateRequest(); // EndpointGroupAccessUpdateRequest | Authorizations details
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.endpointGroupAccessUpdate(id, body, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| id | Number | EndpointGroup identifier | |
| body | EndpointGroupAccessUpdateRequest | Authorizations details |
EndpointGroup endpointGroupCreate(body)
Create a new endpoint
Create a new endpoint group. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.EndpointGroupsApi();
var body = new PortainerApi.EndpointGroupCreateRequest(); // EndpointGroupCreateRequest | Registry details
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.endpointGroupCreate(body, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| body | EndpointGroupCreateRequest | Registry details |
endpointGroupDelete(id)
Remove an endpoint group
Remove an endpoint group. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.EndpointGroupsApi();
var id = 56; // Number | EndpointGroup identifier
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.endpointGroupDelete(id, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| id | Number | EndpointGroup identifier |
null (empty response body)
EndpointGroup endpointGroupInspect(id)
Inspect an endpoint group
Retrieve details abount an endpoint group. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.EndpointGroupsApi();
var id = 56; // Number | Endpoint group identifier
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.endpointGroupInspect(id, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| id | Number | Endpoint group identifier |
EndpointGroupListResponse endpointGroupList()
List endpoint groups
List all endpoint groups based on the current user authorizations. Will return all endpoint groups if using an administrator account otherwise it will only return authorized endpoint groups. Access policy: restricted
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.EndpointGroupsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.endpointGroupList(callback);
This endpoint does not need any parameter.
EndpointGroup endpointGroupUpdate(id, body)
Update an endpoint group
Update an endpoint group. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.EndpointGroupsApi();
var id = 56; // Number | EndpointGroup identifier
var body = new PortainerApi.EndpointGroupUpdateRequest(); // EndpointGroupUpdateRequest | EndpointGroup details
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.endpointGroupUpdate(id, body, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| id | Number | EndpointGroup identifier | |
| body | EndpointGroupUpdateRequest | EndpointGroup details |