Read (GET) a VMCheckPoint [SPFSDK][VMMREF]

 

Applies To: Windows Azure Pack

Gets a VMCheckPoint [SPFSDK][VMMREF] entity by using the HTTP GET operation.

Here is a list of examples related to this collection operation.

For more information about returning multiple entities, see Common GET HTTP Info.

Method

Request URI

HTTP Version

GET

https://{server-name}:{auth-port}/{subscription-id}/services/systemcenter/vmm/VMCheckPoints(ID=Guid'[value]',StampId=Guid'[value]')

HTTP/1.1

GET

https://{server-name}:{auth-port}/{subscription-id}/services/systemcenter/vmm/VMCheckPoints

HTTP/1.1

URI Parameter

Description

ID

[Edm.Guid] The identifier of the entity.

StampId

[Edm.Guid] The identifier of the stamp that restricts the query.

This operation does not use any non-standard request headers.

For more information about the common request headers used by this operation, see Common HTTP request information

This operation does not return any non-standard OData response codes. If successful, it will return code 200 OK.

This operation does not use any non-standard response headers.

For more information about the common response headers used by this operation, see Common HTTP response information

The response body will contain either (depending on the request headers) an XML or JSON encoded VMCheckPoint [SPFSDK][VMMREF] entity or entities. Here is the response body of a single entity.

{
  "odata.metadata": "https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/$metadata#VMCheckPoints/@Element",
  "Accessibility": "Public",
  "CheckpointID": null,
  "Description": "",
  "Enabled": true,
  "ID": "c6cd770c-ae05-46bc-868a-c83af9363cd9",
  "Name": "Tenent Test Virtual Machine #3",
  "ParentCheckpointID": null,
  "VMId": "24089301-fe61-4f87-932c-4e78c3b0f1cb",
  "AddedTime": "2014-09-03T14:45:26.463-07:00",
  "ModifiedTime": "2014-09-03T14:51:59.673-07:00",
  "StampId": "d70c1a9b-c241-48f5-880a-b6c36071e653",
  "VMCheckPointAction": null,
  "Confirm": null,
  "RunAsynchronously": null
}

For more information about how to get started with using the code examples provided in this programming guide, see Programming in Visual Studio with Service Provider Foundation Services.

Guid stampId = new Guid("d70c1a9b-c241-48f5-880a-b6c36071e653");

var checkpoints = vmmService.VMCheckPoints.ToList();

GET https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/VMCheckPoints HTTP/1.1
DataServiceVersion: 1.0;NetFx
MaxDataServiceVersion: 3.0;NetFx
Accept: application/json;odata=minimalmetadata
Accept-Charset: UTF-8
DataServiceUrlConventions: KeyAsSegment
User-Agent: Microsoft ADO.NET Data Services
Authorization: Bearer {ENCODED AUTHENTICATION TOKEN}
x-ms-principal-id: tenant@fabrikam.com
Host: contoso.com:30005

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 1130
Content-Type: application/json; odata=minimalmetadata; streaming=true; charset=utf-8
Server: Microsoft-IIS/8.5
X-Content-Type-Options: nosniff
request-id: d3df681c-b278-0000-62c0-e1d378b2cf01
DataServiceVersion: 3.0;
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
Date: Wed, 03 Sep 2014 23:54:49 GMT

{"odata.metadata":"https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/$metadata#VMCheckPoints","value":[{"Accessibility":"Public","CheckpointID":"2c5ad324-fba1-4754-9044-da03ae064f40","Description":"","Enabled":true,"ID":"65d477a1-173b-45cd-84c1-e32d331860a4","Name":"Checkpoint 1","ParentCheckpointID":"3e524555-8902-4a33-b9d5-933a01e2e638","VMId":"38c9c3b9-9288-4d7a-82fa-501cd4eb9ecb","AddedTime":"2014-09-03T16:52:45.747-07:00","ModifiedTime":"2014-09-03T16:52:48.907-07:00","StampId":"d70c1a9b-c241-48f5-880a-b6c36071e653","VMCheckPointAction":null,"Confirm":null,"RunAsynchronously":null},{"Accessibility":"Public","CheckpointID":"d2d1e137-bd2e-45e5-a6af-63c3825f9052","Description":"","Enabled":true,"ID":"831e819f-f852-47a8-b4b0-c61ba062df73","Name":"Checkpoint 1","ParentCheckpointID":"2694d261-16d3-4f9a-8e1c-9d2b4f63e99f","VMId":"f11b61fa-b5c7-4807-93b4-f9b371896c6f","AddedTime":"2014-08-28T14:19:48.883-07:00","ModifiedTime":"2014-09-03T05:15:58.37-07:00","StampId":"d70c1a9b-c241-48f5-880a-b6c36071e653","VMCheckPointAction":null,"Confirm":null,"RunAsynchronously":null}]}

For more information about how to get started with using the code examples provided in this programming guide, see Programming in Visual Studio with Service Provider Foundation Services.

Guid stampId = new Guid("d70c1a9b-c241-48f5-880a-b6c36071e653");
Guid checkpointId = new Guid("c6cd770c-ae05-46bc-868a-c83af9363cd9");

var checkpoint = vmmService.VMCheckPoints.Where(s => s.StampId == stampId && s.ID == checkpointId).First();

GET https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/VMCheckPoints(StampId=guid'd70c1a9b-c241-48f5-880a-b6c36071e653',ID=guid'c6cd770c-ae05-46bc-868a-c83af9363cd9') HTTP/1.1
DataServiceVersion: 1.0;NetFx
MaxDataServiceVersion: 3.0;NetFx
Accept: application/json;odata=minimalmetadata
Accept-Charset: UTF-8
DataServiceUrlConventions: KeyAsSegment
User-Agent: Microsoft ADO.NET Data Services
Authorization: Bearer {ENCODED AUTHENTICATION TOKEN}
x-ms-principal-id: tenant@fabrikam.com
Host: contoso.com:30005

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 587
Content-Type: application/json; odata=minimalmetadata; streaming=true; charset=utf-8
Server: Microsoft-IIS/8.5
X-Content-Type-Options: nosniff
request-id: d3df681c-b278-0000-64c0-e1d378b2cf01
DataServiceVersion: 3.0;
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
Date: Wed, 03 Sep 2014 23:54:49 GMT

{"odata.metadata":"https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/$metadata#VMCheckPoints/@Element","Accessibility":"Public","CheckpointID":null,"Description":"","Enabled":true,"ID":"c6cd770c-ae05-46bc-868a-c83af9363cd9","Name":"Tenent Test Virtual Machine #3","ParentCheckpointID":null,"VMId":"24089301-fe61-4f87-932c-4e78c3b0f1cb","AddedTime":"2014-09-03T14:45:26.463-07:00","ModifiedTime":"2014-09-03T14:51:59.673-07:00","StampId":"d70c1a9b-c241-48f5-880a-b6c36071e653","VMCheckPointAction":null,"Confirm":null,"RunAsynchronously":null}
Show: