You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageBlobTests/TestStorageBlobContainerEncryptionScope.json
Copy file name to clipboardExpand all lines: src/Storage/Storage.Management/StorageAccount/GetAzureStorageEncryptionScope.cs
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,24 @@ public class GetAzureStorageEncryptionScopeCommand : StorageFileBaseCmdlet
68
68
[ValidateNotNullOrEmpty]
69
69
publicstringEncryptionScopeName{get;set;}
70
70
71
+
[Parameter(Mandatory=false,
72
+
HelpMessage="The maximum number of encryption scopes that will be included in the list response")]
73
+
[ValidateNotNullOrEmpty]
74
+
publicint?MaxPageSize{get;set;}
75
+
76
+
[Parameter(Mandatory=false,
77
+
HelpMessage="The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. The filter must be in format: startswith(name, <prefix>)")]
78
+
[ValidateNotNullOrEmpty]
79
+
publicstringFilter{get;set;}
80
+
81
+
[Parameter(Mandatory=false,
82
+
HelpMessage="Optional, when specified, will list encryption scopes with the specific state. Defaults to All.")]
83
+
[ValidateSet(ListEncryptionScopesInclude.All,
84
+
ListEncryptionScopesInclude.Enabled,
85
+
ListEncryptionScopesInclude.Disabled)]
86
+
[ValidateNotNullOrEmpty]
87
+
publicstringInclude{get;set;}
88
+
71
89
publicoverridevoidExecuteCmdlet()
72
90
{
73
91
base.ExecuteCmdlet();
@@ -87,7 +105,7 @@ public override void ExecuteCmdlet()
This command lists all enabled encryption scopes of a Storage account, with a max page size of 10 encryption scopes included in each list response.
79
+
If there are more than 10 encryption scopes to be listed, the command will still list all the encryption scopes, but with multiple requests sent and responses received.
80
+
81
+
### Example 4: List all disabled encryption scopes with names starting with "test" of a Storage account
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters(http://go.microsoft.com/fwlink/?LinkID=113216).
221
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments