Retrieves Storage Connections for the specified iModel.
Notes
The Prefer header can be used to specify how much result metadata is desired by the client. The Prefer request header field is used to indicate that particular server behaviors are preferred by the client but are not required for successful completion of the request.
This operation supports "return=representation" and "return=minimal" preferences.
The "return=representation" preference indicates that the client prefers that the server include an entity representing the current state of the resource in the response to a successful request.
The "return=minimal" preference indicates that the client wishes the server to return only a minimal response to a successful request. This is the default preference if Prefer header is not specified.
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
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Response 200 OK
OK
{ "connections": [{ "id": "MWplZe9Uf0iR1IDMqyOMLqBN0_wHEVBGg_CzJmXdmE4", "displayName": "30" }], "_links": { "self": { "href": "https://api.bentley.com/synchronization/imodels/storageconnections?iModelId=7dbd531d-6967-47b2-8945-a722a437ad7a&$skip=10&$top=10" }, "prev": { "href": "https://api.bentley.com/synchronization/imodels/storageconnections?iModelId=7dbd531d-6967-47b2-8945-a722a437ad7a&$skip=0&$top=10" }, "next": { "href": "https://api.bentley.com/synchronization/imodels/storageconnections?iModelId=7dbd531d-6967-47b2-8945-a722a437ad7a&$skip=20&$top=10" } } }
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 specified iModel was not found.
{ "error": { "code": "IModelNotFound", "message": "Requested iModelId is not available." } }
Response 422 Unprocessable Entity
Invalid request to get storage connections.
{ "error": { "code": "InvalidConnectionsRequest", "message": "Cannot perform operation.", "details": [{ "code": "InvalidValue", "message": "Page size is over '50' items limit.", "target": "$top" }, { "code": "InvalidValue", "message": "Provided imodelId value is not valid.", "target": "imodelId" }] } }
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.
Link
Hyperlink to the specific entity.
{ "type": "object", "properties": { "href": { "type": "string", "description": "Hyperlink to the specific entity." } }, "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information.", "additionalProperties": true }
Links (paging)
URLs for redoing the current request, getting to the previous or next page of results.
{ "type": "object", "title": "Links (paging)", "properties": { "next": { "$ref": "#/components/schemas/Link" }, "prev": { "$ref": "#/components/schemas/Link" }, "self": { "$ref": "#/components/schemas/Link" } }, "description": "URLs for redoing the current request, getting to the previous or next page of results.", "additionalProperties": false }
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", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/Error", "description": "Error information." } }, "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.", "additionalProperties": false }
Connection Links
{ "type": "object", "title": "Connection Links", "properties": { "iTwin": { "$ref": "#/components/schemas/Link" }, "iModel": { "$ref": "#/components/schemas/Link" }, "lastRun": { "$ref": "#/components/schemas/Link" } }, "additionalProperties": false }
Storage Connection
Storage connection id.
iTwin id.
iModel id.
A storage connection display name.
{ "type": "object", "title": "Storage Connection", "properties": { "id": { "type": "string", "description": "Storage connection id." }, "_links": { "$ref": "#/components/schemas/connection-links" }, "iTwinId": { "type": "string", "description": "iTwin id." }, "iModelId": { "type": "string", "description": "iModel id." }, "displayName": { "type": "string", "description": "A storage connection display name." }, "authenticationType": { "$ref": "#/components/schemas/authenticationType" } }, "additionalProperties": false }
Authentication Type
One of 'User' or 'Service'.
{ "enum": [ "User", "Service" ], "type": "string", "title": "Authentication Type", "description": "One of 'User' or 'Service'." }
Storage Connection (summary)
Storage connection id.
A storage connection display name.
{ "type": "object", "title": "Storage Connection (summary)", "properties": { "id": { "type": "string", "description": "Storage connection id." }, "displayName": { "type": "string", "description": "A storage connection display name." } }, "additionalProperties": false }
Storage Connections Response (prefer return=minimal)
A set of storage connection entities representing a minimal number of properties.
{ "type": "object", "title": "Storage Connections Response (prefer return=minimal)", "properties": { "_links": { "$ref": "#/components/schemas/Links" }, "connections": { "type": "array", "items": { "$ref": "#/components/schemas/storage-connection-summary" }, "description": "A set of storage connection entities representing a minimal number of properties." } }, "additionalProperties": false }
Storage Connections Response (prefer return=representation)
A set of storage connection entities representing all storage connection properties
{ "type": "object", "title": "Storage Connections Response (prefer return=representation)", "properties": { "_links": { "$ref": "#/components/schemas/Links" }, "connections": { "type": "array", "items": { "$ref": "#/components/schemas/StorageConnection" }, "description": "A set of storage connection entities representing all storage connection properties" } }, "additionalProperties": false }
Was this page helpful?