Analysis Services リソース プロバイダーの対象となる SKU を一覧表示します。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/skus?api-version=2017-08-01
URI パラメーター
名前 |
/ |
必須 |
型 |
説明 |
subscriptionId
|
path |
True
|
string
|
Microsoft Azure サブスクリプションの一意識別子。 サブスクリプション ID は、全ての修理依頼についてURI の一部を生じさせます。
|
api-version
|
query |
True
|
string
|
クライアント API のバージョン。
|
応答
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 |
説明 |
user_impersonation
|
ユーザー アカウントの借用
|
例
List eligible SKUs for a new server
要求のサンプル
GET https://management.azure.com/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.AnalysisServices/skus?api-version=2017-08-01
package armanalysisservices_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/armanalysisservices"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-08-01/examples/listSkusForNew.json
func ExampleServersClient_ListSKUsForNew() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armanalysisservices.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewServersClient().ListSKUsForNew(ctx, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SKUEnumerationForNewResourceResult = armanalysisservices.SKUEnumerationForNewResourceResult{
// Value: []*armanalysisservices.ResourceSKU{
// {
// Name: to.Ptr("B1"),
// },
// {
// Name: to.Ptr("B2"),
// },
// {
// Name: to.Ptr("D1"),
// },
// {
// Name: to.Ptr("S0"),
// },
// {
// Name: to.Ptr("S1"),
// },
// {
// Name: to.Ptr("S2"),
// },
// {
// Name: to.Ptr("S3"),
// },
// {
// Name: to.Ptr("S4"),
// }},
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureAnalysisServices } = require("@azure/arm-analysisservices");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Lists eligible SKUs for Analysis Services resource provider.
*
* @summary Lists eligible SKUs for Analysis Services resource provider.
* x-ms-original-file: specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-08-01/examples/listSkusForNew.json
*/
async function listEligibleSkUsForANewServer() {
const subscriptionId = "613192d7-503f-477a-9cfe-4efc3ee2bd60";
const credential = new DefaultAzureCredential();
const client = new AzureAnalysisServices(credential, subscriptionId);
const result = await client.servers.listSkusForNew();
console.log(result);
}
listEligibleSkUsForANewServer().catch(console.error);
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.Analysis;
using Azure.ResourceManager.Analysis.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-08-01/examples/listSkusForNew.json
// this example is just showing the usage of "Servers_ListSkusForNew" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://video2.skills-academy.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "613192d7-503f-477a-9cfe-4efc3ee2bd60";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation and iterate over the result
await foreach (AnalysisResourceSku item in subscriptionResource.GetEligibleSkusAsync())
{
Console.WriteLine($"Succeeded: {item}");
}
Console.WriteLine($"Succeeded");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
応答のサンプル
{
"value": [
{
"name": "B1"
},
{
"name": "B2"
},
{
"name": "D1"
},
{
"name": "S0"
},
{
"name": "S1"
},
{
"name": "S2"
},
{
"name": "S3"
},
{
"name": "S4"
}
]
}
定義
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 |
型 |
説明 |
info
|
object
|
追加情報。
|
type
|
string
|
追加情報の種類。
|
ErrorDetail
エラーの詳細。
名前 |
型 |
説明 |
additionalInfo
|
ErrorAdditionalInfo[]
|
エラーの追加情報。
|
code
|
string
|
エラー コード。
|
details
|
ErrorDetail[]
|
エラーの詳細です。
|
httpStatusCode
|
integer
|
http 状態コード
|
message
|
string
|
エラー メッセージ。
|
subCode
|
integer
|
エラー サブ コード
|
target
|
string
|
エラーのターゲット。
|
timeStamp
|
string
|
エラーのタイムスタンプ。
|
ErrorResponse
エラー応答の形式について説明します。
ResourceSku
Analysis Services リソースの SKU 名と Azure 価格レベルを表します。
名前 |
型 |
規定値 |
説明 |
capacity
|
integer
|
1
|
読み取り専用クエリ プール内のインスタンスの数。
|
name
|
string
|
|
SKU レベルの名前。
|
tier
|
SkuTier
|
|
SKU が適用される Azure 価格レベルの名前。
|
SkuEnumerationForNewResourceResult
新しいリソースの SKU の列挙を表す オブジェクト。
SkuTier
SKU が適用される Azure 価格レベルの名前。
名前 |
型 |
説明 |
Basic
|
string
|
|
Development
|
string
|
|
Standard
|
string
|
|