이름, SKU 이름, 위치 및 계정 상태를 포함하지만 제한되지 않는 지정된 스토리지 계정의 속성을 반환합니다. ListKeys 작업은 스토리지 키를 검색하는 데 사용해야 합니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}?api-version=2024-01-01
선택적 매개 변수:
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}?api-version=2024-01-01&$expand={$expand}
URI 매개 변수
Name |
In(다음 안에) |
필수 |
형식 |
Description |
accountName
|
path |
True
|
string
minLength: 3 maxLength: 24 pattern: ^[a-z0-9]+$
|
지정된 리소스 그룹 내의 스토리지 계정 이름입니다. 스토리지 계정 이름은 길이가 3자에서 24자 사이여야 하며 숫자와 소문자만 사용해야 합니다.
|
resourceGroupName
|
path |
True
|
string
minLength: 1 maxLength: 90 pattern: ^[-\w\._\(\)]+$
|
사용자의 구독 내에 있는 리소스 그룹의 이름입니다. 이름은 대/소문자를 구분하지 않습니다.
|
subscriptionId
|
path |
True
|
string
minLength: 1
|
대상 구독의 ID입니다.
|
api-version
|
query |
True
|
string
minLength: 1
|
이 작업에 사용할 API 버전입니다.
|
$expand
|
query |
|
StorageAccountExpand
|
계정의 속성 내에서 속성을 확장하는 데 사용할 수 있습니다. 기본적으로 속성을 가져올 때 데이터는 포함되지 않습니다. 현재 geoReplicationStats 및 blobRestoreStatus만 지원합니다.
|
응답
Name |
형식 |
Description |
200 OK
|
StorageAccount
|
확인 -- 스토리지 계정에 대해 성공적으로 검색된 속성입니다.
|
보안
azure_auth
Azure Active Directory OAuth2 흐름
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
Name |
Description |
user_impersonation
|
사용자 계정 가장
|
예제
StorageAccountGetAsyncSkuConversionStatus
샘플 요청
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596?api-version=2024-01-01
/**
* Samples for StorageAccounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/
* StorageAccountGetAsyncSkuConversionStatus.json
*/
/**
* Sample code: StorageAccountGetAsyncSkuConversionStatus.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void storageAccountGetAsyncSkuConversionStatus(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getStorageAccounts().getByResourceGroupWithResponse("res9407",
"sto8596", null, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python storage_account_get_async_sku_conversion_status.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.storage_accounts.get_properties(
resource_group_name="res9407",
account_name="sto8596",
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json
func ExampleAccountsClient_GetProperties_storageAccountGetAsyncSkuConversionStatus() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().GetProperties(ctx, "res9407", "sto8596", &armstorage.AccountsClientGetPropertiesOptions{Expand: 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.Account = armstorage.Account{
// Name: to.Ptr("sto8596"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596"),
// Location: to.Ptr("eastus"),
// Kind: to.Ptr(armstorage.KindStorageV2),
// Properties: &armstorage.AccountProperties{
// AllowBlobPublicAccess: to.Ptr(false),
// MinimumTLSVersion: to.Ptr(armstorage.MinimumTLSVersionTLS12),
// StorageAccountSKUConversionStatus: &armstorage.AccountSKUConversionStatus{
// EndTime: to.Ptr("2021-09-02T02:53:39.0932539Z"),
// SKUConversionStatus: to.Ptr(armstorage.SKUConversionStatusInProgress),
// StartTime: to.Ptr("2022-09-01T02:53:39.0932539Z"),
// TargetSKUName: to.Ptr(armstorage.SKUNameStandardGRS),
// },
// },
// SKU: &armstorage.SKU{
// Name: to.Ptr(armstorage.SKUNameStandardGRS),
// Tier: to.Ptr(armstorage.SKUTierStandard),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
*
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json
*/
async function storageAccountGetAsyncSkuConversionStatus() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
const accountName = "sto8596";
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.storageAccounts.getProperties(resourceGroupName, accountName);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Storage.Models;
using Azure.ResourceManager.Storage;
// Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json
// this example is just showing the usage of "StorageAccounts_GetProperties" 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://learn.microsoft.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 ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "{subscription-id}";
string resourceGroupName = "res9407";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this StorageAccountResource
StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts();
// invoke the operation
string accountName = "sto8596";
NullableResponse<StorageAccountResource> response = await collection.GetIfExistsAsync(accountName);
StorageAccountResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine("Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
StorageAccountData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
"kind": "StorageV2",
"___location": "eastus",
"name": "sto8596",
"properties": {
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"storageAccountSkuConversionStatus": {
"skuConversionStatus": "InProgress",
"targetSkuName": "Standard_GRS",
"startTime": "2022-09-01T02:53:39.0932539Z",
"endTime": "2021-09-02T02:53:39.0932539Z"
}
},
"sku": {
"name": "Standard_GRS",
"tier": "Standard"
},
"type": "Microsoft.Storage/storageAccounts"
}
StorageAccountGetProperties
샘플 요청
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596?api-version=2024-01-01
/**
* Samples for StorageAccounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.
* json
*/
/**
* Sample code: StorageAccountGetProperties.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void storageAccountGetProperties(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getStorageAccounts().getByResourceGroupWithResponse("res9407",
"sto8596", null, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python storage_account_get_properties.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.storage_accounts.get_properties(
resource_group_name="res9407",
account_name="sto8596",
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json
func ExampleAccountsClient_GetProperties_storageAccountGetProperties() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().GetProperties(ctx, "res9407", "sto8596", &armstorage.AccountsClientGetPropertiesOptions{Expand: 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.Account = armstorage.Account{
// Name: to.Ptr("sto8596"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596"),
// Location: to.Ptr("eastus2(stage)"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// },
// Kind: to.Ptr(armstorage.KindStorage),
// Properties: &armstorage.AccountProperties{
// AccountMigrationInProgress: to.Ptr(false),
// CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T02:42:41.763Z"); return t}()),
// Encryption: &armstorage.Encryption{
// KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage),
// Services: &armstorage.EncryptionServices{
// Blob: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// File: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// },
// },
// GeoReplicationStats: &armstorage.GeoReplicationStats{
// CanFailover: to.Ptr(true),
// LastSyncTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-30T00:25:34.000Z"); return t}()),
// Status: to.Ptr(armstorage.GeoReplicationStatusLive),
// },
// IsHnsEnabled: to.Ptr(true),
// IsSKUConversionBlocked: to.Ptr(false),
// KeyCreationTime: &armstorage.KeyCreationTime{
// Key1: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-18T04:42:22.432Z"); return t}()),
// Key2: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-18T04:42:22.432Z"); return t}()),
// },
// NetworkRuleSet: &armstorage.NetworkRuleSet{
// Bypass: to.Ptr(armstorage.BypassAzureServices),
// DefaultAction: to.Ptr(armstorage.DefaultActionAllow),
// IPRules: []*armstorage.IPRule{
// },
// ResourceAccessRules: []*armstorage.ResourceAccessRule{
// {
// ResourceID: to.Ptr("/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"),
// TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
// }},
// VirtualNetworkRules: []*armstorage.VirtualNetworkRule{
// },
// },
// PrimaryEndpoints: &armstorage.Endpoints{
// Blob: to.Ptr("https://sto8596.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596.file.core.windows.net/"),
// InternetEndpoints: &armstorage.AccountInternetEndpoints{
// Blob: to.Ptr("https://sto8596-internetrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-internetrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-internetrouting.file.core.windows.net/"),
// Web: to.Ptr("https://sto8596-internetrouting.web.core.windows.net/"),
// },
// MicrosoftEndpoints: &armstorage.AccountMicrosoftEndpoints{
// Blob: to.Ptr("https://sto8596-microsoftrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-microsoftrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-microsoftrouting.file.core.windows.net/"),
// Queue: to.Ptr("https://sto8596-microsoftrouting.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596-microsoftrouting.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596-microsoftrouting.web.core.windows.net/"),
// },
// Queue: to.Ptr("https://sto8596.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596.web.core.windows.net/"),
// },
// PrimaryLocation: to.Ptr("eastus2(stage)"),
// ProvisioningState: to.Ptr(armstorage.ProvisioningStateSucceeded),
// RoutingPreference: &armstorage.RoutingPreference{
// PublishInternetEndpoints: to.Ptr(true),
// PublishMicrosoftEndpoints: to.Ptr(true),
// RoutingChoice: to.Ptr(armstorage.RoutingChoiceMicrosoftRouting),
// },
// SecondaryLocation: to.Ptr("northcentralus(stage)"),
// StatusOfPrimary: to.Ptr(armstorage.AccountStatusAvailable),
// StatusOfSecondary: to.Ptr(armstorage.AccountStatusAvailable),
// EnableHTTPSTrafficOnly: to.Ptr(false),
// },
// SKU: &armstorage.SKU{
// Name: to.Ptr(armstorage.SKUNameStandardGRS),
// Tier: to.Ptr(armstorage.SKUTierStandard),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
*
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json
*/
async function storageAccountGetProperties() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
const accountName = "sto8596";
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.storageAccounts.getProperties(resourceGroupName, accountName);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Storage.Models;
using Azure.ResourceManager.Storage;
// Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json
// this example is just showing the usage of "StorageAccounts_GetProperties" 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://learn.microsoft.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 ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "{subscription-id}";
string resourceGroupName = "res9407";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this StorageAccountResource
StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts();
// invoke the operation
string accountName = "sto8596";
NullableResponse<StorageAccountResource> response = await collection.GetIfExistsAsync(accountName);
StorageAccountResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine("Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
StorageAccountData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
"kind": "Storage",
"___location": "eastus2(stage)",
"name": "sto8596",
"properties": {
"keyCreationTime": {
"key1": "2021-03-18T04:42:22.4322836Z",
"key2": "2021-03-18T04:42:22.4322836Z"
},
"geoReplicationStats": {
"status": "Live",
"lastSyncTime": "2018-10-30T00:25:34Z",
"canFailover": true
},
"isHnsEnabled": true,
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"virtualNetworkRules": [],
"resourceAccessRules": [
{
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
}
]
},
"primaryEndpoints": {
"web": "https://sto8596.web.core.windows.net/",
"dfs": "https://sto8596.dfs.core.windows.net/",
"blob": "https://sto8596.blob.core.windows.net/",
"file": "https://sto8596.file.core.windows.net/",
"queue": "https://sto8596.queue.core.windows.net/",
"table": "https://sto8596.table.core.windows.net/",
"microsoftEndpoints": {
"web": "https://sto8596-microsoftrouting.web.core.windows.net/",
"dfs": "https://sto8596-microsoftrouting.dfs.core.windows.net/",
"blob": "https://sto8596-microsoftrouting.blob.core.windows.net/",
"file": "https://sto8596-microsoftrouting.file.core.windows.net/",
"queue": "https://sto8596-microsoftrouting.queue.core.windows.net/",
"table": "https://sto8596-microsoftrouting.table.core.windows.net/"
},
"internetEndpoints": {
"web": "https://sto8596-internetrouting.web.core.windows.net/",
"dfs": "https://sto8596-internetrouting.dfs.core.windows.net/",
"blob": "https://sto8596-internetrouting.blob.core.windows.net/",
"file": "https://sto8596-internetrouting.file.core.windows.net/"
}
},
"primaryLocation": "eastus2(stage)",
"provisioningState": "Succeeded",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
"publishMicrosoftEndpoints": true,
"publishInternetEndpoints": true
},
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
}
},
"keySource": "Microsoft.Storage"
},
"secondaryLocation": "northcentralus(stage)",
"statusOfPrimary": "available",
"statusOfSecondary": "available",
"supportsHttpsTrafficOnly": false,
"isSkuConversionBlocked": false,
"accountMigrationInProgress": false
},
"sku": {
"name": "Standard_GRS",
"tier": "Standard"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.Storage/storageAccounts"
}
StorageAccountGetPropertiesCMKEnabled
샘플 요청
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596?api-version=2024-01-01
/**
* Samples for StorageAccounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/
* StorageAccountGetPropertiesCMKEnabled.json
*/
/**
* Sample code: StorageAccountGetPropertiesCMKEnabled.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void storageAccountGetPropertiesCMKEnabled(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getStorageAccounts().getByResourceGroupWithResponse("res9407",
"sto8596", null, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python storage_account_get_properties_cmk_enabled.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.storage_accounts.get_properties(
resource_group_name="res9407",
account_name="sto8596",
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json
func ExampleAccountsClient_GetProperties_storageAccountGetPropertiesCmkEnabled() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().GetProperties(ctx, "res9407", "sto8596", &armstorage.AccountsClientGetPropertiesOptions{Expand: 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.Account = armstorage.Account{
// Name: to.Ptr("sto8596"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596"),
// Location: to.Ptr("eastus2(stage)"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// },
// Identity: &armstorage.Identity{
// Type: to.Ptr(armstorage.IdentityTypeSystemAssigned),
// PrincipalID: to.Ptr("911871cc-ffd1-4fc4-ac11-7a316433ea66"),
// TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
// },
// Kind: to.Ptr(armstorage.KindStorage),
// Properties: &armstorage.AccountProperties{
// CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T02:42:41.763Z"); return t}()),
// Encryption: &armstorage.Encryption{
// KeySource: to.Ptr(armstorage.KeySourceMicrosoftKeyvault),
// KeyVaultProperties: &armstorage.KeyVaultProperties{
// CurrentVersionedKeyIdentifier: to.Ptr("https://myvault8569.vault.azure.net/keys/wrappingKey/0682afdd9c104f4285df20107e956cad"),
// KeyName: to.Ptr("wrappingKey"),
// KeyVaultURI: to.Ptr("https://myvault8569.vault.azure.net"),
// KeyVersion: to.Ptr(""),
// LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-13T20:36:23.702Z"); return t}()),
// },
// Services: &armstorage.EncryptionServices{
// Blob: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// File: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// },
// },
// GeoReplicationStats: &armstorage.GeoReplicationStats{
// CanFailover: to.Ptr(true),
// LastSyncTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-30T00:25:34.000Z"); return t}()),
// Status: to.Ptr(armstorage.GeoReplicationStatusLive),
// },
// IsHnsEnabled: to.Ptr(true),
// NetworkRuleSet: &armstorage.NetworkRuleSet{
// Bypass: to.Ptr(armstorage.BypassAzureServices),
// DefaultAction: to.Ptr(armstorage.DefaultActionAllow),
// IPRules: []*armstorage.IPRule{
// },
// ResourceAccessRules: []*armstorage.ResourceAccessRule{
// },
// VirtualNetworkRules: []*armstorage.VirtualNetworkRule{
// },
// },
// PrimaryEndpoints: &armstorage.Endpoints{
// Blob: to.Ptr("https://sto8596.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596.file.core.windows.net/"),
// InternetEndpoints: &armstorage.AccountInternetEndpoints{
// Blob: to.Ptr("https://sto8596-internetrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-internetrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-internetrouting.file.core.windows.net/"),
// Web: to.Ptr("https://sto8596-internetrouting.web.core.windows.net/"),
// },
// MicrosoftEndpoints: &armstorage.AccountMicrosoftEndpoints{
// Blob: to.Ptr("https://sto8596-microsoftrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-microsoftrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-microsoftrouting.file.core.windows.net/"),
// Queue: to.Ptr("https://sto8596-microsoftrouting.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596-microsoftrouting.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596-microsoftrouting.web.core.windows.net/"),
// },
// Queue: to.Ptr("https://sto8596.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596.web.core.windows.net/"),
// },
// PrimaryLocation: to.Ptr("eastus2(stage)"),
// ProvisioningState: to.Ptr(armstorage.ProvisioningStateSucceeded),
// RoutingPreference: &armstorage.RoutingPreference{
// PublishInternetEndpoints: to.Ptr(true),
// PublishMicrosoftEndpoints: to.Ptr(true),
// RoutingChoice: to.Ptr(armstorage.RoutingChoiceMicrosoftRouting),
// },
// SecondaryLocation: to.Ptr("northcentralus(stage)"),
// StatusOfPrimary: to.Ptr(armstorage.AccountStatusAvailable),
// StatusOfSecondary: to.Ptr(armstorage.AccountStatusAvailable),
// EnableHTTPSTrafficOnly: to.Ptr(false),
// },
// SKU: &armstorage.SKU{
// Name: to.Ptr(armstorage.SKUNameStandardGRS),
// Tier: to.Ptr(armstorage.SKUTierStandard),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
*
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json
*/
async function storageAccountGetPropertiesCmkEnabled() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
const accountName = "sto8596";
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.storageAccounts.getProperties(resourceGroupName, accountName);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Storage.Models;
using Azure.ResourceManager.Storage;
// Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json
// this example is just showing the usage of "StorageAccounts_GetProperties" 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://learn.microsoft.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 ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "{subscription-id}";
string resourceGroupName = "res9407";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this StorageAccountResource
StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts();
// invoke the operation
string accountName = "sto8596";
NullableResponse<StorageAccountResource> response = await collection.GetIfExistsAsync(accountName);
StorageAccountResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine("Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
StorageAccountData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
"identity": {
"principalId": "911871cc-ffd1-4fc4-ac11-7a316433ea66",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
},
"kind": "Storage",
"___location": "eastus2(stage)",
"name": "sto8596",
"properties": {
"geoReplicationStats": {
"status": "Live",
"lastSyncTime": "2018-10-30T00:25:34Z",
"canFailover": true
},
"isHnsEnabled": true,
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"virtualNetworkRules": [],
"resourceAccessRules": []
},
"primaryEndpoints": {
"web": "https://sto8596.web.core.windows.net/",
"dfs": "https://sto8596.dfs.core.windows.net/",
"blob": "https://sto8596.blob.core.windows.net/",
"file": "https://sto8596.file.core.windows.net/",
"queue": "https://sto8596.queue.core.windows.net/",
"table": "https://sto8596.table.core.windows.net/",
"microsoftEndpoints": {
"web": "https://sto8596-microsoftrouting.web.core.windows.net/",
"dfs": "https://sto8596-microsoftrouting.dfs.core.windows.net/",
"blob": "https://sto8596-microsoftrouting.blob.core.windows.net/",
"file": "https://sto8596-microsoftrouting.file.core.windows.net/",
"queue": "https://sto8596-microsoftrouting.queue.core.windows.net/",
"table": "https://sto8596-microsoftrouting.table.core.windows.net/"
},
"internetEndpoints": {
"web": "https://sto8596-internetrouting.web.core.windows.net/",
"dfs": "https://sto8596-internetrouting.dfs.core.windows.net/",
"blob": "https://sto8596-internetrouting.blob.core.windows.net/",
"file": "https://sto8596-internetrouting.file.core.windows.net/"
}
},
"primaryLocation": "eastus2(stage)",
"provisioningState": "Succeeded",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
"publishMicrosoftEndpoints": true,
"publishInternetEndpoints": true
},
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
}
},
"keySource": "Microsoft.Keyvault",
"keyvaultproperties": {
"keyvaulturi": "https://myvault8569.vault.azure.net",
"keyname": "wrappingKey",
"keyversion": "",
"currentVersionedKeyIdentifier": "https://myvault8569.vault.azure.net/keys/wrappingKey/0682afdd9c104f4285df20107e956cad",
"lastKeyRotationTimestamp": "2019-12-13T20:36:23.7023290Z"
}
},
"secondaryLocation": "northcentralus(stage)",
"statusOfPrimary": "available",
"statusOfSecondary": "available",
"supportsHttpsTrafficOnly": false
},
"sku": {
"name": "Standard_GRS",
"tier": "Standard"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.Storage/storageAccounts"
}
StorageAccountGetPropertiesCMKVersionExpirationTime
샘플 요청
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596?api-version=2024-01-01
/**
* Samples for StorageAccounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/
* StorageAccountGetPropertiesCMKVersionExpirationTime.json
*/
/**
* Sample code: StorageAccountGetPropertiesCMKVersionExpirationTime.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void
storageAccountGetPropertiesCMKVersionExpirationTime(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getStorageAccounts().getByResourceGroupWithResponse("res9407",
"sto8596", null, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python storage_account_get_properties_cmk_version_expiration_time.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.storage_accounts.get_properties(
resource_group_name="res9407",
account_name="sto8596",
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json
func ExampleAccountsClient_GetProperties_storageAccountGetPropertiesCmkVersionExpirationTime() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().GetProperties(ctx, "res9407", "sto8596", &armstorage.AccountsClientGetPropertiesOptions{Expand: 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.Account = armstorage.Account{
// Name: to.Ptr("sto8596"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596"),
// Location: to.Ptr("eastus2(stage)"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// },
// Identity: &armstorage.Identity{
// Type: to.Ptr(armstorage.IdentityTypeSystemAssigned),
// PrincipalID: to.Ptr("911871cc-ffd1-4fc4-ac11-7a316433ea66"),
// TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
// },
// Kind: to.Ptr(armstorage.KindStorage),
// Properties: &armstorage.AccountProperties{
// CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T02:42:41.763Z"); return t}()),
// Encryption: &armstorage.Encryption{
// KeySource: to.Ptr(armstorage.KeySourceMicrosoftKeyvault),
// KeyVaultProperties: &armstorage.KeyVaultProperties{
// CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-13T20:36:23.702Z"); return t}()),
// CurrentVersionedKeyIdentifier: to.Ptr("https://myvault8569.vault.azure.net/keys/wrappingKey/0682afdd9c104f4285df20107e956cad"),
// KeyName: to.Ptr("wrappingKey"),
// KeyVaultURI: to.Ptr("https://myvault8569.vault.azure.net"),
// KeyVersion: to.Ptr(""),
// LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-13T20:36:23.702Z"); return t}()),
// },
// Services: &armstorage.EncryptionServices{
// Blob: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// File: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// },
// },
// GeoReplicationStats: &armstorage.GeoReplicationStats{
// CanFailover: to.Ptr(true),
// LastSyncTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-30T00:25:34.000Z"); return t}()),
// Status: to.Ptr(armstorage.GeoReplicationStatusLive),
// },
// IsHnsEnabled: to.Ptr(true),
// NetworkRuleSet: &armstorage.NetworkRuleSet{
// Bypass: to.Ptr(armstorage.BypassAzureServices),
// DefaultAction: to.Ptr(armstorage.DefaultActionAllow),
// IPRules: []*armstorage.IPRule{
// },
// ResourceAccessRules: []*armstorage.ResourceAccessRule{
// },
// VirtualNetworkRules: []*armstorage.VirtualNetworkRule{
// },
// },
// PrimaryEndpoints: &armstorage.Endpoints{
// Blob: to.Ptr("https://sto8596.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596.file.core.windows.net/"),
// InternetEndpoints: &armstorage.AccountInternetEndpoints{
// Blob: to.Ptr("https://sto8596-internetrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-internetrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-internetrouting.file.core.windows.net/"),
// Web: to.Ptr("https://sto8596-internetrouting.web.core.windows.net/"),
// },
// MicrosoftEndpoints: &armstorage.AccountMicrosoftEndpoints{
// Blob: to.Ptr("https://sto8596-microsoftrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-microsoftrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-microsoftrouting.file.core.windows.net/"),
// Queue: to.Ptr("https://sto8596-microsoftrouting.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596-microsoftrouting.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596-microsoftrouting.web.core.windows.net/"),
// },
// Queue: to.Ptr("https://sto8596.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596.web.core.windows.net/"),
// },
// PrimaryLocation: to.Ptr("eastus2(stage)"),
// ProvisioningState: to.Ptr(armstorage.ProvisioningStateSucceeded),
// RoutingPreference: &armstorage.RoutingPreference{
// PublishInternetEndpoints: to.Ptr(true),
// PublishMicrosoftEndpoints: to.Ptr(true),
// RoutingChoice: to.Ptr(armstorage.RoutingChoiceMicrosoftRouting),
// },
// SecondaryLocation: to.Ptr("northcentralus(stage)"),
// StatusOfPrimary: to.Ptr(armstorage.AccountStatusAvailable),
// StatusOfSecondary: to.Ptr(armstorage.AccountStatusAvailable),
// EnableHTTPSTrafficOnly: to.Ptr(false),
// },
// SKU: &armstorage.SKU{
// Name: to.Ptr(armstorage.SKUNameStandardGRS),
// Tier: to.Ptr(armstorage.SKUTierStandard),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
*
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json
*/
async function storageAccountGetPropertiesCmkVersionExpirationTime() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
const accountName = "sto8596";
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.storageAccounts.getProperties(resourceGroupName, accountName);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Storage.Models;
using Azure.ResourceManager.Storage;
// Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json
// this example is just showing the usage of "StorageAccounts_GetProperties" 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://learn.microsoft.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 ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "{subscription-id}";
string resourceGroupName = "res9407";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this StorageAccountResource
StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts();
// invoke the operation
string accountName = "sto8596";
NullableResponse<StorageAccountResource> response = await collection.GetIfExistsAsync(accountName);
StorageAccountResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine("Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
StorageAccountData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
"identity": {
"principalId": "911871cc-ffd1-4fc4-ac11-7a316433ea66",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
},
"kind": "Storage",
"___location": "eastus2(stage)",
"name": "sto8596",
"properties": {
"geoReplicationStats": {
"status": "Live",
"lastSyncTime": "2018-10-30T00:25:34Z",
"canFailover": true
},
"isHnsEnabled": true,
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"virtualNetworkRules": [],
"resourceAccessRules": []
},
"primaryEndpoints": {
"web": "https://sto8596.web.core.windows.net/",
"dfs": "https://sto8596.dfs.core.windows.net/",
"blob": "https://sto8596.blob.core.windows.net/",
"file": "https://sto8596.file.core.windows.net/",
"queue": "https://sto8596.queue.core.windows.net/",
"table": "https://sto8596.table.core.windows.net/",
"microsoftEndpoints": {
"web": "https://sto8596-microsoftrouting.web.core.windows.net/",
"dfs": "https://sto8596-microsoftrouting.dfs.core.windows.net/",
"blob": "https://sto8596-microsoftrouting.blob.core.windows.net/",
"file": "https://sto8596-microsoftrouting.file.core.windows.net/",
"queue": "https://sto8596-microsoftrouting.queue.core.windows.net/",
"table": "https://sto8596-microsoftrouting.table.core.windows.net/"
},
"internetEndpoints": {
"web": "https://sto8596-internetrouting.web.core.windows.net/",
"dfs": "https://sto8596-internetrouting.dfs.core.windows.net/",
"blob": "https://sto8596-internetrouting.blob.core.windows.net/",
"file": "https://sto8596-internetrouting.file.core.windows.net/"
}
},
"primaryLocation": "eastus2(stage)",
"provisioningState": "Succeeded",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
"publishMicrosoftEndpoints": true,
"publishInternetEndpoints": true
},
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
}
},
"keySource": "Microsoft.Keyvault",
"keyvaultproperties": {
"keyvaulturi": "https://myvault8569.vault.azure.net",
"keyname": "wrappingKey",
"keyversion": "",
"currentVersionedKeyIdentifier": "https://myvault8569.vault.azure.net/keys/wrappingKey/0682afdd9c104f4285df20107e956cad",
"lastKeyRotationTimestamp": "2019-12-13T20:36:23.7023290Z",
"currentVersionedKeyExpirationTimestamp": "2019-12-13T20:36:23.7023290Z"
}
},
"secondaryLocation": "northcentralus(stage)",
"statusOfPrimary": "available",
"statusOfSecondary": "available",
"supportsHttpsTrafficOnly": false
},
"sku": {
"name": "Standard_GRS",
"tier": "Standard"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.Storage/storageAccounts"
}
StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse
샘플 요청
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596?api-version=2024-01-01&$expand=geoReplicationStats
import com.azure.resourcemanager.storage.models.StorageAccountExpand;
/**
* Samples for StorageAccounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/
* StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json
*/
/**
* Sample code: StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void storageAccountGetPropertiesGeoReplicationStatscanFailoverFalse(
com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getStorageAccounts().getByResourceGroupWithResponse("res9407",
"sto8596", StorageAccountExpand.GEO_REPLICATION_STATS, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python storage_account_get_properties_geo_replication_statscan_failover_false.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.storage_accounts.get_properties(
resource_group_name="res9407",
account_name="sto8596",
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json
func ExampleAccountsClient_GetProperties_storageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().GetProperties(ctx, "res9407", "sto8596", &armstorage.AccountsClientGetPropertiesOptions{Expand: to.Ptr(armstorage.StorageAccountExpandGeoReplicationStats)})
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.Account = armstorage.Account{
// Name: to.Ptr("sto8596"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596"),
// Location: to.Ptr("eastus2(stage)"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// },
// Kind: to.Ptr(armstorage.KindStorage),
// Properties: &armstorage.AccountProperties{
// AccountMigrationInProgress: to.Ptr(false),
// CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T02:42:41.763Z"); return t}()),
// Encryption: &armstorage.Encryption{
// KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage),
// Services: &armstorage.EncryptionServices{
// Blob: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// File: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// },
// },
// GeoReplicationStats: &armstorage.GeoReplicationStats{
// CanFailover: to.Ptr(false),
// CanPlannedFailover: to.Ptr(false),
// LastSyncTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-30T00:25:34.000Z"); return t}()),
// PostFailoverRedundancy: to.Ptr(armstorage.PostFailoverRedundancyStandardLRS),
// PostPlannedFailoverRedundancy: to.Ptr(armstorage.PostPlannedFailoverRedundancyStandardGRS),
// Status: to.Ptr(armstorage.GeoReplicationStatusLive),
// },
// IsHnsEnabled: to.Ptr(true),
// IsSKUConversionBlocked: to.Ptr(false),
// KeyCreationTime: &armstorage.KeyCreationTime{
// Key1: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-18T04:42:22.432Z"); return t}()),
// Key2: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-18T04:42:22.432Z"); return t}()),
// },
// NetworkRuleSet: &armstorage.NetworkRuleSet{
// Bypass: to.Ptr(armstorage.BypassAzureServices),
// DefaultAction: to.Ptr(armstorage.DefaultActionAllow),
// IPRules: []*armstorage.IPRule{
// },
// ResourceAccessRules: []*armstorage.ResourceAccessRule{
// {
// ResourceID: to.Ptr("/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"),
// TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
// }},
// VirtualNetworkRules: []*armstorage.VirtualNetworkRule{
// },
// },
// PrimaryEndpoints: &armstorage.Endpoints{
// Blob: to.Ptr("https://sto8596.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596.file.core.windows.net/"),
// InternetEndpoints: &armstorage.AccountInternetEndpoints{
// Blob: to.Ptr("https://sto8596-internetrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-internetrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-internetrouting.file.core.windows.net/"),
// Web: to.Ptr("https://sto8596-internetrouting.web.core.windows.net/"),
// },
// MicrosoftEndpoints: &armstorage.AccountMicrosoftEndpoints{
// Blob: to.Ptr("https://sto8596-microsoftrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-microsoftrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-microsoftrouting.file.core.windows.net/"),
// Queue: to.Ptr("https://sto8596-microsoftrouting.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596-microsoftrouting.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596-microsoftrouting.web.core.windows.net/"),
// },
// Queue: to.Ptr("https://sto8596.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596.web.core.windows.net/"),
// },
// PrimaryLocation: to.Ptr("eastus2(stage)"),
// ProvisioningState: to.Ptr(armstorage.ProvisioningStateSucceeded),
// RoutingPreference: &armstorage.RoutingPreference{
// PublishInternetEndpoints: to.Ptr(true),
// PublishMicrosoftEndpoints: to.Ptr(true),
// RoutingChoice: to.Ptr(armstorage.RoutingChoiceMicrosoftRouting),
// },
// SecondaryLocation: to.Ptr("northcentralus(stage)"),
// StatusOfPrimary: to.Ptr(armstorage.AccountStatusAvailable),
// StatusOfSecondary: to.Ptr(armstorage.AccountStatusAvailable),
// EnableHTTPSTrafficOnly: to.Ptr(false),
// },
// SKU: &armstorage.SKU{
// Name: to.Ptr(armstorage.SKUNameStandardGRS),
// Tier: to.Ptr(armstorage.SKUTierStandard),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
*
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json
*/
async function storageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
const accountName = "sto8596";
const expand = "geoReplicationStats";
const options = { expand };
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.storageAccounts.getProperties(
resourceGroupName,
accountName,
options,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Storage.Models;
using Azure.ResourceManager.Storage;
// Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json
// this example is just showing the usage of "StorageAccounts_GetProperties" 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://learn.microsoft.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 ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "{subscription-id}";
string resourceGroupName = "res9407";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this StorageAccountResource
StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts();
// invoke the operation
string accountName = "sto8596";
StorageAccountExpand? expand = StorageAccountExpand.GeoReplicationStats;
NullableResponse<StorageAccountResource> response = await collection.GetIfExistsAsync(accountName, expand: expand);
StorageAccountResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine("Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
StorageAccountData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
"kind": "Storage",
"___location": "eastus2(stage)",
"name": "sto8596",
"properties": {
"keyCreationTime": {
"key1": "2021-03-18T04:42:22.4322836Z",
"key2": "2021-03-18T04:42:22.4322836Z"
},
"geoReplicationStats": {
"status": "Live",
"lastSyncTime": "2018-10-30T00:25:34Z",
"canFailover": false,
"canPlannedFailover": false,
"postFailoverRedundancy": "Standard_LRS",
"postPlannedFailoverRedundancy": "Standard_GRS"
},
"isHnsEnabled": true,
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"virtualNetworkRules": [],
"resourceAccessRules": [
{
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
}
]
},
"primaryEndpoints": {
"web": "https://sto8596.web.core.windows.net/",
"dfs": "https://sto8596.dfs.core.windows.net/",
"blob": "https://sto8596.blob.core.windows.net/",
"file": "https://sto8596.file.core.windows.net/",
"queue": "https://sto8596.queue.core.windows.net/",
"table": "https://sto8596.table.core.windows.net/",
"microsoftEndpoints": {
"web": "https://sto8596-microsoftrouting.web.core.windows.net/",
"dfs": "https://sto8596-microsoftrouting.dfs.core.windows.net/",
"blob": "https://sto8596-microsoftrouting.blob.core.windows.net/",
"file": "https://sto8596-microsoftrouting.file.core.windows.net/",
"queue": "https://sto8596-microsoftrouting.queue.core.windows.net/",
"table": "https://sto8596-microsoftrouting.table.core.windows.net/"
},
"internetEndpoints": {
"web": "https://sto8596-internetrouting.web.core.windows.net/",
"dfs": "https://sto8596-internetrouting.dfs.core.windows.net/",
"blob": "https://sto8596-internetrouting.blob.core.windows.net/",
"file": "https://sto8596-internetrouting.file.core.windows.net/"
}
},
"primaryLocation": "eastus2(stage)",
"provisioningState": "Succeeded",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
"publishMicrosoftEndpoints": true,
"publishInternetEndpoints": true
},
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
}
},
"keySource": "Microsoft.Storage"
},
"secondaryLocation": "northcentralus(stage)",
"statusOfPrimary": "available",
"statusOfSecondary": "available",
"supportsHttpsTrafficOnly": false,
"isSkuConversionBlocked": false,
"accountMigrationInProgress": false
},
"sku": {
"name": "Standard_GRS",
"tier": "Standard"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.Storage/storageAccounts"
}
StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue
샘플 요청
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596?api-version=2024-01-01&$expand=geoReplicationStats
import com.azure.resourcemanager.storage.models.StorageAccountExpand;
/**
* Samples for StorageAccounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/
* StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json
*/
/**
* Sample code: StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void storageAccountGetPropertiesGeoReplicationStatscanFailoverTrue(
com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getStorageAccounts().getByResourceGroupWithResponse("res9407",
"sto8596", StorageAccountExpand.GEO_REPLICATION_STATS, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python storage_account_get_properties_geo_replication_statscan_failover_true.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.storage_accounts.get_properties(
resource_group_name="res9407",
account_name="sto8596",
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json
func ExampleAccountsClient_GetProperties_storageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().GetProperties(ctx, "res9407", "sto8596", &armstorage.AccountsClientGetPropertiesOptions{Expand: to.Ptr(armstorage.StorageAccountExpandGeoReplicationStats)})
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.Account = armstorage.Account{
// Name: to.Ptr("sto8596"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596"),
// Location: to.Ptr("eastus2(stage)"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// },
// Kind: to.Ptr(armstorage.KindStorage),
// Properties: &armstorage.AccountProperties{
// AccountMigrationInProgress: to.Ptr(false),
// CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T02:42:41.763Z"); return t}()),
// Encryption: &armstorage.Encryption{
// KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage),
// Services: &armstorage.EncryptionServices{
// Blob: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// File: &armstorage.EncryptionService{
// Enabled: to.Ptr(true),
// KeyType: to.Ptr(armstorage.KeyTypeAccount),
// LastEnabledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-11T20:49:31.703Z"); return t}()),
// },
// },
// },
// GeoReplicationStats: &armstorage.GeoReplicationStats{
// CanFailover: to.Ptr(true),
// CanPlannedFailover: to.Ptr(true),
// LastSyncTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-30T00:25:34.000Z"); return t}()),
// PostFailoverRedundancy: to.Ptr(armstorage.PostFailoverRedundancyStandardLRS),
// PostPlannedFailoverRedundancy: to.Ptr(armstorage.PostPlannedFailoverRedundancyStandardGRS),
// Status: to.Ptr(armstorage.GeoReplicationStatusLive),
// },
// IsHnsEnabled: to.Ptr(true),
// IsSKUConversionBlocked: to.Ptr(false),
// KeyCreationTime: &armstorage.KeyCreationTime{
// Key1: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-18T04:42:22.432Z"); return t}()),
// Key2: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-18T04:42:22.432Z"); return t}()),
// },
// NetworkRuleSet: &armstorage.NetworkRuleSet{
// Bypass: to.Ptr(armstorage.BypassAzureServices),
// DefaultAction: to.Ptr(armstorage.DefaultActionAllow),
// IPRules: []*armstorage.IPRule{
// },
// ResourceAccessRules: []*armstorage.ResourceAccessRule{
// {
// ResourceID: to.Ptr("/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"),
// TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
// }},
// VirtualNetworkRules: []*armstorage.VirtualNetworkRule{
// },
// },
// PrimaryEndpoints: &armstorage.Endpoints{
// Blob: to.Ptr("https://sto8596.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596.file.core.windows.net/"),
// InternetEndpoints: &armstorage.AccountInternetEndpoints{
// Blob: to.Ptr("https://sto8596-internetrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-internetrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-internetrouting.file.core.windows.net/"),
// Web: to.Ptr("https://sto8596-internetrouting.web.core.windows.net/"),
// },
// MicrosoftEndpoints: &armstorage.AccountMicrosoftEndpoints{
// Blob: to.Ptr("https://sto8596-microsoftrouting.blob.core.windows.net/"),
// Dfs: to.Ptr("https://sto8596-microsoftrouting.dfs.core.windows.net/"),
// File: to.Ptr("https://sto8596-microsoftrouting.file.core.windows.net/"),
// Queue: to.Ptr("https://sto8596-microsoftrouting.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596-microsoftrouting.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596-microsoftrouting.web.core.windows.net/"),
// },
// Queue: to.Ptr("https://sto8596.queue.core.windows.net/"),
// Table: to.Ptr("https://sto8596.table.core.windows.net/"),
// Web: to.Ptr("https://sto8596.web.core.windows.net/"),
// },
// PrimaryLocation: to.Ptr("eastus2(stage)"),
// ProvisioningState: to.Ptr(armstorage.ProvisioningStateSucceeded),
// RoutingPreference: &armstorage.RoutingPreference{
// PublishInternetEndpoints: to.Ptr(true),
// PublishMicrosoftEndpoints: to.Ptr(true),
// RoutingChoice: to.Ptr(armstorage.RoutingChoiceMicrosoftRouting),
// },
// SecondaryLocation: to.Ptr("northcentralus(stage)"),
// StatusOfPrimary: to.Ptr(armstorage.AccountStatusAvailable),
// StatusOfSecondary: to.Ptr(armstorage.AccountStatusAvailable),
// EnableHTTPSTrafficOnly: to.Ptr(false),
// },
// SKU: &armstorage.SKU{
// Name: to.Ptr(armstorage.SKUNameStandardGRS),
// Tier: to.Ptr(armstorage.SKUTierStandard),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
*
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, ___location, and account status. The ListKeys operation should be used to retrieve storage keys.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json
*/
async function storageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
const accountName = "sto8596";
const expand = "geoReplicationStats";
const options = { expand };
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.storageAccounts.getProperties(
resourceGroupName,
accountName,
options,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Storage.Models;
using Azure.ResourceManager.Storage;
// Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json
// this example is just showing the usage of "StorageAccounts_GetProperties" 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://learn.microsoft.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 ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "{subscription-id}";
string resourceGroupName = "res9407";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this StorageAccountResource
StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts();
// invoke the operation
string accountName = "sto8596";
StorageAccountExpand? expand = StorageAccountExpand.GeoReplicationStats;
NullableResponse<StorageAccountResource> response = await collection.GetIfExistsAsync(accountName, expand: expand);
StorageAccountResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine("Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
StorageAccountData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
"kind": "Storage",
"___location": "eastus2(stage)",
"name": "sto8596",
"properties": {
"keyCreationTime": {
"key1": "2021-03-18T04:42:22.4322836Z",
"key2": "2021-03-18T04:42:22.4322836Z"
},
"geoReplicationStats": {
"status": "Live",
"lastSyncTime": "2018-10-30T00:25:34Z",
"canFailover": true,
"canPlannedFailover": true,
"postFailoverRedundancy": "Standard_LRS",
"postPlannedFailoverRedundancy": "Standard_GRS"
},
"isHnsEnabled": true,
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"virtualNetworkRules": [],
"resourceAccessRules": [
{
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
}
]
},
"primaryEndpoints": {
"web": "https://sto8596.web.core.windows.net/",
"dfs": "https://sto8596.dfs.core.windows.net/",
"blob": "https://sto8596.blob.core.windows.net/",
"file": "https://sto8596.file.core.windows.net/",
"queue": "https://sto8596.queue.core.windows.net/",
"table": "https://sto8596.table.core.windows.net/",
"microsoftEndpoints": {
"web": "https://sto8596-microsoftrouting.web.core.windows.net/",
"dfs": "https://sto8596-microsoftrouting.dfs.core.windows.net/",
"blob": "https://sto8596-microsoftrouting.blob.core.windows.net/",
"file": "https://sto8596-microsoftrouting.file.core.windows.net/",
"queue": "https://sto8596-microsoftrouting.queue.core.windows.net/",
"table": "https://sto8596-microsoftrouting.table.core.windows.net/"
},
"internetEndpoints": {
"web": "https://sto8596-internetrouting.web.core.windows.net/",
"dfs": "https://sto8596-internetrouting.dfs.core.windows.net/",
"blob": "https://sto8596-internetrouting.blob.core.windows.net/",
"file": "https://sto8596-internetrouting.file.core.windows.net/"
}
},
"primaryLocation": "eastus2(stage)",
"provisioningState": "Succeeded",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
"publishMicrosoftEndpoints": true,
"publishInternetEndpoints": true
},
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
}
},
"keySource": "Microsoft.Storage"
},
"secondaryLocation": "northcentralus(stage)",
"statusOfPrimary": "available",
"statusOfSecondary": "available",
"supportsHttpsTrafficOnly": false,
"isSkuConversionBlocked": false,
"accountMigrationInProgress": false
},
"sku": {
"name": "Standard_GRS",
"tier": "Standard"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.Storage/storageAccounts"
}
정의
Name |
Description |
AccessTier
|
종류 = BlobStorage인 스토리지 계정에 필요합니다. 액세스 계층은 청구에 사용됩니다. '프리미엄' 액세스 계층은 프리미엄 블록 Blob 스토리지 계정 유형의 기본값이며 프리미엄 블록 Blob 스토리지 계정 유형에 대해 변경할 수 없습니다.
|
AccountImmutabilityPolicyProperties
|
이는 계정 수준 불변성 정책 속성을 정의합니다.
|
AccountImmutabilityPolicyState
|
ImmutabilityPolicy 상태는 정책의 모드를 정의합니다. 비활성화된 상태는 정책을 사용하지 않도록 설정하고, 잠금 해제된 상태는 불변성 보존 시간을 늘리거나 줄일 수 있으며 allowProtectedAppendWrites 속성을 토글할 수도 있습니다. 잠긴 상태는 불변성 보존 시간만 늘릴 수 있습니다. 정책은 사용 안 함 또는 잠금 해제 상태에서만 만들 수 있으며 두 상태 간에 전환할 수 있습니다. 잠금 해제 상태의 정책만 되돌릴 수 없는 잠긴 상태로 전환할 수 있습니다.
|
AccountStatus
|
스토리지 계정의 기본 위치를 사용할 수 있는지 여부를 나타내는 상태를 가져옵니다.
|
AccountType
|
Azure Storage에 대한 Active Directory 계정 유형을 지정합니다.
|
Action
|
가상 네트워크 규칙의 동작입니다.
|
ActiveDirectoryProperties
|
AD(Active Directory)의 설정 속성입니다.
|
AllowedCopyScope
|
AAD 테넌트 내 또는 프라이빗 링크를 사용하여 스토리지 계정 간 복사를 동일한 VNet으로 제한합니다.
|
AzureFilesIdentityBasedAuthentication
|
Azure Files ID 기반 인증에 대한 설정입니다.
|
BlobRestoreParameters
|
Blob 복원 매개 변수
|
BlobRestoreProgressStatus
|
Blob 복원 진행률의 상태입니다. 가능한 값은 다음과 같습니다. - InProgress: Blob 복원이 진행 중임을 나타냅니다. - 완료: Blob 복원이 성공적으로 완료되었음을 나타냅니다. - 실패: Blob 복원이 실패했음을 나타냅니다.
|
BlobRestoreRange
|
Blob 범위
|
BlobRestoreStatus
|
Blob 복원 상태입니다.
|
Bypass
|
트래픽이 로깅/메트릭/AzureServices에 대해 무시되는지 여부를 지정합니다. 가능한 값은 로깅의 조합입니다. |메트릭|AzureServices(예: "로깅, 메트릭") 또는 None을 사용하여 해당 트래픽을 무시하지 않습니다.
|
CustomDomain
|
이 스토리지 계정에 할당된 사용자 지정 도메인입니다. 업데이트를 통해 설정할 수 있습니다.
|
DefaultAction
|
다른 규칙이 일치하지 않을 때 허용 또는 거부의 기본 동작을 지정합니다.
|
DefaultSharePermission
|
RBAC 역할이 할당되지 않은 경우 Kerberos 인증을 사용하는 사용자의 기본 공유 권한입니다.
|
DirectoryServiceOptions
|
사용된 디렉터리 서비스를 나타냅니다. 이 열거형은 나중에 확장될 수 있습니다.
|
DnsEndpointType
|
엔드포인트 유형을 지정할 수 있습니다. 이를 AzureDNSZone으로 설정하여 단일 구독에서 많은 수의 계정을 만듭니다. 이 계정은 Azure DNS 영역에 계정을 만들고 엔드포인트 URL에는 영숫자 DNS 영역 식별자가 있습니다.
|
Encryption
|
스토리지 계정의 암호화 설정입니다.
|
EncryptionIdentity
|
스토리지 계정에 대한 암호화 ID입니다.
|
EncryptionService
|
서버 쪽 암호화를 사용할 수 있는 서비스입니다.
|
EncryptionServices
|
암호화를 지원하는 서비스 목록입니다.
|
Endpoints
|
공용 Blob, 큐, 테이블, 웹 또는 dfs 개체의 검색을 수행하는 데 사용되는 URI입니다.
|
ExpirationAction
|
SAS 만료 작업은 sasPolicy.sasExpirationPeriod를 위반할 때 수행할 작업을 정의합니다. '로그' 작업은 감사 목적으로 사용할 수 있으며 '차단' 작업을 사용하여 sas 정책 만료 기간을 준수하지 않는 SAS 토큰의 사용을 차단하고 거부할 수 있습니다.
|
ExtendedLocation
|
확장된 위치의 복합 형식입니다.
|
ExtendedLocationTypes
|
확장된 위치의 형식입니다.
|
GeoReplicationStats
|
스토리지 계정의 Blob, 테이블, 큐 및 파일 서비스에 대한 복제와 관련된 통계입니다. 스토리지 계정에 대해 지역 중복 복제를 사용하도록 설정한 경우에만 사용할 수 있습니다.
|
GeoReplicationStatus
|
보조 위치의 상태입니다. 가능한 값은 다음과 같습니다. - 라이브: 보조 위치가 활성 상태이고 작동 중임을 나타냅니다. - 부트스트랩: 기본 위치에서 보조 위치로의 초기 동기화가 진행 중임을 나타냅니다. 이는 일반적으로 복제를 처음 사용하도록 설정할 때 발생합니다. - 사용할 수 없음: 보조 위치를 일시적으로 사용할 수 없음을 나타냅니다.
|
Identity
|
리소스의 ID입니다.
|
IdentityType
|
ID 형식입니다.
|
ImmutableStorageAccount
|
이 속성은 계정 수준 불변성을 사용하도록 설정하고 정의합니다. 기능을 자동으로 사용하도록 설정하면 Blob 버전 관리가 활성화됩니다.
|
IPRule
|
CIDR 형식의 특정 IP 또는 IP 범위를 가진 IP 규칙입니다.
|
KeyCreationTime
|
스토리지 계정 키 생성 시간입니다.
|
KeyPolicy
|
스토리지 계정에 할당된 KeyPolicy입니다.
|
KeySource
|
암호화 keySource(공급자)입니다. 가능한 값(대/소문자를 구분하지 않습니다): Microsoft.Storage, Microsoft.Keyvault
|
KeyType
|
암호화 서비스에 사용할 암호화 키 유형입니다. '계정' 키 유형은 계정 범위 암호화 키가 사용됨을 의미합니다. '서비스' 키 유형은 기본 서비스 키가 사용됨을 의미합니다.
|
KeyVaultProperties
|
키 자격 증명 모음의 속성입니다.
|
Kind
|
스토리지 계정의 유형을 나타냅니다.
|
LargeFileSharesState
|
사용으로 설정된 경우 대용량 파일 공유를 허용합니다. 사용하도록 설정한 후에는 사용하지 않도록 설정할 수 없습니다.
|
MinimumTlsVersion
|
스토리지에 대한 요청에 허용되는 최소 TLS 버전을 설정합니다. 이 속성에 대한 기본 해석은 TLS 1.0입니다.
|
NetworkRuleSet
|
네트워크 규칙 집합
|
postFailoverRedundancy
|
계정 장애 조치(failover)가 수행된 후 계정의 중복 유형입니다.
|
postPlannedFailoverRedundancy
|
계획된 계정 장애 조치(failover)가 수행된 후 계정의 중복 유형입니다.
|
PrivateEndpoint
|
프라이빗 엔드포인트 리소스입니다.
|
PrivateEndpointConnection
|
프라이빗 엔드포인트 연결 리소스입니다.
|
PrivateEndpointConnectionProvisioningState
|
현재 프로비저닝 상태입니다.
|
PrivateEndpointServiceConnectionStatus
|
프라이빗 엔드포인트 연결 상태입니다.
|
PrivateLinkServiceConnectionState
|
서비스 소비자와 공급자 간의 연결 상태에 대한 정보 컬렉션입니다.
|
ProvisioningState
|
작업이 호출된 시점의 스토리지 계정 상태를 가져옵니다.
|
PublicNetworkAccess
|
네트워크 보안 경계 구성이 스토리지 계정에 대한 공용 네트워크 액세스를 평가하도록 허용하거나 허용하지 않거나 허용합니다. 값은 선택 사항이지만 전달된 경우 '사용', '사용 안 함' 또는 'SecuredByPerimeter'여야 합니다.
|
ResourceAccessRule
|
리소스 액세스 규칙.
|
RoutingChoice
|
라우팅 선택은 사용자가 선택한 네트워크 라우팅의 종류를 정의합니다.
|
RoutingPreference
|
라우팅 기본 설정은 사용자 데이터를 배달하는 데 사용할 Microsoft 또는 인터넷 라우팅의 네트워크 유형을 정의합니다. 기본 옵션은 Microsoft 라우팅입니다.
|
SasPolicy
|
스토리지 계정에 할당된 SasPolicy입니다.
|
Sku
|
스토리지 계정의 SKU입니다.
|
SkuConversionStatus
|
이 속성은 현재 sku 변환 상태를 나타냅니다.
|
SkuName
|
SKU 이름입니다. 계정을 만드는 데 필요합니다. 업데이트에 대한 선택 사항입니다. 이전 버전에서는 SKU 이름을 accountType이라고 했습니다.
|
SkuTier
|
SKU 레벨. 이는 SKU 이름을 기반으로 합니다.
|
State
|
가상 네트워크 규칙의 상태를 가져옵니다.
|
StorageAccount
|
스토리지 계정입니다.
|
StorageAccountExpand
|
계정의 속성 내에서 속성을 확장하는 데 사용할 수 있습니다. 기본적으로 속성을 가져올 때 데이터는 포함되지 않습니다. 현재 geoReplicationStats 및 blobRestoreStatus만 지원합니다.
|
StorageAccountInternetEndpoints
|
인터넷 라우팅 엔드포인트를 통해 공용 Blob, 파일, 웹 또는 dfs 개체를 검색하는 데 사용되는 URI입니다.
|
StorageAccountMicrosoftEndpoints
|
Microsoft 라우팅 엔드포인트를 통해 공용 Blob, 큐, 테이블, 웹 또는 dfs 개체의 검색을 수행하는 데 사용되는 URI입니다.
|
StorageAccountSkuConversionStatus
|
비동기 sku 변환에 대한 sku 변환 상태 개체를 정의합니다.
|
UserAssignedIdentity
|
리소스에 대한 UserAssignedIdentity입니다.
|
VirtualNetworkRule
|
Virtual Network 규칙입니다.
|
AccessTier
열거형
종류 = BlobStorage인 스토리지 계정에 필요합니다. 액세스 계층은 청구에 사용됩니다. '프리미엄' 액세스 계층은 프리미엄 블록 Blob 스토리지 계정 유형의 기본값이며 프리미엄 블록 Blob 스토리지 계정 유형에 대해 변경할 수 없습니다.
값 |
Description |
Hot
|
|
Cool
|
|
Premium
|
|
Cold
|
|
AccountImmutabilityPolicyProperties
Object
이는 계정 수준 불변성 정책 속성을 정의합니다.
Name |
형식 |
Description |
allowProtectedAppendWrites
|
boolean
|
이 속성은 사용 안 함 및 잠금 해제된 시간 기반 보존 정책에 대해서만 변경할 수 있습니다. 사용하도록 설정하면 불변성 보호 및 규정 준수를 유지하면서 새 블록을 추가 Blob에 쓸 수 있습니다. 새 블록만 추가할 수 있으며 기존 블록은 수정하거나 삭제할 수 없습니다.
|
immutabilityPeriodSinceCreationInDays
|
integer
(int32)
minimum: 1 maximum: 146000
|
정책을 만든 이후 컨테이너의 Blob에 대한 불변성 기간(일)입니다.
|
state
|
AccountImmutabilityPolicyState
|
ImmutabilityPolicy 상태는 정책의 모드를 정의합니다. 비활성화된 상태는 정책을 사용하지 않도록 설정하고, 잠금 해제된 상태는 불변성 보존 시간을 늘리거나 줄일 수 있으며 allowProtectedAppendWrites 속성을 토글할 수도 있습니다. 잠긴 상태는 불변성 보존 시간만 늘릴 수 있습니다. 정책은 사용 안 함 또는 잠금 해제 상태에서만 만들 수 있으며 두 상태 간에 전환할 수 있습니다. 잠금 해제 상태의 정책만 되돌릴 수 없는 잠긴 상태로 전환할 수 있습니다.
|
AccountImmutabilityPolicyState
열거형
ImmutabilityPolicy 상태는 정책의 모드를 정의합니다. 비활성화된 상태는 정책을 사용하지 않도록 설정하고, 잠금 해제된 상태는 불변성 보존 시간을 늘리거나 줄일 수 있으며 allowProtectedAppendWrites 속성을 토글할 수도 있습니다. 잠긴 상태는 불변성 보존 시간만 늘릴 수 있습니다. 정책은 사용 안 함 또는 잠금 해제 상태에서만 만들 수 있으며 두 상태 간에 전환할 수 있습니다. 잠금 해제 상태의 정책만 되돌릴 수 없는 잠긴 상태로 전환할 수 있습니다.
값 |
Description |
Unlocked
|
|
Locked
|
|
Disabled
|
|
AccountStatus
열거형
스토리지 계정의 기본 위치를 사용할 수 있는지 여부를 나타내는 상태를 가져옵니다.
값 |
Description |
available
|
|
unavailable
|
|
AccountType
열거형
Azure Storage에 대한 Active Directory 계정 유형을 지정합니다.
값 |
Description |
User
|
|
Computer
|
|
Action
열거형
가상 네트워크 규칙의 동작입니다.
ActiveDirectoryProperties
Object
AD(Active Directory)의 설정 속성입니다.
Name |
형식 |
Description |
accountType
|
AccountType
|
Azure Storage에 대한 Active Directory 계정 유형을 지정합니다.
|
azureStorageSid
|
string
|
Azure Storage의 SID(보안 식별자)를 지정합니다.
|
domainGuid
|
string
|
도메인 GUID를 지정합니다.
|
domainName
|
string
|
AD DNS 서버가 신뢰할 수 있는 기본 도메인을 지정합니다.
|
domainSid
|
string
|
SID(보안 식별자)를 지정합니다.
|
forestName
|
string
|
가져올 Active Directory 포리스트를 지정합니다.
|
netBiosDomainName
|
string
|
NetBIOS 도메인 이름을 지정합니다.
|
samAccountName
|
string
|
Azure Storage에 대한 Active Directory SAMAccountName을 지정합니다.
|
AllowedCopyScope
열거형
AAD 테넌트 내 또는 프라이빗 링크를 사용하여 스토리지 계정 간 복사를 동일한 VNet으로 제한합니다.
값 |
Description |
PrivateLink
|
|
AAD
|
|
AzureFilesIdentityBasedAuthentication
Object
Azure Files ID 기반 인증에 대한 설정입니다.
BlobRestoreParameters
Object
Blob 복원 매개 변수
Name |
형식 |
Description |
blobRanges
|
BlobRestoreRange[]
|
복원할 Blob 범위입니다.
|
timeToRestore
|
string
(date-time)
|
지정된 시간으로 Blob을 복원합니다.
|
BlobRestoreProgressStatus
열거형
Blob 복원 진행률의 상태입니다. 가능한 값은 다음과 같습니다. - InProgress: Blob 복원이 진행 중임을 나타냅니다. - 완료: Blob 복원이 성공적으로 완료되었음을 나타냅니다. - 실패: Blob 복원이 실패했음을 나타냅니다.
값 |
Description |
InProgress
|
|
Complete
|
|
Failed
|
|
BlobRestoreRange
Object
Blob 범위
Name |
형식 |
Description |
endRange
|
string
|
Blob 끝 범위입니다. 이것은 배타적입니다. 비어 있는 것은 계정 끝을 의미합니다.
|
startRange
|
string
|
Blob 시작 범위입니다. 포함 필드입니다. 비어 있으면 계정이 시작됩니다.
|
BlobRestoreStatus
Object
Blob 복원 상태입니다.
Name |
형식 |
Description |
failureReason
|
string
|
Blob 복원에 실패한 경우의 실패 원인입니다.
|
parameters
|
BlobRestoreParameters
|
Blob 복원 요청 매개 변수입니다.
|
restoreId
|
string
|
Blob 복원 요청을 추적하기 위한 ID입니다.
|
status
|
BlobRestoreProgressStatus
|
Blob 복원 진행률의 상태입니다. 가능한 값은 다음과 같습니다. - InProgress: Blob 복원이 진행 중임을 나타냅니다. - 완료: Blob 복원이 성공적으로 완료되었음을 나타냅니다. - 실패: Blob 복원이 실패했음을 나타냅니다.
|
Bypass
열거형
트래픽이 로깅/메트릭/AzureServices에 대해 무시되는지 여부를 지정합니다. 가능한 값은 로깅의 조합입니다. |메트릭|AzureServices(예: "로깅, 메트릭") 또는 None을 사용하여 해당 트래픽을 무시하지 않습니다.
값 |
Description |
None
|
|
Logging
|
|
Metrics
|
|
AzureServices
|
|
CustomDomain
Object
이 스토리지 계정에 할당된 사용자 지정 도메인입니다. 업데이트를 통해 설정할 수 있습니다.
Name |
형식 |
Description |
name
|
string
|
스토리지 계정에 할당된 사용자 지정 도메인 이름을 가져오거나 설정합니다. 이름은 CNAME 원본입니다.
|
useSubDomainName
|
boolean
|
간접 CName 유효성 검사를 사용할 수 있는지 여부를 나타냅니다. 기본값은 거짓입니다. 이 설정은 업데이트에서만 설정해야 합니다.
|
DefaultAction
열거형
다른 규칙이 일치하지 않을 때 허용 또는 거부의 기본 동작을 지정합니다.
DefaultSharePermission
열거형
RBAC 역할이 할당되지 않은 경우 Kerberos 인증을 사용하는 사용자의 기본 공유 권한입니다.
값 |
Description |
None
|
|
StorageFileDataSmbShareReader
|
|
StorageFileDataSmbShareContributor
|
|
StorageFileDataSmbShareElevatedContributor
|
|
DirectoryServiceOptions
열거형
사용된 디렉터리 서비스를 나타냅니다. 이 열거형은 나중에 확장될 수 있습니다.
값 |
Description |
None
|
|
AADDS
|
|
AD
|
|
AADKERB
|
|
DnsEndpointType
열거형
엔드포인트 유형을 지정할 수 있습니다. 이를 AzureDNSZone으로 설정하여 단일 구독에서 많은 수의 계정을 만듭니다. 이 계정은 Azure DNS 영역에 계정을 만들고 엔드포인트 URL에는 영숫자 DNS 영역 식별자가 있습니다.
값 |
Description |
Standard
|
|
AzureDnsZone
|
|
Encryption
Object
스토리지 계정의 암호화 설정입니다.
Name |
형식 |
Default value |
Description |
identity
|
EncryptionIdentity
|
|
미사용 서비스 쪽 암호화에 사용할 ID입니다.
|
keySource
|
KeySource
|
Microsoft.Storage
|
암호화 keySource(공급자)입니다. 가능한 값(대/소문자를 구분하지 않습니다): Microsoft.Storage, Microsoft.Keyvault
|
keyvaultproperties
|
KeyVaultProperties
|
|
키 자격 증명 모음에서 제공하는 속성입니다.
|
requireInfrastructureEncryption
|
boolean
|
|
서비스가 미사용 데이터에 대해 플랫폼 관리 키를 사용하여 보조 암호화 계층을 적용하는지 여부를 나타내는 부울입니다.
|
services
|
EncryptionServices
|
|
암호화를 지원하는 서비스 목록입니다.
|
EncryptionIdentity
Object
스토리지 계정에 대한 암호화 ID입니다.
Name |
형식 |
Description |
federatedIdentityClientId
|
string
|
스토리지 계정에서 테넌트 간 고객 관리형 키 서버 쪽 암호화를 위해 사용자 할당 ID와 함께 사용할 다중 테넌트 애플리케이션의 ClientId입니다.
|
userAssignedIdentity
|
string
|
스토리지 계정의 서버 쪽 암호화와 연결할 UserAssigned ID의 리소스 식별자입니다.
|
EncryptionService
Object
서버 쪽 암호화를 사용할 수 있는 서비스입니다.
Name |
형식 |
Description |
enabled
|
boolean
|
서비스가 저장된 데이터를 암호화하는지 여부를 나타내는 부울입니다. 미사용 데이터 암호화는 현재 기본적으로 사용하도록 설정되어 있으며 사용하지 않도록 설정할 수 없습니다.
|
keyType
|
KeyType
|
암호화 서비스에 사용할 암호화 키 유형입니다. '계정' 키 유형은 계정 범위 암호화 키가 사용됨을 의미합니다. '서비스' 키 유형은 기본 서비스 키가 사용됨을 의미합니다.
|
lastEnabledTime
|
string
(date-time)
|
사용자가 암호화를 마지막으로 사용하도록 설정한 날짜/시간의 대략적인 예상을 가져옵니다. 데이터는 현재 기본적으로 미사용 시 암호화되며 사용하지 않도록 설정할 수 없습니다.
|
EncryptionServices
Object
암호화를 지원하는 서비스 목록입니다.
Endpoints
Object
공용 Blob, 큐, 테이블, 웹 또는 dfs 개체의 검색을 수행하는 데 사용되는 URI입니다.
Name |
형식 |
Description |
blob
|
string
|
Blob 엔드포인트를 가져옵니다.
|
dfs
|
string
|
dfs 엔드포인트를 가져옵니다.
|
file
|
string
|
파일 엔드포인트를 가져옵니다.
|
internetEndpoints
|
StorageAccountInternetEndpoints
|
인터넷 라우팅 스토리지 엔드포인트를 가져옵니다.
|
microsoftEndpoints
|
StorageAccountMicrosoftEndpoints
|
Microsoft 라우팅 스토리지 엔드포인트를 가져옵니다.
|
queue
|
string
|
큐 엔드포인트를 가져옵니다.
|
table
|
string
|
테이블 엔드포인트를 가져옵니다.
|
web
|
string
|
웹 엔드포인트를 가져옵니다.
|
ExpirationAction
열거형
SAS 만료 작업은 sasPolicy.sasExpirationPeriod를 위반할 때 수행할 작업을 정의합니다. '로그' 작업은 감사 목적으로 사용할 수 있으며 '차단' 작업을 사용하여 sas 정책 만료 기간을 준수하지 않는 SAS 토큰의 사용을 차단하고 거부할 수 있습니다.
ExtendedLocation
Object
확장된 위치의 복합 형식입니다.
ExtendedLocationTypes
열거형
확장된 위치의 형식입니다.
GeoReplicationStats
Object
스토리지 계정의 Blob, 테이블, 큐 및 파일 서비스에 대한 복제와 관련된 통계입니다. 스토리지 계정에 대해 지역 중복 복제를 사용하도록 설정한 경우에만 사용할 수 있습니다.
Name |
형식 |
Description |
canFailover
|
boolean
|
계정에 대해 계정 장애 조치(failover)가 지원되는지 여부를 나타내는 부울 플래그입니다.
|
canPlannedFailover
|
boolean
|
계정에 대해 계획된 계정 장애 조치(failover)가 지원되는지 여부를 나타내는 부울 플래그입니다.
|
lastSyncTime
|
string
(date-time)
|
이 UTC 날짜/시간 값 이전의 모든 기본 쓰기는 읽기 작업에 사용할 수 있도록 보장됩니다. 이 시점 이후의 기본 쓰기는 읽기에 사용할 수 있거나 사용할 수 없습니다. LastSyncTime의 값을 사용할 수 없는 경우 요소가 기본값일 수 있습니다. 보조 데이터베이스가 오프라인이거나 부트스트랩에 있는 경우 발생할 수 있습니다.
|
postFailoverRedundancy
|
postFailoverRedundancy
|
계정 장애 조치(failover)가 수행된 후 계정의 중복 유형입니다.
|
postPlannedFailoverRedundancy
|
postPlannedFailoverRedundancy
|
계획된 계정 장애 조치(failover)가 수행된 후 계정의 중복 유형입니다.
|
status
|
GeoReplicationStatus
|
보조 위치의 상태입니다. 가능한 값은 다음과 같습니다. - 라이브: 보조 위치가 활성 상태이고 작동 중임을 나타냅니다. - 부트스트랩: 기본 위치에서 보조 위치로의 초기 동기화가 진행 중임을 나타냅니다. 이는 일반적으로 복제를 처음 사용하도록 설정할 때 발생합니다. - 사용할 수 없음: 보조 위치를 일시적으로 사용할 수 없음을 나타냅니다.
|
GeoReplicationStatus
열거형
보조 위치의 상태입니다. 가능한 값은 다음과 같습니다. - 라이브: 보조 위치가 활성 상태이고 작동 중임을 나타냅니다. - 부트스트랩: 기본 위치에서 보조 위치로의 초기 동기화가 진행 중임을 나타냅니다. 이는 일반적으로 복제를 처음 사용하도록 설정할 때 발생합니다. - 사용할 수 없음: 보조 위치를 일시적으로 사용할 수 없음을 나타냅니다.
값 |
Description |
Live
|
|
Bootstrap
|
|
Unavailable
|
|
Identity
Object
리소스의 ID입니다.
Name |
형식 |
Description |
principalId
|
string
|
리소스 ID의 보안 주체 ID입니다.
|
tenantId
|
string
|
리소스의 테넌트 ID입니다.
|
type
|
IdentityType
|
ID 형식입니다.
|
userAssignedIdentities
|
<string,
UserAssignedIdentity>
|
이 스토리지 계정에서 사용할 사용자 할당 ID 집합을 설명하는 키 값 쌍 목록을 가져오거나 설정합니다. 키는 ID의 ARM 리소스 식별자입니다. 여기서는 사용자 할당 ID가 1명만 허용됩니다.
|
IdentityType
열거형
ID 형식입니다.
값 |
Description |
None
|
|
SystemAssigned
|
|
UserAssigned
|
|
SystemAssigned,UserAssigned
|
|
ImmutableStorageAccount
Object
이 속성은 계정 수준 불변성을 사용하도록 설정하고 정의합니다. 기능을 자동으로 사용하도록 설정하면 Blob 버전 관리가 활성화됩니다.
Name |
형식 |
Description |
enabled
|
boolean
|
계정 수준 불변성을 가능하게 하는 부울 플래그입니다. 이러한 계정의 모든 컨테이너는 기본적으로 개체 수준 불변성을 사용하도록 설정되어 있습니다.
|
immutabilityPolicy
|
AccountImmutabilityPolicyProperties
|
개체 수준에서 명시적 불변성 정책을 소유하지 않는 개체에 상속되고 적용되는 기본 계정 수준 불변성 정책을 지정합니다. 개체 수준 불변성 정책은 계정 수준 불변성 정책보다 우선 순위가 높은 컨테이너 수준 불변성 정책보다 우선 순위가 높습니다.
|
IPRule
Object
CIDR 형식의 특정 IP 또는 IP 범위를 가진 IP 규칙입니다.
Name |
형식 |
Default value |
Description |
action
|
Action
|
Allow
|
IP ACL 규칙의 동작입니다.
|
value
|
string
|
|
IP 또는 IP 범위를 CIDR 형식으로 지정합니다. IPV4 주소만 허용됩니다.
|
KeyCreationTime
Object
스토리지 계정 키 생성 시간입니다.
Name |
형식 |
Description |
key1
|
string
(date-time)
|
|
key2
|
string
(date-time)
|
|
KeyPolicy
Object
스토리지 계정에 할당된 KeyPolicy입니다.
Name |
형식 |
Description |
keyExpirationPeriodInDays
|
integer
(int32)
|
키 만료 기간(일)입니다.
|
KeySource
열거형
암호화 keySource(공급자)입니다. 가능한 값(대/소문자를 구분하지 않습니다): Microsoft.Storage, Microsoft.Keyvault
값 |
Description |
Microsoft.Storage
|
|
Microsoft.Keyvault
|
|
KeyType
열거형
암호화 서비스에 사용할 암호화 키 유형입니다. '계정' 키 유형은 계정 범위 암호화 키가 사용됨을 의미합니다. '서비스' 키 유형은 기본 서비스 키가 사용됨을 의미합니다.
값 |
Description |
Service
|
|
Account
|
|
KeyVaultProperties
Object
키 자격 증명 모음의 속성입니다.
Name |
형식 |
Description |
currentVersionedKeyExpirationTimestamp
|
string
(date-time)
|
암호화에 사용되는 고객 관리형 키의 현재 버전 만료 시간을 나타내는 읽기 전용 속성입니다.
|
currentVersionedKeyIdentifier
|
string
|
현재 버전이 지정된 Key Vault 키의 개체 식별자입니다.
|
keyname
|
string
|
KeyVault 키의 이름입니다.
|
keyvaulturi
|
string
|
KeyVault의 URI입니다.
|
keyversion
|
string
|
KeyVault 키의 버전입니다.
|
lastKeyRotationTimestamp
|
string
(date-time)
|
Key Vault 키의 마지막 회전 타임스탬프입니다.
|
Kind
열거형
스토리지 계정의 유형을 나타냅니다.
값 |
Description |
Storage
|
|
StorageV2
|
|
BlobStorage
|
|
FileStorage
|
|
BlockBlobStorage
|
|
LargeFileSharesState
열거형
사용으로 설정된 경우 대용량 파일 공유를 허용합니다. 사용하도록 설정한 후에는 사용하지 않도록 설정할 수 없습니다.
값 |
Description |
Disabled
|
|
Enabled
|
|
MinimumTlsVersion
열거형
스토리지에 대한 요청에 허용되는 최소 TLS 버전을 설정합니다. 이 속성에 대한 기본 해석은 TLS 1.0입니다.
값 |
Description |
TLS1_0
|
|
TLS1_1
|
|
TLS1_2
|
|
TLS1_3
|
|
NetworkRuleSet
Object
네트워크 규칙 집합
Name |
형식 |
Default value |
Description |
bypass
|
Bypass
|
AzureServices
|
트래픽이 로깅/메트릭/AzureServices에 대해 무시되는지 여부를 지정합니다. 가능한 값은 로깅의 조합입니다. |메트릭|AzureServices(예: "로깅, 메트릭") 또는 None을 사용하여 해당 트래픽을 무시하지 않습니다.
|
defaultAction
|
DefaultAction
|
Allow
|
다른 규칙이 일치하지 않을 때 허용 또는 거부의 기본 동작을 지정합니다.
|
ipRules
|
IPRule[]
|
|
IP ACL 규칙 설정
|
resourceAccessRules
|
ResourceAccessRule[]
|
|
리소스 액세스 규칙 설정
|
virtualNetworkRules
|
VirtualNetworkRule[]
|
|
가상 네트워크 규칙 설정
|
postFailoverRedundancy
열거형
계정 장애 조치(failover)가 수행된 후 계정의 중복 유형입니다.
값 |
Description |
Standard_LRS
|
|
Standard_ZRS
|
|
postPlannedFailoverRedundancy
열거형
계획된 계정 장애 조치(failover)가 수행된 후 계정의 중복 유형입니다.
값 |
Description |
Standard_GRS
|
|
Standard_GZRS
|
|
Standard_RAGRS
|
|
Standard_RAGZRS
|
|
PrivateEndpoint
Object
프라이빗 엔드포인트 리소스입니다.
Name |
형식 |
Description |
id
|
string
|
프라이빗 엔드포인트에 대한 ARM 식별자
|
PrivateEndpointConnection
Object
프라이빗 엔드포인트 연결 리소스입니다.
Name |
형식 |
Description |
id
|
string
|
리소스에 대한 정규화된 리소스 ID입니다. 예 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
name
|
string
|
리소스의 이름
|
properties.privateEndpoint
|
PrivateEndpoint
|
프라이빗 엔드포인트의 리소스입니다.
|
properties.privateLinkServiceConnectionState
|
PrivateLinkServiceConnectionState
|
서비스 소비자와 공급자 간의 연결 상태에 대한 정보 컬렉션입니다.
|
properties.provisioningState
|
PrivateEndpointConnectionProvisioningState
|
프라이빗 엔드포인트 연결 리소스의 프로비전 상태입니다.
|
type
|
string
|
리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"
|
PrivateEndpointConnectionProvisioningState
열거형
현재 프로비저닝 상태입니다.
값 |
Description |
Succeeded
|
|
Creating
|
|
Deleting
|
|
Failed
|
|
PrivateEndpointServiceConnectionStatus
열거형
프라이빗 엔드포인트 연결 상태입니다.
값 |
Description |
Pending
|
|
Approved
|
|
Rejected
|
|
PrivateLinkServiceConnectionState
Object
서비스 소비자와 공급자 간의 연결 상태에 대한 정보 컬렉션입니다.
Name |
형식 |
Description |
actionRequired
|
string
|
서비스 공급자의 변경 내용에 소비자에 대한 업데이트가 필요한지 여부를 나타내는 메시지입니다.
|
description
|
string
|
연결의 승인/거부 이유입니다.
|
status
|
PrivateEndpointServiceConnectionStatus
|
서비스 소유자가 연결을 승인/거부/제거했는지 여부를 나타냅니다.
|
ProvisioningState
열거형
작업이 호출된 시점의 스토리지 계정 상태를 가져옵니다.
값 |
Description |
Creating
|
|
ResolvingDNS
|
|
Succeeded
|
|
PublicNetworkAccess
열거형
네트워크 보안 경계 구성이 스토리지 계정에 대한 공용 네트워크 액세스를 평가하도록 허용하거나 허용하지 않거나 허용합니다. 값은 선택 사항이지만 전달된 경우 '사용', '사용 안 함' 또는 'SecuredByPerimeter'여야 합니다.
값 |
Description |
Enabled
|
|
Disabled
|
|
SecuredByPerimeter
|
|
ResourceAccessRule
Object
리소스 액세스 규칙.
Name |
형식 |
Description |
resourceId
|
string
|
리소스 ID
|
tenantId
|
string
|
테넌트 ID
|
RoutingChoice
열거형
라우팅 선택은 사용자가 선택한 네트워크 라우팅의 종류를 정의합니다.
값 |
Description |
MicrosoftRouting
|
|
InternetRouting
|
|
RoutingPreference
Object
라우팅 기본 설정은 사용자 데이터를 배달하는 데 사용할 Microsoft 또는 인터넷 라우팅의 네트워크 유형을 정의합니다. 기본 옵션은 Microsoft 라우팅입니다.
Name |
형식 |
Description |
publishInternetEndpoints
|
boolean
|
인터넷 라우팅 스토리지 엔드포인트를 게시할지 여부를 나타내는 부울 플래그
|
publishMicrosoftEndpoints
|
boolean
|
Microsoft 라우팅 스토리지 엔드포인트를 게시할지 여부를 나타내는 부울 플래그
|
routingChoice
|
RoutingChoice
|
라우팅 선택은 사용자가 선택한 네트워크 라우팅의 종류를 정의합니다.
|
SasPolicy
Object
스토리지 계정에 할당된 SasPolicy입니다.
Name |
형식 |
Default value |
Description |
expirationAction
|
ExpirationAction
|
Log
|
SAS 만료 작업은 sasPolicy.sasExpirationPeriod를 위반할 때 수행할 작업을 정의합니다. '로그' 작업은 감사 목적으로 사용할 수 있으며 '차단' 작업을 사용하여 sas 정책 만료 기간을 준수하지 않는 SAS 토큰의 사용을 차단하고 거부할 수 있습니다.
|
sasExpirationPeriod
|
string
|
|
SAS 만료 기간인 DD.HH:MM:SS입니다.
|
Sku
Object
스토리지 계정의 SKU입니다.
Name |
형식 |
Description |
name
|
SkuName
|
SKU 이름입니다. 계정을 만드는 데 필요합니다. 업데이트에 대한 선택 사항입니다. 이전 버전에서는 SKU 이름을 accountType이라고 했습니다.
|
tier
|
SkuTier
|
SKU 레벨. 이는 SKU 이름을 기반으로 합니다.
|
SkuConversionStatus
열거형
이 속성은 현재 sku 변환 상태를 나타냅니다.
값 |
Description |
InProgress
|
|
Succeeded
|
|
Failed
|
|
SkuName
열거형
SKU 이름입니다. 계정을 만드는 데 필요합니다. 업데이트에 대한 선택 사항입니다. 이전 버전에서는 SKU 이름을 accountType이라고 했습니다.
값 |
Description |
Standard_LRS
|
|
Standard_GRS
|
|
Standard_RAGRS
|
|
Standard_ZRS
|
|
Premium_LRS
|
|
Premium_ZRS
|
|
Standard_GZRS
|
|
Standard_RAGZRS
|
|
StandardV2_LRS
|
|
StandardV2_GRS
|
|
StandardV2_ZRS
|
|
StandardV2_GZRS
|
|
PremiumV2_LRS
|
|
PremiumV2_ZRS
|
|
SkuTier
열거형
SKU 레벨. 이는 SKU 이름을 기반으로 합니다.
값 |
Description |
Standard
|
|
Premium
|
|
State
열거형
가상 네트워크 규칙의 상태를 가져옵니다.
값 |
Description |
Provisioning
|
|
Deprovisioning
|
|
Succeeded
|
|
Failed
|
|
NetworkSourceDeleted
|
|
StorageAccount
Object
스토리지 계정입니다.
Name |
형식 |
Description |
extendedLocation
|
ExtendedLocation
|
리소스의 extendedLocation입니다.
|
id
|
string
|
리소스에 대한 정규화된 리소스 ID입니다. 예 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
identity
|
Identity
|
리소스의 ID입니다.
|
kind
|
Kind
|
종류를 가져옵니다.
|
___location
|
string
|
리소스가 있는 지리적 위치
|
name
|
string
|
리소스의 이름
|
properties.accessTier
|
AccessTier
|
종류 = BlobStorage인 스토리지 계정에 필요합니다. 액세스 계층은 청구에 사용됩니다. '프리미엄' 액세스 계층은 프리미엄 블록 Blob 스토리지 계정 유형의 기본값이며 프리미엄 블록 Blob 스토리지 계정 유형에 대해 변경할 수 없습니다.
|
properties.accountMigrationInProgress
|
boolean
|
고객이 시작한 계정 마이그레이션이 진행 중인 경우 값은 true이고, 그렇지 않으면 null이 됩니다.
|
properties.allowBlobPublicAccess
|
boolean
|
스토리지 계정의 모든 Blob 또는 컨테이너에 대한 공용 액세스를 허용하거나 허용하지 않습니다. 이 속성에 대한 기본 해석은 false입니다.
|
properties.allowCrossTenantReplication
|
boolean
|
교차 AAD 테넌트 개체 복제를 허용하거나 허용하지 않습니다. 개체 복제 정책에 다른 AAD 테넌트에서 스토리지 계정이 포함된 경우에만 새 계정 또는 기존 계정에 대해 이 속성을 true로 설정합니다. 새 계정이 기본적으로 모범 보안 방법을 따르도록 기본 해석은 false입니다.
|
properties.allowSharedKeyAccess
|
boolean
|
스토리지 계정이 공유 키를 통해 계정 액세스 키로 요청을 승인하도록 허용하는지 여부를 나타냅니다. false이면 공유 액세스 서명을 포함한 모든 요청은 Azure AD(Azure Active Directory)로 권한을 부여받아야 합니다. 기본값은 null이며 true와 동일합니다.
|
properties.allowedCopyScope
|
AllowedCopyScope
|
AAD 테넌트 내 또는 프라이빗 링크를 사용하여 스토리지 계정 간 복사를 동일한 VNet으로 제한합니다.
|
properties.azureFilesIdentityBasedAuthentication
|
AzureFilesIdentityBasedAuthentication
|
Azure Files에 대한 ID 기반 인증 설정을 제공합니다.
|
properties.blobRestoreStatus
|
BlobRestoreStatus
|
Blob 복원 상태
|
properties.creationTime
|
string
(date-time)
|
스토리지 계정의 생성 날짜 및 시간을 UTC로 가져옵니다.
|
properties.customDomain
|
CustomDomain
|
사용자가 이 스토리지 계정에 할당한 사용자 지정 도메인을 가져옵니다.
|
properties.defaultToOAuthAuthentication
|
boolean
|
기본 인증이 OAuth인지 여부를 나타내는 부울 플래그입니다. 이 속성에 대한 기본 해석은 false입니다.
|
properties.dnsEndpointType
|
DnsEndpointType
|
엔드포인트 유형을 지정할 수 있습니다. 이를 AzureDNSZone으로 설정하여 단일 구독에서 많은 수의 계정을 만듭니다. 이 계정은 Azure DNS 영역에 계정을 만들고 엔드포인트 URL에는 영숫자 DNS 영역 식별자가 있습니다.
|
properties.enableExtendedGroups
|
boolean
|
true로 설정된 경우 로컬 사용자 기능을 사용하여 확장 그룹 지원을 사용하도록 설정합니다.
|
properties.encryption
|
Encryption
|
스토리지 계정의 서버 쪽 암호화에 사용할 암호화 설정입니다.
|
properties.failoverInProgress
|
boolean
|
장애 조치(failover)가 진행 중인 경우 값은 true이고, 그렇지 않으면 null이 됩니다.
|
properties.geoReplicationStats
|
GeoReplicationStats
|
지역 복제 통계
|
properties.immutableStorageWithVersioning
|
ImmutableStorageAccount
|
이 속성은 변경할 수 없으며 계정 생성 시간에만 true로 설정할 수 있습니다. true로 설정하면 기본적으로 계정의 모든 컨테이너에 대해 개체 수준 불변성을 사용할 수 있습니다.
|
properties.isHnsEnabled
|
boolean
|
true로 설정된 경우 계정 HierarchicalNamespace를 사용하도록 설정합니다.
|
properties.isLocalUserEnabled
|
boolean
|
true로 설정된 경우 로컬 사용자 기능을 사용하도록 설정합니다.
|
properties.isNfsV3Enabled
|
boolean
|
true로 설정된 경우 NFS 3.0 프로토콜 지원을 사용하도록 설정합니다.
|
properties.isSftpEnabled
|
boolean
|
true로 설정된 경우 보안 파일 전송 프로토콜을 사용하도록 설정합니다.
|
properties.isSkuConversionBlocked
|
boolean
|
이 속성은 진행 중인 마이그레이션 시 true 또는 false로 설정됩니다. 기본값은 null입니다.
|
properties.keyCreationTime
|
KeyCreationTime
|
스토리지 계정 키 생성 시간입니다.
|
properties.keyPolicy
|
KeyPolicy
|
스토리지 계정에 할당된 KeyPolicy입니다.
|
properties.largeFileSharesState
|
LargeFileSharesState
|
사용으로 설정된 경우 대용량 파일 공유를 허용합니다. 사용하도록 설정한 후에는 사용하지 않도록 설정할 수 없습니다.
|
properties.lastGeoFailoverTime
|
string
(date-time)
|
보조 위치에 대한 장애 조치(failover)의 가장 최근 인스턴스의 타임스탬프를 가져옵니다. 가장 최근의 타임스탬프만 유지됩니다. 장애 조치(failover) 인스턴스가 없는 경우 이 요소는 반환되지 않습니다. accountType이 Standard_GRS 또는 Standard_RAGRS 경우에만 사용할 수 있습니다.
|
properties.minimumTlsVersion
|
MinimumTlsVersion
|
스토리지에 대한 요청에 허용되는 최소 TLS 버전을 설정합니다. 이 속성에 대한 기본 해석은 TLS 1.0입니다.
|
properties.networkAcls
|
NetworkRuleSet
|
네트워크 규칙 집합
|
properties.primaryEndpoints
|
Endpoints
|
공용 Blob, 큐 또는 테이블 개체의 검색을 수행하는 데 사용되는 URL을 가져옵니다. Standard_ZRS 및 Premium_LRS 계정은 Blob 엔드포인트만 반환합니다.
|
properties.primaryLocation
|
string
|
스토리지 계정에 대한 기본 데이터 센터의 위치를 가져옵니다.
|
properties.privateEndpointConnections
|
PrivateEndpointConnection[]
|
지정된 스토리지 계정과 연결된 프라이빗 엔드포인트 연결 목록
|
properties.provisioningState
|
ProvisioningState
|
작업이 호출된 시점의 스토리지 계정 상태를 가져옵니다.
|
properties.publicNetworkAccess
|
PublicNetworkAccess
|
네트워크 보안 경계 구성이 스토리지 계정에 대한 공용 네트워크 액세스를 평가하도록 허용하거나 허용하지 않거나 허용합니다.
|
properties.routingPreference
|
RoutingPreference
|
사용자가 데이터 전송을 위해 선택한 네트워크 라우팅 선택에 대한 정보를 유지 관리합니다.
|
properties.sasPolicy
|
SasPolicy
|
스토리지 계정에 할당된 SasPolicy입니다.
|
properties.secondaryEndpoints
|
Endpoints
|
스토리지 계정의 보조 위치에서 공용 Blob, 큐 또는 테이블 개체를 검색하는 데 사용되는 URL을 가져옵니다. SKU 이름이 Standard_RAGRS 경우에만 사용할 수 있습니다.
|
properties.secondaryLocation
|
string
|
스토리지 계정에 대한 지역에서 복제된 보조 데이터베이스의 위치를 가져옵니다. accountType이 Standard_GRS 또는 Standard_RAGRS 경우에만 사용할 수 있습니다.
|
properties.statusOfPrimary
|
AccountStatus
|
스토리지 계정의 기본 위치를 사용할 수 있는지 여부를 나타내는 상태를 가져옵니다.
|
properties.statusOfSecondary
|
AccountStatus
|
스토리지 계정의 보조 위치를 사용할 수 있는지 여부를 나타내는 상태를 가져옵니다. SKU 이름이 Standard_GRS 또는 Standard_RAGRS 경우에만 사용할 수 있습니다.
|
properties.storageAccountSkuConversionStatus
|
StorageAccountSkuConversionStatus
|
이 속성은 readOnly이며 비동기 스토리지 계정 sku 변환 작업 중에 서버에 의해 설정됩니다.
|
properties.supportsHttpsTrafficOnly
|
boolean
|
true로 설정한 경우 스토리지 서비스에 대한 https 트래픽만 허용합니다.
|
sku
|
Sku
|
SKU를 가져옵니다.
|
tags
|
object
|
리소스 태그.
|
type
|
string
|
리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"
|
StorageAccountExpand
열거형
계정의 속성 내에서 속성을 확장하는 데 사용할 수 있습니다. 기본적으로 속성을 가져올 때 데이터는 포함되지 않습니다. 현재 geoReplicationStats 및 blobRestoreStatus만 지원합니다.
값 |
Description |
geoReplicationStats
|
|
blobRestoreStatus
|
|
StorageAccountInternetEndpoints
Object
인터넷 라우팅 엔드포인트를 통해 공용 Blob, 파일, 웹 또는 dfs 개체를 검색하는 데 사용되는 URI입니다.
Name |
형식 |
Description |
blob
|
string
|
Blob 엔드포인트를 가져옵니다.
|
dfs
|
string
|
dfs 엔드포인트를 가져옵니다.
|
file
|
string
|
파일 엔드포인트를 가져옵니다.
|
web
|
string
|
웹 엔드포인트를 가져옵니다.
|
StorageAccountMicrosoftEndpoints
Object
Microsoft 라우팅 엔드포인트를 통해 공용 Blob, 큐, 테이블, 웹 또는 dfs 개체의 검색을 수행하는 데 사용되는 URI입니다.
Name |
형식 |
Description |
blob
|
string
|
Blob 엔드포인트를 가져옵니다.
|
dfs
|
string
|
dfs 엔드포인트를 가져옵니다.
|
file
|
string
|
파일 엔드포인트를 가져옵니다.
|
queue
|
string
|
큐 엔드포인트를 가져옵니다.
|
table
|
string
|
테이블 엔드포인트를 가져옵니다.
|
web
|
string
|
웹 엔드포인트를 가져옵니다.
|
StorageAccountSkuConversionStatus
Object
비동기 sku 변환에 대한 sku 변환 상태 개체를 정의합니다.
Name |
형식 |
Description |
endTime
|
string
|
이 속성은 sku 변환 종료 시간을 나타냅니다.
|
skuConversionStatus
|
SkuConversionStatus
|
이 속성은 현재 sku 변환 상태를 나타냅니다.
|
startTime
|
string
|
이 속성은 sku 변환 시작 시간을 나타냅니다.
|
targetSkuName
|
SkuName
|
이 속성은 계정 sku가 비동기적으로 변환되는 대상 sku 이름을 나타냅니다.
|
UserAssignedIdentity
Object
리소스에 대한 UserAssignedIdentity입니다.
Name |
형식 |
Description |
clientId
|
string
|
ID의 클라이언트 ID입니다.
|
principalId
|
string
|
ID의 보안 주체 ID입니다.
|
VirtualNetworkRule
Object
Virtual Network 규칙입니다.
Name |
형식 |
Default value |
Description |
action
|
Action
|
Allow
|
가상 네트워크 규칙의 동작입니다.
|
id
|
string
|
|
서브넷의 리소스 ID(예: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}).
|
state
|
State
|
|
가상 네트워크 규칙의 상태를 가져옵니다.
|