Read (GET) a VirtualSCSIAdapter [SPFSDK][VMMREF]
Applies To: Windows Azure Pack
Gets a VirtualSCSIAdapter [SPFSDK][VMMREF] entity or a set of entities by using the HTTP GET operation.
Here is a list of examples related to this collection operation.
Example: Get a specific VirtualSCSIAdapter object
Example: Get all VirtualSCSIAdapter objects
Example: Get all VirtualSCSIAdapter objects of a virtual machine
Request
For more information about returning multiple entities, see Common GET HTTP Info.
For more information about the placeholders used in the URI, see URL placeholders.
Method |
Request URI |
HTTP Version |
---|---|---|
GET |
https://{server-name}:{auth-port}/{subscription-id}/services/systemcenter/vmm/VirtualSCSIAdapters(ID=Guid'[value]',StampId=Guid'[value]') |
HTTP/1.1 |
GET |
https://{server-name}:{auth-port}/{subscription-id}/services/systemcenter/vmm/VirtualSCSIAdapters |
HTTP/1.1 |
Request URI Parameters
This table only applies when reading a specific entity.
URI Parameter |
Description |
---|---|
ID |
[Edm.Guid] The identifier of the entity. |
StampId |
[Edm.Guid] The identifier of the stamp that restricts the query. |
Request Headers
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.
Request Body
None
Response
Response Codes
This operation does not return any non-standard OData response codes. If successful, it will return code 200 OK.
Response Headers
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.
Response Body
The response body will contain either (depending on the request headers) an XML or JSON encoded VirtualSCSIAdapter [SPFSDK][VMMREF] entity or entities. Here is the response body of a single entity.
{
"odata.metadata": "https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/$metadata#VirtualSCSIAdapters/@Element",
"ID": "62edee14-1753-45b3-9aaf-160a778597aa",
"Name": "Tenent Test Virtual Machine 1",
"AdapterID": 255,
"Bus": 0,
"Shared": false,
"TemplateId": null,
"VMId": null,
"StampId": "56ebc6dc-f63c-46e2-8438-2967e0ad83bc",
"SCSIControllerType": "DefaultTypeNoType",
"Accessibility": "Public",
"AddedTime": "2014-05-06T16:38:13.013-07:00",
"Description": "",
"Enabled": true,
"ModifiedTime": "2014-06-11T16:40:21.9490175-07:00"
}
Example: Get all VirtualSCSIAdapter objects
This example reads all the virtual SCSI adapters available to the authenticated tenant.
For more information about how to get started with using the code examples provided in this programming guide, see Program in Visual Studio with the Windows Azure Pack IaaS Resource Provider [SPFSDK].
var virtualSCSIs = vmmService.VirtualSCSIAdapters.ToList();
HTTP Request
GET https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/VirtualSCSIAdapters 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 Response
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 927
Content-Type: application/json; odata=minimalmetadata; streaming=true; charset=utf-8
Server: Microsoft-IIS/8.5
X-Content-Type-Options: nosniff
request-id: 5fbd8ef2-63e6-0000-cb7e-c15fe663cf01
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: Thu, 12 Jun 2014 01:39:33 GMT
{"odata.metadata":"https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/$metadata#VirtualSCSIAdapters","value":[{"ID":"ddc70c17-c63c-4681-85b2-113ba0096a2d","Name":"Tenant VM 1","AdapterID":255,"Bus":0,"Shared":false,"TemplateId":null,"VMId":null,"StampId":"56ebc6dc-f63c-46e2-8438-2967e0ad83bc","SCSIControllerType":"DefaultTypeNoType","Accessibility":"Public","AddedTime":"2014-05-01T13:50:38.713-07:00","Description":"","Enabled":true,"ModifiedTime":"2014-06-11T09:07:44.4115991-07:00"},{"ID":"62edee14-1753-45b3-9aaf-160a778597aa","Name":"Tenent Test Virtual Machine 1","AdapterID":255,"Bus":0,"Shared":false,"TemplateId":null,"VMId":null,"StampId":"56ebc6dc-f63c-46e2-8438-2967e0ad83bc","SCSIControllerType":"DefaultTypeNoType","Accessibility":"Public","AddedTime":"2014-05-06T16:38:13.013-07:00","Description":"","Enabled":true,"ModifiedTime":"2014-06-11T16:40:21.9490175-07:00"}]}
Example: Get a specific VirtualSCSIAdapter object
This example reads a specific virtual SCSI adapter by identifier.
For more information about how to get started with using the code examples provided in this programming guide, see Program in Visual Studio with the Windows Azure Pack IaaS Resource Provider [SPFSDK].
Guid stampId = new Guid("56ebc6dc-f63c-46e2-8438-2967e0ad83bc");
Guid vScsiId = new Guid("62edee14-1753-45b3-9aaf-160a778597aa");
var virtualSCSI = vmmService.VirtualSCSIAdapters.Where(s => s.StampId == stampId && s.ID == vScsiId).First();
HTTP Request
GET https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/VirtualSCSIAdapters(StampId=guid'56ebc6dc-f63c-46e2-8438-2967e0ad83bc',ID=guid'62edee14-1753-45b3-9aaf-160a778597aa') 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 Response
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 548
Content-Type: application/json; odata=minimalmetadata; streaming=true; charset=utf-8
Server: Microsoft-IIS/8.5
X-Content-Type-Options: nosniff
request-id: 5fbd8ef2-63e6-0000-cd7e-c15fe663cf01
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: Thu, 12 Jun 2014 01:39:33 GMT
{"odata.metadata":"https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/$metadata#VirtualSCSIAdapters/@Element","ID":"62edee14-1753-45b3-9aaf-160a778597aa","Name":"Tenent Test Virtual Machine 1","AdapterID":255,"Bus":0,"Shared":false,"TemplateId":null,"VMId":null,"StampId":"56ebc6dc-f63c-46e2-8438-2967e0ad83bc","SCSIControllerType":"DefaultTypeNoType","Accessibility":"Public","AddedTime":"2014-05-06T16:38:13.013-07:00","Description":"","Enabled":true,"ModifiedTime":"2014-06-11T16:40:21.9490175-07:00"}
Example: Get all VirtualSCSIAdapter objects of a virtual machine
This example gets all virtual SCSI adapters for a virtual machine. This involves querying the VirtualMachines collection for a specific virtual machine, while expanding the VirtualSCSIAdapters property. With this property expanded, the virtual machine object fills the property with the virtual SCSI adapters associated with the virtual machine.
For more information about how to get started with using the code examples provided in this programming guide, see Program in Visual Studio with the Windows Azure Pack IaaS Resource Provider [SPFSDK].
Guid stampId = new Guid("56ebc6dc-f63c-46e2-8438-2967e0ad83bc");
Guid vmId = new Guid("ee9fb3ed-c2f1-4ed5-9597-0a30c69d17f8");
var virtualSCSIs = vmmService.VirtualMachines.Expand("VirtualSCSIAdapters").Where(v => v.StampId == stampId && v.ID == vmId).First().VirtualSCSIAdapters.ToList();
HTTP Request
GET https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/VirtualMachines(StampId=guid'56ebc6dc-f63c-46e2-8438-2967e0ad83bc',ID=guid'ee9fb3ed-c2f1-4ed5-9597-0a30c69d17f8')?$expand=VirtualSCSIAdapters 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 Response
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 4762
Content-Type: application/json; odata=minimalmetadata; streaming=true; charset=utf-8
Server: Microsoft-IIS/8.5
X-Content-Type-Options: nosniff
request-id: 5fbd8ef2-63e6-0000-cf7e-c15fe663cf01
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: Thu, 12 Jun 2014 01:39:34 GMT
{"odata.metadata":"https://contoso.com:30005/86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06/services/systemcenter/vmm/$metadata#VirtualMachines/@Element","VirtualSCSIAdapters":[{"ID":"62edee14-1753-45b3-9aaf-160a778597aa","Name":"Tenent Test Virtual Machine 1","AdapterID":255,"Bus":0,"Shared":false,"TemplateId":null,"VMId":null,"StampId":"56ebc6dc-f63c-46e2-8438-2967e0ad83bc","SCSIControllerType":"DefaultTypeNoType","Accessibility":"Public","AddedTime":"2014-05-06T16:38:13.013-07:00","Description":"","Enabled":true,"ModifiedTime":"2014-06-11T16:40:21.95-07:00"}],"AddedTime":"2014-05-06T16:38:12.953-07:00","Agent":null,"AllocatedGPU":null,"BackupEnabled":true,"BlockLiveMigrationIfHostBusy":null,"CanVMConnect":true,"CheckpointLocation":null,"CloudId":"d1f15abc-672d-464b-b3bc-376d2087bb8e","ComputerName":"MICROSOF-6F2DDB","ComputerTierId":null,"CostCenter":null,"CPUCount":1,"CPUMax":100,"CPUReserve":0,"CPUType":"3.60 GHz Xeon (2 MB L2 cache)","CPUUtilization":0,"CreationSource":"Temporary Template1fe3eca3-80b2-4cbd-a7b2-5aa361ef6379","CreationTime":"2014-05-06T16:38:12.953-07:00","DataExchangeEnabled":true,"DelayStart":0,"DeployPath":null,"Description":"","DiskIO":0,"Dismiss":null,"DynamicMemoryDemandMB":0,"Enabled":true,"ExcludeFromPRO":false,"ExpectedCPUUtilization":20,"FailedJobID":null,"HasPassthroughDisk":false,"HasSavedState":false,"HasVMAdditions":true,"HeartbeatEnabled":true,"HighlyAvailable":null,"ID":"ee9fb3ed-c2f1-4ed5-9597-0a30c69d17f8","IsFaultTolerant":false,"IsHighlyAvailable":false,"IsUndergoingLiveMigration":false,"LastRestoredCheckpointId":"007f6901-1a11-433d-b0d6-529a97978ad1","LibraryGroup":"","LimitCPUForMigration":false,"LimitCPUFunctionality":false,"VMNetworkAssignments":[],"Location":"","MarkedAsTemplate":false,"Memory":4000,"MemoryAssignedMB":0,"MemoryAvailablePercentage":null,"ModifiedTime":"2014-06-11T16:40:21.95-07:00","MostRecentTaskId":"6b6d2a71-f79a-4773-9a4d-35910dcaed39","Name":"Tenent Test Virtual Machine 1","NetworkUtilization":0,"NumLock":null,"OperatingSystem":"Windows Server 2003 Enterprise Edition (32-bit x86)","OperatingSystemInstance":{"Name":"Windows Server 2003 Enterprise Edition (32-bit x86)","Description":"Windows Server 2003 Enterprise Edition (32-bit x86)","Version":"5.2","Architecture":"x86","Edition":"Enterprise","OSType":"Windows","ProductType":"VER_NT_SERVER"},"OperatingSystemShutdownEnabled":true,"Operation":null,"Owner":{"UserName":"tenant@fabrikam.com","RoleName":"tenant@fabrikam.com_86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06","RoleID":"86e93b7f-25e3-4c44-8ca1-3ebdbd2dfc06"},"GrantedToList":[],"Path":null,"PerfCPUUtilization":-1,"PerfDiskBytesRead":"-1","PerfDiskBytesWrite":"-1","PerfNetworkBytesRead":"-1","PerfNetworkBytesWrite":"-1","CPURelativeWeight":null,"Retry":null,"RunGuestAccount":null,"ServiceDeploymentErrorMessage":null,"ServiceId":null,"SharePath":null,"SourceObjectType":"VM Template","StartAction":"TurnOnVMIfRunningWhenVSStopped","StartVM":null,"Status":"PowerOff","StatusString":"Stopped","StopAction":"SaveVM","Tag":"(none)","TimeSynchronizationEnabled":true,"TotalSize":"2928402432","Undo":null,"UndoDisksEnabled":false,"UpgradeDomain":null,"UseCluster":null,"UseLAN":null,"VirtualHardDiskId":null,"VirtualizationPlatform":"HyperV","CapabilityProfile":null,"VMBaseConfigurationId":null,"VMConnection@odata.mediaContentType":"application/x-rdp","VMConfigResource":null,"VMCPath":null,"VMHostName":null,"VMId":"007f6901-1a11-433d-b0d6-529a97978ad1","StampId":"56ebc6dc-f63c-46e2-8438-2967e0ad83bc","VMResource":null,"VMResourceGroup":null,"VirtualMachineState":"PowerOff","VMTemplateId":null,"HardwareProfileId":null,"BlockDynamicOptimization":null,"CPULimitForMigration":null,"CPULimitFunctionality":null,"Domain":null,"DynamicMemoryBufferPercentage":null,"DynamicMemoryEnabled":false,"DynamicMemoryMaximumMB":null,"FullName":null,"MemoryWeight":5000,"OrganizationName":null,"DelayStartSeconds":null,"ProductKey":null,"WorkGroup":null,"TimeZone":null,"RunAsAccountUserName":null,"UserName":null,"Password":null,"LocalAdminRunAsAccountName":null,"LocalAdminUserName":null,"LocalAdminPassword":null,"LinuxDomainName":null,"LinuxAdministratorSSHKey":null,"LinuxAdministratorSSHKeyString":null,"CloudVMRoleName":null,"Generation":1,"DeploymentErrorInfo":{"CloudProblem":null,"Code":null,"DetailedCode":null,"DetailedErrorCode":null,"DetailedSource":null,"DisplayableErrorCode":null,"ErrorCodeString":null,"ErrorType":null,"ExceptionDetails":null,"IsConditionallyTerminating":null,"IsDeploymentBlocker":null,"IsMomAlert":null,"IsSuccess":null,"IsTerminating":null,"MessageParameters":null,"MomAlertSeverity":null,"Problem":null,"RecommendedAction":null,"RecommendedActionCLI":null,"ShowDetailedError":null},"NewVirtualNetworkAdapterInput":[],"IsRecoveryVM":false}
See Also
VirtualSCSIAdapters Collection [SPFSDK][VMMREF]
VirtualSCSIAdapter [SPFSDK][VMMREF]
Create (POST) a VirtualSCSIAdapter [SPFSDK][VMMREF]
Delete (DELETE) a VirtualSCSIAdapter [SPFSDK][VMMREF]