IFileSharesOperations.CreateWithHttpMessagesAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
要求本文で説明されているように、指定したアカウントの下に新しい共有を作成します。 共有リソースには、その共有のメタデータとプロパティが含まれます。 共有に含まれるファイルの一覧は含まれません。
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Storage.Models.FileShare>> CreateWithHttpMessagesAsync (string resourceGroupName, string accountName, string shareName, Microsoft.Azure.Management.Storage.Models.FileShare fileShare, string expand = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Storage.Models.FileShare * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Storage.Models.FileShare>>
Public Function CreateWithHttpMessagesAsync (resourceGroupName As String, accountName As String, shareName As String, fileShare As FileShare, Optional expand As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of FileShare))
パラメーター
- resourceGroupName
- String
ユーザーのサブスクリプション内のリソース グループの名前。 名前の大文字と小文字は区別されます。
- accountName
- String
指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。
- shareName
- String
指定したストレージ アカウント内のファイル共有の名前。 ファイル共有名の長さは 3 ~ 63 文字で、数字、小文字、ダッシュ (-) のみを使用する必要があります。 すべてのダッシュ (-) 文字は、その直前および直後に文字または数字が使用されている必要があります。
- fileShare
- FileShare
作成するファイル共有のプロパティ。
- expand
- String
オプション。共有のプロパティ内のプロパティを展開するために使用されます。 有効な値はスナップショットです。 区切り記号 ',' を含む文字列として渡す必要があります
- customHeaders
- Dictionary<String,List<String>>
要求に追加されるヘッダー。
- cancellationToken
- CancellationToken
キャンセル トークン。
戻り値
例外
操作が無効な状態コードを返したときにスローされます
応答を逆シリアル化できない場合にスローされます
必須パラメーターが null の場合にスローされます
適用対象
Azure SDK for .NET