Get all Master Resources

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Gets a list of all master resources.

Security: Requires a valid user

Usage: GET api/v1/masterResources

Consumes: application/json

Query Parameters:

Parameter

Type

Description

Required/Optional

masterResourceId

Integer

The numeric id of the masterResource.

Optional

Request Parameters: Ignored

Produces: application/json

Sample Response:

[{
  "id": 1,
  "resourceType": "resource",
  "name": "foo",
  "description": "description",
  "name": "sample_node",
  "isInternal": false,
  "syntaxVersion": "latest",
  "retiredAt": null,
  "lastSyncLogs": null,
  "lastSyncEndedAt": null,
  "isSyncing": false,
  "lastSyncStartedAt": null,
  "lastSyncEndedAt": null,
  "latestSha": null,
  "namespace": "foo",
  "createdAt": "2019-04-15T05:39:36.104Z",
  "updatedAt": "2019-04-15T05:39:43.286Z"
}]

Response Codes:

200: Success

400: If the id is not an integer

404: If the masterResource is not found for the given masterResourceId