Snapshot - List
List all accessible snapshots with related information, including snapshots that were taken by the user, or snapshots to be applied to the user (subscription id was included in the applyScope in Snapshot - Take).
GET {Endpoint}/face/v1.0-preview/snapshots
GET {Endpoint}/face/v1.0-preview/snapshots?type={type}&applyScope={applyScope}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). |
apply
|
query |
string[] |
User specified snapshot apply scopes as a search filter. ApplyScope is an array of the target Azure subscription ids for the snapshot, specified by the user who created the snapshot by Snapshot - Take. |
|
type
|
query |
User specified object type as a search filter. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Snapshot[] |
A successful call returns an array of snapshots with snapshot information. |
Other Status Codes |
Error response. |
Security
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Examples
List snapshots example
Sample request
GET {Endpoint}/face/v1.0-preview/snapshots?type=FaceList&applyScope=64084E07-9B7F-4A98-BEA4-9986D3A1EDEB
Sample response
[
{
"id": "e58b3f08-1e8b-4165-81df-aa9858f233dc",
"account": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/TestRG/providers/Microsoft.CognitiveServices/accounts/FaceTest01",
"type": "FaceList",
"applyScope": [
"35230F59-AA9C-45E0-AB5E-C859BF1A5429",
"64084E07-9B7F-4A98-BEA4-9986D3A1EDEB"
],
"userData": "User-provided data attached to the snapshot1.",
"createdTime": "2018-12-25T11:41:02.2331413Z",
"lastUpdateTime": "2018-12-25T11:51:27.8705696Z"
},
{
"id": "a61e61e4-c3d1-4d33-8ae8-676e6104757d",
"account": "/subscriptions/6622996e-0149-4b22-9703-4216dc948d52/resourceGroups/TestRG/providers/Microsoft.CognitiveServices/accounts/FaceTest01",
"type": "FaceList",
"applyScope": [
"64084E07-9B7F-4A98-BEA4-9986D3A1EDEB"
],
"userData": "User-provided data attached to the snapshot2.",
"createdTime": "2018-12-29T17:09:32.3298483Z",
"lastUpdateTime": "2018-12-29T17:14:34.5645877Z"
}
]
Definitions
Name | Description |
---|---|
APIError |
Error information returned by the API |
Error |
Error body. |
Snapshot |
Snapshot object. The Snapshot API will move your data outside the geo you select for your resource to West US, West Europe and Southeast Asia. |
Snapshot |
Type of the source object in the snapshot, specified by the subscriber who created the snapshot when calling Snapshot - Take. Currently FaceList, PersonGroup, LargeFaceList and LargePersonGroup are supported. |
APIError
Error information returned by the API
Name | Type | Description |
---|---|---|
error |
Error body. |
Error
Error body.
Name | Type | Description |
---|---|---|
code |
string |
|
message |
string |
Snapshot
Snapshot object. The Snapshot API will move your data outside the geo you select for your resource to West US, West Europe and Southeast Asia.
Name | Type | Description |
---|---|---|
account |
string |
Azure Cognitive Service Face account id of the subscriber who created the snapshot by Snapshot - Take. |
applyScope |
string[] |
Array of the target Face subscription ids for the snapshot, specified by the user who created the snapshot when calling Snapshot - Take. For each snapshot, only subscriptions included in the applyScope of Snapshot - Take can apply it. |
createdTime |
string |
A combined UTC date and time string that describes the created time of the snapshot. E.g. 2018-12-25T11:41:02.2331413Z. |
id |
string |
Snapshot id. |
lastUpdateTime |
string |
A combined UTC date and time string that describes the last time when the snapshot was created or updated by Snapshot - Update. E.g. 2018-12-25T11:51:27.8705696Z. |
type |
Type of the source object in the snapshot, specified by the subscriber who created the snapshot when calling Snapshot - Take. Currently FaceList, PersonGroup, LargeFaceList and LargePersonGroup are supported. |
|
userData |
string |
User specified data about the snapshot for any purpose. Length should not exceed 16KB. |
SnapshotObjectType
Type of the source object in the snapshot, specified by the subscriber who created the snapshot when calling Snapshot - Take. Currently FaceList, PersonGroup, LargeFaceList and LargePersonGroup are supported.
Name | Type | Description |
---|---|---|
FaceList |
string |
|
LargeFaceList |
string |
|
LargePersonGroup |
string |
|
PersonGroup |
string |