Mend's enhanced SCA API enables automation of workflows in a REST compliant format. The API features:
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}
No request payload
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Group A", "description": "Group description", "userCount": 22 } }
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}
{ "name": "Group A", "description": "Group description" }
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Group A", "description": "Group description", "userCount": 22 } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}
No request payload
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
Filter your search to return items whose property has a specific value. Use the syntax: property:operation:value where a colon (:) separates between property, operation and value.
To combine multiple filters, separate each filter with a semicolon with no space. E.g. property1:operation1:value1;property2:operation2:value2
This endpoint supports filtering on the following properties and its supported operators:
Sort search results alphabetically on an item's property by entering sort= followed by the property name. E.g. enter sort=email to sort alphabetically by their email addresses from a-z ascending.To sort in descending order (z-a), add a minus sign ('-'). E.g. sort=-email.
You can sort by the following properties:
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}/users
No request payload
OK
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": [ { … } ] }
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}/users
{ "userEmails": [ "jon.smith@mail.com" ] }
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
Filter your search to return items whose property has a specific value. Use the syntax: property:operation:value where a colon (:) separates between property, operation and value.
To combine multiple filters, separate each filter with a semicolon with no space. E.g. property1:operation1:value1;property2:operation2:value2
This endpoint supports filtering on the following properties and its supported operators:
Sort search results alphabetically on an item's property by entering sort= followed by the property name. E.g. enter sort=email to sort alphabetically by their email addresses from a-z ascending.To sort in descending order (z-a), add a minus sign ('-'). E.g. sort=-email.
You can sort by the following properties:
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}/roles
No request payload
OK
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": [ { … } ] }
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
Depending on the value of contextType, this can be:
Type of entity the role will be associated with
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}/roles
{ "contextToken": "123e4567-e89b-12d3-a456-426655440000", "contextType": "orgs", "role": "DEFAULT_APPROVER" }
{ "supportToken": "1171c60d", "retVal": { "contextToken": "123e4567-e89b-12d3-a456-426655440000", "contextName": "My Project", "contextType": "orgs", "role": "DEFAULT_APPROVER" } }
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
Depending on the value of contextType, this can be:
Type of entity the role will be associated with
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}/roles
{ "contextToken": "123e4567-e89b-12d3-a456-426655440000", "contextType": "orgs", "role": "DEFAULT_APPROVER" }
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
Filter your search to return items whose property has a specific value. Use the syntax: property:operation:value where a colon (:) separates between property, operation and value.
To combine multiple filters, separate each filter with a semicolon with no space. E.g. property1:operation1:value1;property2:operation2:value2
This endpoint supports filtering on the following properties and its supported operators:
Sort search results alphabetically on an item's property by entering sort= followed by the property name. E.g. enter sort=email to sort alphabetically by their email addresses from a-z ascending.To sort in descending order (z-a), add a minus sign ('-'). E.g. sort=-email.
You can sort by the following properties:
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups
No request payload
OK
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": [ { … } ] }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups
{ "name": "Group A", "description": "Group description" }
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Group A", "description": "Group description", "userCount": 22 } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/groups/{groupUuid}/users/{userUuid}
No request payload
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }