RESTful knowledge exchange
Post Reply
ameyerhoff
Service Provider
Posts: 7
Liked: 1 time
Joined: Apr 06, 2016 2:03 pm

(GET) /cloud/tenants/{ID}/?format=Entity timzone clarity

Post by ameyerhoff »

when someone performs the following GET call : /cloud/tenants/{ID}/?format=Entity

they usually get back something like this:

Code: Select all

<CloudTenant Type="CloudTenant" Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00?format=Entity" Name="z1.CloudConnectClient.CloudConnectClient.CCClient_vDC" UID="urn:veeam:CloudTenant:d70cb07d-331b-4e69-ad99-8432fb080a00" 
    xmlns="http://www.veeam.com/ent/v1.0" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Links>
        <Link Href="http://{{url}}:9399/api/backupServers/a22af607-ceea-47b2-8ab3-27ef4ff4d86d" Name="z1cc-vbr01.z01.devmgmt.blk" Type="BackupServerReference" Rel="Up"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00" Name="z1.CloudConnectClient.CloudConnectClient.CCClient_vDC" Type="CloudTenantReference" Rel="Alternate"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00" Name="z1.CloudConnectClient.CloudConnectClient.CCClient_vDC" Type="CloudTenantReference" Rel="Edit"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00/resources" Type="CloudTenantResourceList" Rel="Down"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00/resources" Type="CloudTenantResource" Rel="Create"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00" Name="z1.CloudConnectClient.CloudConnectClient.CCClient_vDC" Type="CloudTenant" Rel="Delete"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00/computeResources" Type="CloudTenantComputeResourceList" Rel="Down"/>
        <Link Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00/computeResources" Type="CloudTenantComputeResource" Rel="Create"/>
    </Links>
    <Password/>
    <Description>Created by jfisher at 7/6/2016 10:04 PM.</Description>
    <Enabled>true</Enabled>
    <LeaseOptions Enabled="false"/>
    <Resources>
        <CloudTenantResource Type="CloudTenantResource" Href="http://{{url}}:9399/api/cloud/tenants/d70cb07d-331b-4e69-ad99-8432fb080a00/resources/cef01da5-0b41-4c1b-8b4b-32b46a244b8c" Id="cef01da5-0b41-4c1b-8b4b-32b46a244b8c">
            <RepositoryQuota>
                <DisplayName>BL Cloud Repository</DisplayName>
                <RepositoryUid>urn:veeam:Repository:8f52b41c-bf38-4eb3-9a82-483aaff1d0f8</RepositoryUid>
                <Quota>10240</Quota>
                <UsedQuota>3502</UsedQuota>
            </RepositoryQuota>
        </CloudTenantResource>
    </Resources>
    <LastResult>Success</LastResult>
    <LastActive>2016-08-24T06:20:55Z</LastActive>
    <ComputeResources/>
    <ThrottlingEnabled>false</ThrottlingEnabled>
    <ThrottlingSpeedLimit>1</ThrottlingSpeedLimit>
    <ThrottlingSpeedUnit>MBps</ThrottlingSpeedUnit>
    <PublicIpCount>0</PublicIpCount>
    <BackupCount>2</BackupCount>
    <ReplicaCount>0</ReplicaCount>
</CloudTenant>
My question is what timezone is the Last Active element being reported in?
It is formatted in Zulu time but looks to me like it is not actually UTC at all because this actual example would line up with eastern standard time (we are on Eastern Time with our servers).
Can you clarify this?
ameyerhoff
Service Provider
Posts: 7
Liked: 1 time
Joined: Apr 06, 2016 2:03 pm

Re: (GET) /cloud/tenants/{ID}/?format=Entity timzone clarity

Post by ameyerhoff » 1 person likes this post

I will answer my own question. I just found out that our database instance is in GMT Standard Time for some reason. so The 'Last Active' is actually in UTC
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests