Gets the details of all global repositories. Global repositories are not iTwin specific and are available for all iTwins.
Available global repositories.
- Cesium
- Google (only available to internal Bentley applications)
Authentication
Requires Authorization header with valid Bearer token for scope itwin-platform.
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Request parameters
The class that you wish to query on. If not specified then all repositories are returned.
The subClass that you wish to query on. If specified, class is also required.
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Response 200 OK
OK
{ "repositories": [{ "id": "cesium", "class": "Cesium", "displayName": "Cesium", "uri": "https://api.bentley.com/curated-content/cesium", "capabilities": { "resources": { "uri": "https://api.bentley.com/itwins/repositories/cesium/resources" } } }] }
Response 401 Unauthorized
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 404 Not Found
This response indicates that the requested operation or resource could not be found.
{ "error": { "code": "ResourceNotFound", "message": "The requested resource was not found. Verify the API URL and the Accept header.", "details": [{ "code": "OperationNotFound", "message": "Unable to match incoming request to an operation." }] } }
Response 422 Unprocessable Entity
Invalid request to get Repositories
{ "error": { "code": "InvalidiTwinsRequest", "message": "Cannot query iTwin Repositories.", "details": [{ "code": "InvalidValue", "message": "A valid iTwin Repository Class was not specified in the query.", "target": "class" }, { "code": "InvalidValue", "message": "A valid iTwin Repository SubClass was not specified in the query.", "target": "subClass" } ] } }
Response 429 Too many requests
This response indicates that the client sent more requests than allowed by this API for the current tier of the client.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Global-repositories-response
{ "type": "object", "properties": { "repositories": { "type": "array", "items": { "$ref": "#/components/schemas/Global-repository" } } }, "required": [ "repositories" ], "additionalProperties": false }
Global-repository
The global repository id.
The class of the global repository. Known values include: Cesium.
There are no global repositories that have a sub class at this time, but this field is reserved for future use and to be consistent with iTwin repositories.
The repository name that can be displayed to the user.
The uri for the repository.
{ "type": "object", "properties": { "id": { "type": "string", "description": "The global repository id." }, "class": { "type": "string", "description": "The class of the global repository. Known values include: Cesium." }, "subClass": { "type": "string", "description": "There are no global repositories that have a sub class at this time, but this field is reserved for future use and to be consistent with iTwin repositories." }, "displayName": { "type": "string", "description": "The repository name that can be displayed to the user." }, "uri": { "type": "string", "description": "The uri for the repository." }, "capabilities": { "type": "object", "required": [ "resources" ], "properties": { "resources": { "$ref": "#/components/schemas/ResourcesCapability" } }, "description": "Links to additional capabiblies provided by the repository. Currently, only the [resources](https://developer.bentley.com/apis/itwins/operations/get-repository-resources/) capability is suported. It is a read only value returned for certain classes.", "additionalProperties": false } }, "additionalProperties": false }
ResourcesCapability
A uri containing the endpoint that will return the list of resources in the repository.
{ "type": "object", "properties": { "uri": { "type": "string", "description": "A uri containing the endpoint that will return the list of resources in the repository." } }, "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
{ "type": "object", "description": "Contains error information.", "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "target": { "type": "string", "description": "The target of the error.", "nullable": true } }, "required": [ "code", "message" ], "additionalProperties": true }
Error Response
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.
{ "type": "object", "title": "Error Response", "description": "Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.", "properties": { "error": { "description": "Error information.", "$ref": "#/components/schemas/Error" } }, "required": [ "error" ], "additionalProperties": false }
Was this page helpful?