AssetMappingsClient.GetAssetMappingAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
receivedShare で AssetMapping を取得します。
public virtual System.Threading.Tasks.Task<Azure.Response> GetAssetMappingAsync (string receivedShareName, string assetMappingName, Azure.RequestContext context = default);
abstract member GetAssetMappingAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAssetMappingAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAssetMappingAsync (receivedShareName As String, assetMappingName As String, Optional context As RequestContext = Nothing) As Task(Of Response)
パラメーター
- receivedShareName
- String
受信した共有の名前。
- assetMappingName
- String
資産マッピングの名前。
- context
- RequestContext
要求コンテキスト。これは、クライアント パイプラインの既定の動作を呼び出しごとにオーバーライドできます。
戻り値
サービスから返された応答。 応答本文スキーマの詳細については、以下の「解説」セクションを参照してください。
例外
receivedShareName
または assetMappingName
が null です。
receivedShareName
または assetMappingName
が空の文字列であり、空でないと想定されていました。
サービスから成功以外の状態コードが返されました。
例
このサンプルでは、必要なパラメーターを使用して GetAssetMappingAsync を呼び出し、結果を解析する方法を示します。
var credential = new DefaultAzureCredential();
var client = new AssetMappingsClient("<https://my-service.azure.com>", credential);
Response response = await client.GetAssetMappingAsync("<receivedShareName>", "<assetMappingName>");
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("id").ToString());
Console.WriteLine(result.GetProperty("name").ToString());
Console.WriteLine(result.GetProperty("type").ToString());
Console.WriteLine(result.GetProperty("kind").ToString());
注釈
受信した共有の資産マッピングを取得する
応答ペイロードの JSON スキーマを次に示します。
応答本文:
このメソッドは、以下のいずれかの JSON オブジェクトをペイロードとして受け取ります。 このスキーマを表示するには、JSON オブジェクトを選択してください。
AdlsGen2AccountAssetMapping
のAdlsGen2AccountAssetMapping
スキーマ:{
kind: AdlsGen2Account, # Required. Types of asset mapping.
id: string, # Optional. The resource id of the resource.
name: string, # Optional. Name of the resource.
type: string, # Optional. Type of the resource.
properties: {
assetId: AdlsGen2AccountAssetMappingPropertiesAssetId, # Required. The id of the sender asset.
assetMappingStatus: "Ok" | "Broken", # Optional. State of asset mapping
containerName: string, # Required. Name of the container to received the shared paths.
folder: string, # Required. Folder under which the shared paths will be reflected.
location: string, # Optional. Location of the receiver storage account.
mountPath: string, # Optional. Optional mount path for the shared paths.
provisioningState: "Unknown" | "Succeeded" | "Creating" | "Deleting" | "Moving" | "Failed" | "SoftDeleting" | "SoftDeleted" | "SourceMoved" | "SourceDeleted" | "TargetMoved" | "TargetDeleted", # Optional. Provisioning status of the resource
storageAccountResourceId: string, # Required. Resource id of the receiver storage account.
}, # Required. Properties of the adls gen2 storage account asset mapping.
}
~+ 1 つ以上の JSON オブジェクト
BlobAccountAssetMapping
のBlobAccountAssetMapping
スキーマ:{
kind: BlobAccount, # Required. Types of asset mapping.
id: string, # Optional. The resource id of the resource.
name: string, # Optional. Name of the resource.
type: string, # Optional. Type of the resource.
properties: {
assetId: BlobAccountAssetMappingPropertiesAssetId, # Required. The id of the sender asset.
assetMappingStatus: "Ok" | "Broken", # Optional. State of asset mapping
containerName: string, # Required. Name of the container to received the shared paths.
folder: string, # Required. Folder under which the shared paths will be reflected.
location: string, # Optional. Location of the receiver storage account.
mountPath: string, # Optional. Optional mount path for the shared paths.
provisioningState: "Unknown" | "Succeeded" | "Creating" | "Deleting" | "Moving" | "Failed" | "SoftDeleting" | "SoftDeleted" | "SourceMoved" | "SourceDeleted" | "TargetMoved" | "TargetDeleted", # Optional. Provisioning status of the resource
storageAccountResourceId: string, # Required. Resource id of the receiver storage account.
}, # Required. Properties of the blob storage account asset mapping.
}
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET