List Service Level Objectives (classic)

 

THIS TOPIC APPLIES TO: noSQL Server yesAzure SQL DatabaseyesAzure SQL Data Warehouse noParallel Data Warehouse

Gets the service level objectives for a Microsoft Azure SQL Database Server.

Important

The recommended REST commands to work with SQL Database are the Resource Manager based Azure SQL Database REST API. While there is no change to SQL Database, be aware that the classic deployment model command in this article is scheduled for deprecation on December 1, 2019. For a table providing links to the specific new commands you should use, see Operations for Azure SQL Databases.

Request

The List Service Level Objectives request must be specified as follows:

  • Replace {subscriptionId} with your subscription ID.

  • Replace {serverName} with the name of the server to list the service level objectives for.

Method Request URI HTTP Version
GET https://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/serviceobjectives HTTP/1.1

If an operation returns success, the operation is complete and changes are effective immediately. If an operation fails because of a user error, no changes are applied. If there is a communication error or internal server error, you should check the status of the operation using List Servers (classic).

URI Parameters

None.

Request Headers

The following table describes the required and optional request headers:

Request Header Description
x-ms-version Required. Specifies the version of the operation to use for this request. This header should be set to 2012-03-01.

Request Body

None.

Response

The response includes an HTTP status code, a set of response headers, and a response body.

Status Code

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Header Description
x-ms-request-id A value that uniquely identifies a request made against the database management service. This request id is used for request tracking. If a failure occurs that requires the user to contact Microsoft Support, the request id should be provided to Microsoft to assist in tracking and resolving the failure for the request.

Response Body

The following is an example response body:

<ServiceResources xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <ServiceResource>  
    <Name>S2</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/455330e1-00cd-488b-b5fa-177c226f28b7</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>455330e1-00cd-488b-b5fa-177c226f28b7</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Standard S2 resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>S2</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/a6929526-f04f-48d2-8c46-babe799f2192</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>a6929526-f04f-48d2-8c46-babe799f2192</Id>  
        <Description>Standard S2 resource allocation.</Description>  
        <Ordinal>6</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>P1</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/7203483a-c4fb-4304-9e9f-17c71c904f5d</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>7203483a-c4fb-4304-9e9f-17c71c904f5d</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Premium P1 resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>P1</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/765fbda3-73c9-4fad-996e-7c0e4e219f68</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>765fbda3-73c9-4fad-996e-7c0e4e219f68</Id>  
        <Description>Premium P1 resource allocation.</Description>  
        <Ordinal>7</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>P2</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Premium P2 resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>P2</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/b15e89f1-02b5-4618-b44d-75d37261b94b</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>b15e89f1-02b5-4618-b44d-75d37261b94b</Id>  
        <Description>Premium P2 resource allocation.</Description>  
        <Ordinal>8</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>Basic</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/dd6d99bb-f193-4ec1-86f2-43d3bccbc49c</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>dd6d99bb-f193-4ec1-86f2-43d3bccbc49c</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Basic resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>Basic</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/3a2b7a50-065b-4c55-921d-c0ca49e174d3</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>3a2b7a50-065b-4c55-921d-c0ca49e174d3</Id>  
        <Description>Basic resource allocation.</Description>  
        <Ordinal>3</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>S1</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/1b1ebd4d-d903-4baa-97f9-4ea675f5e928</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>1b1ebd4d-d903-4baa-97f9-4ea675f5e928</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Standard S1 resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>S1</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/2e9b7ede-a777-4244-945c-9f319b1cec02</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>2e9b7ede-a777-4244-945c-9f319b1cec02</Id>  
        <Description>Standard S1 resource allocation.</Description>  
        <Ordinal>5</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>S0</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/f1173c43-91bd-4aaa-973c-54e79e15235b</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>f1173c43-91bd-4aaa-973c-54e79e15235b</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Standard S0 resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>S0</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/e3dbbb0b-df82-44fd-b742-425e2a491091</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>e3dbbb0b-df82-44fd-b742-425e2a491091</Id>  
        <Description>Standard S0 resource allocation.</Description>  
        <Ordinal>4</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>P3 deprecated</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/e210706e-cd95-4f72-b5e5-885f8a1406e8</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>e210706e-cd95-4f72-b5e5-885f8a1406e8</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Premium P3 deprecated resource allocation.</Description>  
    <Enabled>False</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>P3 deprecated</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/8efe7983-8e31-4ddb-82d2-5c00e4f48631</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>8efe7983-8e31-4ddb-82d2-5c00e4f48631</Id>  
        <Description>Premium P3 deprecated resource allocation.</Description>  
        <Ordinal>10</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>P3</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/a7c4c615-cfb1-464b-b252-925be0a19446</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>a7c4c615-cfb1-464b-b252-925be0a19446</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Premium P3 resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>P3</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/c4da00a1-df48-4f87-930e-dbc170fe1cef</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>c4da00a1-df48-4f87-930e-dbc170fe1cef</Id>  
        <Description>Premium P3 resource allocation.</Description>  
        <Ordinal>9</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>System</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/26e021db-f1f9-4c98-84c6-92af8ef433d7</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>26e021db-f1f9-4c98-84c6-92af8ef433d7</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>True</IsSystem>  
    <Description>Used for master database only.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>System</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/5b1e7ca2-f1c8-4da8-bb42-7ebe94a92609</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>5b1e7ca2-f1c8-4da8-bb42-7ebe94a92609</Id>  
        <Description>Used for master database only.</Description>  
        <Ordinal>1</Ordinal>  
        <IsDefault>False</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>System Standard</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/a45fea0c-e63c-4bf0-9f81-9964c86b7d2a</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>a45fea0c-e63c-4bf0-9f81-9964c86b7d2a</Id>  
    <IsDefault>False</IsDefault>  
    <IsSystem>True</IsSystem>  
    <Description>Used for master database only.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>Shared</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/22467ff6-6823-4d18-a169-913150e7714f</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>22467ff6-6823-4d18-a169-913150e7714f</Id>  
        <Description>Shared resource allocation.</Description>  
        <Ordinal>2</Ordinal>  
        <IsDefault>True</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
  <ServiceResource>  
    <Name>Shared</Name>  
    <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/serviceobjectives/910b4fcb-8a29-4c3e-958f-f7ba794388b2</SelfLink>  
    <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
    <Id>910b4fcb-8a29-4c3e-958f-f7ba794388b2</Id>  
    <IsDefault>True</IsDefault>  
    <IsSystem>False</IsSystem>  
    <Description>Shared resource allocation.</Description>  
    <Enabled>True</Enabled>  
    <DimensionSettings>  
      <ServiceResource>  
        <Name>Shared</Name>  
        <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
        <State>Normal</State>  
        <SelfLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw/dimensionsettings/22467ff6-6823-4d18-a169-913150e7714f</SelfLink>  
        <ParentLink>https://management.core.windows.net:8443/6705f9ad-647a-4e35-8e92-07669281dd0c/services/sqlservers/servers/ynoc2912vw</ParentLink>  
        <Id>22467ff6-6823-4d18-a169-913150e7714f</Id>  
        <Description>Shared resource allocation.</Description>  
        <Ordinal>2</Ordinal>  
        <IsDefault>True</IsDefault>  
      </ServiceResource>  
    </DimensionSettings>  
  </ServiceResource>  
 <ServiceResources xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
 <ServiceResource>  
  <Name>S2</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/455330e1-00cd-488b-b5fa-177c226f28b7</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>455330e1-00cd-488b-b5fa-177c226f28b7</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Standard S2 resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>S2</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/a6929526-f04f-48d2-8c46-babe799f2192</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>a6929526-f04f-48d2-8c46-babe799f2192</Id>  
    <Description>Standard S2 resource allocation.</Description>  
    <Ordinal>5</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>P1</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/7203483a-c4fb-4304-9e9f-17c71c904f5d</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>7203483a-c4fb-4304-9e9f-17c71c904f5d</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Premium P1 resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>P1</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/765fbda3-73c9-4fad-996e-7c0e4e219f68</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>765fbda3-73c9-4fad-996e-7c0e4e219f68</Id>  
    <Description>Premium P1 resource allocation.</Description>  
    <Ordinal>6</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>P2</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Premium P2 resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>P2</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/b15e89f1-02b5-4618-b44d-75d37261b94b</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>b15e89f1-02b5-4618-b44d-75d37261b94b</Id>  
    <Description>Premium P2 resource allocation.</Description>  
    <Ordinal>7</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>Basic</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/dd6d99bb-f193-4ec1-86f2-43d3bccbc49c</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>dd6d99bb-f193-4ec1-86f2-43d3bccbc49c</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Basic resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>Basic</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/3a2b7a50-065b-4c55-921d-c0ca49e174d3</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>3a2b7a50-065b-4c55-921d-c0ca49e174d3</Id>  
    <Description>Basic resource allocation.</Description>  
    <Ordinal>3</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>S1</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/1b1ebd4d-d903-4baa-97f9-4ea675f5e928</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>1b1ebd4d-d903-4baa-97f9-4ea675f5e928</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Standard S1 resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>S1</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/2e9b7ede-a777-4244-945c-9f319b1cec02</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>2e9b7ede-a777-4244-945c-9f319b1cec02</Id>  
    <Description>Standard S1 resource allocation.</Description>  
    <Ordinal>4</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>P3 deprecated</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/e210706e-cd95-4f72-b5e5-885f8a1406e8</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>e210706e-cd95-4f72-b5e5-885f8a1406e8</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Premium P3 deprecated resource allocation.</Description>  
  <Enabled>False</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>P3 deprecated</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/8efe7983-8e31-4ddb-82d2-5c00e4f48631</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>8efe7983-8e31-4ddb-82d2-5c00e4f48631</Id>  
    <Description>Premium P3 deprecated resource allocation.</Description>  
    <Ordinal>9</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>P3</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/a7c4c615-cfb1-464b-b252-925be0a19446</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>a7c4c615-cfb1-464b-b252-925be0a19446</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Premium P3 resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>P3</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/c4da00a1-df48-4f87-930e-dbc170fe1cef</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>c4da00a1-df48-4f87-930e-dbc170fe1cef</Id>  
    <Description>Premium P3 resource allocation.</Description>  
    <Ordinal>8</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>System</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/26e021db-f1f9-4c98-84c6-92af8ef433d7</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>26e021db-f1f9-4c98-84c6-92af8ef433d7</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>True</IsSystem>  
  <Description>Used for master database only.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>System</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/5b1e7ca2-f1c8-4da8-bb42-7ebe94a92609</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>5b1e7ca2-f1c8-4da8-bb42-7ebe94a92609</Id>  
    <Description>Used for master database only.</Description>  
    <Ordinal>1</Ordinal>  
    <IsDefault>False</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>System Standard</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/a45fea0c-e63c-4bf0-9f81-9964c86b7d2a</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>a45fea0c-e63c-4bf0-9f81-9964c86b7d2a</Id>  
  <IsDefault>False</IsDefault>  
  <IsSystem>True</IsSystem>  
  <Description>Used for master database only.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>Shared</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/22467ff6-6823-4d18-a169-913150e7714f</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>22467ff6-6823-4d18-a169-913150e7714f</Id>  
    <Description>Shared resource allocation.</Description>  
    <Ordinal>2</Ordinal>  
    <IsDefault>True</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
 <ServiceResource>  
  <Name>Shared</Name>  
  <Type>Microsoft.SqlAzure.ServiceObjective</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/serviceobjectives/910b4fcb-8a29-4c3e-958f-f7ba794388b2</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
  <Id>910b4fcb-8a29-4c3e-958f-f7ba794388b2</Id>  
  <IsDefault>True</IsDefault>  
  <IsSystem>False</IsSystem>  
  <Description>Shared resource allocation.</Description>  
  <Enabled>True</Enabled>  
  <DimensionSettings>  
   <ServiceResource>  
    <Name>Shared</Name>  
    <Type>Microsoft.SqlAzure.DimensionSetting</Type>  
    <State>Normal</State>  
    <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv/dimensionsettings/22467ff6-6823-4d18-a169-913150e7714f</SelfLink>  
    <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/dsohd60dtv</ParentLink>  
    <Id>22467ff6-6823-4d18-a169-913150e7714f</Id>  
    <Description>Shared resource allocation.</Description>  
    <Ordinal>2</Ordinal>  
    <IsDefault>True</IsDefault>  
   </ServiceResource>  
  </DimensionSettings>  
 </ServiceResource>  
</ServiceResources>  
  

The following table describes the elements in the response body:

Element Name Description
Name The name of the service objective.
Type The type of the service resource; Microsoft.SqlAzure.ServiceObjective.
State The state of the service resource.
SelfLink The URI identifier for this resource.
ParentLink The URI identifier for the parent of this resource (the server).
Id The identifier for the service objective.
IsDefault Specifies if this is the default service objective.
IsSystem Specifies if this is a system object.
Description The detailed description of the service objective.
Enabled Specifies if this service resource is enabled.
DimensionSettings For a description of the DimensionSettings response, see List Service Objective Dimension Settings (classic).

Example

The following console application lists the service level objectives for a subscription.

Replace the following values:

  • {subscriptionId} – replace with the subscription identifier for your subscription.

  • {serverName} – replace with the name of your server.

  • {thumbprint} – replace with the thumbprint of a management certificate in your subscription.

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Text;  
using System.Threading.Tasks;  
using System.IO;  
using System.Xml;  
using System.Security;  
using System.Security.Cryptography;  
using System.Security.Cryptography.X509Certificates;  
using System.Net;  
  
namespace ListServiceLevelObjectives  
{  
    /// <summary>  
    /// Lists the service level objectives for a server.  
    /// </summary>  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            Uri requestUri = new Uri("https://management.core.windows.net:8443/"  
                        + "{subscriptionId}"  
                        + "/services"  
                        + "/sqlservers/servers/{serverName}/serviceobjectives");  
  
            // Create the request and specify attributes.  
            HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(requestUri);  
  
            // Add a x-ms-version header to specify API version.  
            request.Headers.Add("x-ms-version", "2012-03-01");  
  
            // Generate a request ID that can be used to identify this request in the service logs.  
            string clientRequestId = Guid.NewGuid().ToString();  
            request.Headers.Add("x-ms-client-request-id", clientRequestId);  
            request.Method = "GET";  
            request.ContentType = "application/xml";  
  
            // The thumbprint value of the management certificate.  
            // Replace {thumbprint} with the thumbprint of a management certificate associated with your subscription.  
            // It must also be installed on the machine accessing the API.  
            string certThumbprint = "{thumbprint}";  
  
            // Create a reference to the My certificate store.  
            X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);  
  
            // Open the store.  
            certStore.Open(OpenFlags.ReadOnly);  
  
            // Find the certificate that matches the thumbprint.  
            X509Certificate2Collection certCollection = certStore.Certificates.Find(X509FindType.FindByThumbprint, certThumbprint, false);  
            certStore.Close();  
  
            // Verify the certificate was added to the collection.  
            if (0 == certCollection.Count)  
            {  
                throw new Exception("Error: No certificate found with thumbprint " + certThumbprint);  
            }  
  
            // Create an X509Certificate2 object using the matching certificate.  
            X509Certificate2 certificate = certCollection[0];  
  
            // Attach the certificate to the request.  
            request.ClientCertificates.Add(certificate);  
  
            try  
            {  
                using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())  
                using (Stream responseStream = response.GetResponseStream())  
                using (StreamReader reader = new StreamReader(responseStream))  
                {  
                    // Display the client request ID.  
                    Console.WriteLine("clientRequestId: " + clientRequestId);  
  
                    // Display the web response status code.  
                    Console.WriteLine("Response status code: " + response.StatusCode);  
  
                    // Display the request ID returned by Windows Azure.  
                    Console.WriteLine("x-ms-request-id: "  
                        + response.Headers["x-ms-request-id"]);  
  
                    // Display the raw response.  
                    Console.WriteLine("Received response:");  
                    Console.WriteLine(reader.ReadToEnd());  
                }  
            }  
            catch (Exception e)  
            {  
                Console.WriteLine(e.StackTrace);  
            }  
        }  
    }  
}  

See Also

Common REST API Error Codes
Azure SQL Database
Operations for Azure SQL Databases
Azure SQL Database Cmdlets