Files - Read Write
Informatie aanvragen voor het lezen en schrijven van bestandsinhoud.
Deze methode wordt gebruikt voor het aanvragen van informatie voor het lezen en schrijven van de bestandsinhoud.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite?api-version=2022-03-30-preview
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
file
|
path | True |
string |
Naam van het bestand |
|
group
|
path | True |
string |
Naam van de resourcegroep |
|
project
|
path | True |
string |
Naam van het project |
|
service
|
path | True |
string |
Naam van de service |
|
subscription
|
path | True |
string |
Abonnements-id waarmee een Azure-abonnement wordt geïdentificeerd. |
|
api-version
|
query | True |
string |
Versie van de API |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
Een object waarin wordt beschreven hoe u toegang krijgt tot de bestandsinhoud |
|
| Other Status Codes |
Fout |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Name | Description |
|---|---|
| user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Files_List
Voorbeeldaanvraag
POST https://management.azure.com/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8/readwrite?api-version=2022-03-30-preview
Voorbeeldrespons
{
"uri": "https://dmssdkservicestorage.blob.core.windows.net/dmssdkservicecontainer/_rpfiles/dmssdkproject/pfpu7fxqcpziyg2h3qj2vb7d8jpbbg7p?sv=2016-05-31&sr=b&sig=sassignature&se=2018-10-05T18%3A21%3A42Z&sp=racwd",
"headers": {
"x-ms-blob-type": "BlockBlob"
}
}
Definities
| Name | Description |
|---|---|
|
Api |
Foutinformatie. |
|
created |
|
|
File |
Bestandsopslaggegevens. |
|
OData |
Foutinformatie in OData-indeling. |
|
System |
ApiError
Foutinformatie.
| Name | Type | Description |
|---|---|---|
| error |
Foutinformatie in OData-indeling |
|
| systemData |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
createdByType
| Waarde | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
FileStorageInfo
Bestandsopslaggegevens.
| Name | Type | Description |
|---|---|---|
| headers |
object |
|
| uri |
string |
Een URI die kan worden gebruikt voor toegang tot de bestandsinhoud. |
ODataError
Foutinformatie in OData-indeling.
| Name | Type | Description |
|---|---|---|
| code |
string |
De machineleesbare beschrijving van de fout, zoals 'InvalidRequest' of 'InternalServerError' |
| details |
Interne fouten die deze fout hebben veroorzaakt |
|
| message |
string |
De leesbare beschrijving van de fout |
SystemData
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
|
| createdBy |
string |
|
| createdByType | ||
| lastModifiedAt |
string (date-time) |
|
| lastModifiedBy |
string |
|
| lastModifiedByType |