|
3071 | 3071 | } |
3072 | 3072 | } |
3073 | 3073 | } |
| 3074 | + }, |
| 3075 | + "/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/operations/{operationId}": { |
| 3076 | + "get": { |
| 3077 | + "parameters": [ |
| 3078 | + { |
| 3079 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 3080 | + }, |
| 3081 | + { |
| 3082 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 3083 | + }, |
| 3084 | + { |
| 3085 | + "name": "locationName", |
| 3086 | + "in": "path", |
| 3087 | + "required": true, |
| 3088 | + "type": "string", |
| 3089 | + "description": "The desired region to obtain information from." |
| 3090 | + }, |
| 3091 | + { |
| 3092 | + "name": "operationId", |
| 3093 | + "in": "path", |
| 3094 | + "description": "operation Id", |
| 3095 | + "required": true, |
| 3096 | + "type": "string" |
| 3097 | + } |
| 3098 | + ], |
| 3099 | + "tags": [ |
| 3100 | + "Operation Status" |
| 3101 | + ], |
| 3102 | + "operationId": "LocationOperationStatus", |
| 3103 | + "description": "Get Operation status", |
| 3104 | + "x-ms-examples": { |
| 3105 | + "Workflows_Get": { |
| 3106 | + "$ref": "./examples/LocationOperationStatus_Get.json" |
| 3107 | + } |
| 3108 | + }, |
| 3109 | + "responses": { |
| 3110 | + "200": { |
| 3111 | + "description": "Operation Status", |
| 3112 | + "schema": { |
| 3113 | + "$ref": "#/definitions/LocationOperationStatus" |
| 3114 | + }, |
| 3115 | + "headers": { |
| 3116 | + "x-ms-request-id": { |
| 3117 | + "description": "request id.", |
| 3118 | + "type": "string" |
| 3119 | + }, |
| 3120 | + "x-ms-correlation-request-id": { |
| 3121 | + "description": "correlation request id.", |
| 3122 | + "type": "string" |
| 3123 | + } |
| 3124 | + } |
| 3125 | + }, |
| 3126 | + "default": { |
| 3127 | + "description": "Error message indicating why the operation failed.", |
| 3128 | + "schema": { |
| 3129 | + "$ref": "#/definitions/StorageSyncError" |
| 3130 | + } |
| 3131 | + } |
| 3132 | + } |
| 3133 | + } |
3074 | 3134 | } |
3075 | 3135 | }, |
3076 | 3136 | "definitions": { |
|
3107 | 3167 | "details": { |
3108 | 3168 | "$ref": "#/definitions/StorageSyncErrorDetails", |
3109 | 3169 | "description": "Error details of the given entry." |
| 3170 | + }, |
| 3171 | + "innerError": { |
| 3172 | + "$ref": "#/definitions/StorageSyncInnerErrorDetails", |
| 3173 | + "description": "Inner error details of the given entry." |
3110 | 3174 | } |
3111 | 3175 | } |
3112 | 3176 | }, |
|
3125 | 3189 | "target": { |
3126 | 3190 | "type": "string", |
3127 | 3191 | "description": "Target of the given entry." |
| 3192 | + }, |
| 3193 | + "requestUri": { |
| 3194 | + "type": "string", |
| 3195 | + "description": "Request URI of the given entry." |
| 3196 | + }, |
| 3197 | + "exceptionType": { |
| 3198 | + "type": "string", |
| 3199 | + "description": "Exception type of the given entry." |
| 3200 | + }, |
| 3201 | + "httpMethod": { |
| 3202 | + "type": "string", |
| 3203 | + "description": "HTTP method of the given entry." |
| 3204 | + }, |
| 3205 | + "hashedMessage": { |
| 3206 | + "type": "string", |
| 3207 | + "description": "Hashed message of the given entry." |
| 3208 | + }, |
| 3209 | + "httpErrorCode": { |
| 3210 | + "type": "string", |
| 3211 | + "description": "HTTP error code of the given entry." |
| 3212 | + } |
| 3213 | + } |
| 3214 | + }, |
| 3215 | + "StorageSyncInnerErrorDetails": { |
| 3216 | + "type": "object", |
| 3217 | + "description": "Error Details object.", |
| 3218 | + "properties": { |
| 3219 | + "callStack": { |
| 3220 | + "type": "string", |
| 3221 | + "description": "Call stack of the error." |
| 3222 | + }, |
| 3223 | + "message": { |
| 3224 | + "type": "string", |
| 3225 | + "description": "Error message of the error." |
| 3226 | + }, |
| 3227 | + "innerException": { |
| 3228 | + "type": "string", |
| 3229 | + "description": "Exception of the inner error." |
| 3230 | + }, |
| 3231 | + "innerExceptionCallStack": { |
| 3232 | + "type": "string", |
| 3233 | + "description": "Call stack of the inner error." |
3128 | 3234 | } |
3129 | 3235 | } |
3130 | 3236 | }, |
|
3396 | 3502 | }, |
3397 | 3503 | "initialDownloadPolicy": { |
3398 | 3504 | "$ref": "#/definitions/InitialDownloadPolicy", |
3399 | | - "description": "Policy for how namespace and files are recalled during FastDr." |
| 3505 | + "description": "Policy for how namespace and files are recalled during FastDr.", |
| 3506 | + "default": "NamespaceThenModifiedFiles" |
3400 | 3507 | }, |
3401 | 3508 | "localCacheMode": { |
3402 | 3509 | "$ref": "#/definitions/LocalCacheMode", |
3403 | | - "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access." |
| 3510 | + "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access.", |
| 3511 | + "default": "UpdateLocallyCachedFiles" |
3404 | 3512 | } |
3405 | 3513 | } |
3406 | 3514 | }, |
|
3578 | 3686 | "origin": { |
3579 | 3687 | "type": "string", |
3580 | 3688 | "description": "The origin." |
| 3689 | + }, |
| 3690 | + "properties": { |
| 3691 | + "$ref": "#/definitions/OperationProperties", |
| 3692 | + "description": "Properties of the operations resource." |
3581 | 3693 | } |
3582 | 3694 | } |
3583 | 3695 | }, |
|
3625 | 3737 | } |
3626 | 3738 | } |
3627 | 3739 | }, |
| 3740 | + "OperationProperties": { |
| 3741 | + "type": "object", |
| 3742 | + "description": "Properties of the operations resource.", |
| 3743 | + "properties": { |
| 3744 | + "serviceSpecification": { |
| 3745 | + "$ref": "#/definitions/OperationResourceServiceSpecification", |
| 3746 | + "description": "Service specification for the operations resource." |
| 3747 | + } |
| 3748 | + } |
| 3749 | + }, |
| 3750 | + "OperationResourceServiceSpecification": { |
| 3751 | + "type": "object", |
| 3752 | + "description": "Service specification.", |
| 3753 | + "properties": { |
| 3754 | + "metricSpecifications": { |
| 3755 | + "type": "array", |
| 3756 | + "items": { |
| 3757 | + "$ref": "#/definitions/OperationResourceMetricSpecification" |
| 3758 | + }, |
| 3759 | + "description": "List of metric specifications." |
| 3760 | + } |
| 3761 | + } |
| 3762 | + }, |
| 3763 | + "OperationResourceMetricSpecification": { |
| 3764 | + "type": "object", |
| 3765 | + "description": "Operation Display Resource object.", |
| 3766 | + "properties": { |
| 3767 | + "name": { |
| 3768 | + "type": "string", |
| 3769 | + "description": "Name of the metric." |
| 3770 | + }, |
| 3771 | + "displayName": { |
| 3772 | + "type": "string", |
| 3773 | + "description": "Display name for the metric." |
| 3774 | + }, |
| 3775 | + "displayDescription": { |
| 3776 | + "type": "string", |
| 3777 | + "description": "Display description for the metric." |
| 3778 | + }, |
| 3779 | + "unit": { |
| 3780 | + "type": "string", |
| 3781 | + "description": "Unit for the metric." |
| 3782 | + }, |
| 3783 | + "aggregationType": { |
| 3784 | + "type": "string", |
| 3785 | + "description": "Aggregation type for the metric." |
| 3786 | + }, |
| 3787 | + "fillGapWithZero": { |
| 3788 | + "type": "boolean", |
| 3789 | + "description": "Fill gaps in the metric with zero." |
| 3790 | + }, |
| 3791 | + "dimensions": { |
| 3792 | + "type": "array", |
| 3793 | + "items": { |
| 3794 | + "$ref": "#/definitions/OperationResourceMetricSpecificationDimension" |
| 3795 | + }, |
| 3796 | + "description": "Dimensions for the metric specification." |
| 3797 | + } |
| 3798 | + } |
| 3799 | + }, |
| 3800 | + "OperationResourceMetricSpecificationDimension": { |
| 3801 | + "type": "object", |
| 3802 | + "description": "OperationResourceMetricSpecificationDimension object.", |
| 3803 | + "properties": { |
| 3804 | + "name": { |
| 3805 | + "type": "string", |
| 3806 | + "description": "Name of the dimension." |
| 3807 | + }, |
| 3808 | + "displayName": { |
| 3809 | + "type": "string", |
| 3810 | + "description": "Display name of the dimensions." |
| 3811 | + }, |
| 3812 | + "toBeExportedForShoebox": { |
| 3813 | + "type": "boolean", |
| 3814 | + "description": "Indicates metric should be exported for Shoebox." |
| 3815 | + } |
| 3816 | + } |
| 3817 | + }, |
3628 | 3818 | "CheckNameAvailabilityParameters": { |
3629 | 3819 | "properties": { |
3630 | 3820 | "name": { |
|
4017 | 4207 | "type": "string", |
4018 | 4208 | "description": "Registered Server Agent Version" |
4019 | 4209 | }, |
| 4210 | + "agentVersionStatus": { |
| 4211 | + "$ref": "#/definitions/RegisteredServerAgentVersionStatus", |
| 4212 | + "description": "Registered Server Agent Version Status", |
| 4213 | + "readOnly": true |
| 4214 | + }, |
| 4215 | + "agentVersionExpirationDate": { |
| 4216 | + "type": "string", |
| 4217 | + "format": "date-time", |
| 4218 | + "description": "Registered Server Agent Version Expiration Date", |
| 4219 | + "readOnly": true |
| 4220 | + }, |
4020 | 4221 | "serverOSVersion": { |
4021 | 4222 | "type": "string", |
4022 | 4223 | "description": "Registered Server OS Version" |
|
4375 | 4576 | }, |
4376 | 4577 | "description": "Array of per-item errors coming from the last sync session.", |
4377 | 4578 | "readOnly": true |
| 4579 | + }, |
| 4580 | + "lastSyncMode": { |
| 4581 | + "$ref": "#/definitions/ServerEndpointSyncMode", |
| 4582 | + "description": "Sync mode", |
| 4583 | + "readOnly": true |
4378 | 4584 | } |
4379 | 4585 | } |
4380 | 4586 | }, |
|
4422 | 4628 | "minimum": 0, |
4423 | 4629 | "description": "Total bytes (if available)", |
4424 | 4630 | "readOnly": true |
| 4631 | + }, |
| 4632 | + "syncMode": { |
| 4633 | + "$ref": "#/definitions/ServerEndpointSyncMode", |
| 4634 | + "description": "Sync mode", |
| 4635 | + "readOnly": true |
4425 | 4636 | } |
4426 | 4637 | } |
4427 | 4638 | }, |
|
4451 | 4662 | } |
4452 | 4663 | } |
4453 | 4664 | }, |
| 4665 | + "ServerEndpointSyncMode": { |
| 4666 | + "type": "string", |
| 4667 | + "description": "Sync mode for the server endpoint.", |
| 4668 | + "enum": [ |
| 4669 | + "Regular", |
| 4670 | + "NamespaceDownload", |
| 4671 | + "InitialUpload", |
| 4672 | + "SnapshotUpload", |
| 4673 | + "InitialFullDownload" |
| 4674 | + ], |
| 4675 | + "x-ms-enum": { |
| 4676 | + "name": "ServerEndpointSyncMode", |
| 4677 | + "modelAsString": true |
| 4678 | + } |
| 4679 | + }, |
4454 | 4680 | "PhysicalPath": { |
4455 | 4681 | "type": "string", |
4456 | 4682 | "description": "Server folder used for data synchronization" |
|
4630 | 4856 | }, |
4631 | 4857 | "description": "Operation status object" |
4632 | 4858 | }, |
| 4859 | + "LocationOperationStatus": { |
| 4860 | + "type": "object", |
| 4861 | + "properties": { |
| 4862 | + "id": { |
| 4863 | + "readOnly": true, |
| 4864 | + "type": "string", |
| 4865 | + "description": "Operation resource Id" |
| 4866 | + }, |
| 4867 | + "name": { |
| 4868 | + "readOnly": true, |
| 4869 | + "type": "string", |
| 4870 | + "description": "Operation Id" |
| 4871 | + }, |
| 4872 | + "status": { |
| 4873 | + "readOnly": true, |
| 4874 | + "type": "string", |
| 4875 | + "description": "Operation status" |
| 4876 | + }, |
| 4877 | + "startTime": { |
| 4878 | + "readOnly": true, |
| 4879 | + "type": "string", |
| 4880 | + "format": "date-time", |
| 4881 | + "description": "Start time of the operation" |
| 4882 | + }, |
| 4883 | + "endTime": { |
| 4884 | + "readOnly": true, |
| 4885 | + "type": "string", |
| 4886 | + "format": "date-time", |
| 4887 | + "description": "End time of the operation" |
| 4888 | + }, |
| 4889 | + "error": { |
| 4890 | + "readOnly": true, |
| 4891 | + "$ref": "#/definitions/StorageSyncApiError", |
| 4892 | + "description": "Error details." |
| 4893 | + }, |
| 4894 | + "percentComplete": { |
| 4895 | + "readOnly": true, |
| 4896 | + "type": "integer", |
| 4897 | + "format": "int32", |
| 4898 | + "description": "Percent complete." |
| 4899 | + } |
| 4900 | + }, |
| 4901 | + "description": "Operation status object" |
| 4902 | + }, |
4633 | 4903 | "ServerEndpointCloudTieringStatus": { |
4634 | 4904 | "type": "object", |
4635 | 4905 | "description": "Server endpoint cloud tiering status object.", |
|
4921 | 5191 | "readOnly": true |
4922 | 5192 | } |
4923 | 5193 | } |
| 5194 | + }, |
| 5195 | + "RegisteredServerAgentVersionStatus": { |
| 5196 | + "type": "string", |
| 5197 | + "description": "Type of the registered server agent version status", |
| 5198 | + "enum": [ |
| 5199 | + "Ok", |
| 5200 | + "NearExpiry", |
| 5201 | + "Expired", |
| 5202 | + "Blocked" |
| 5203 | + ], |
| 5204 | + "x-ms-enum": { |
| 5205 | + "name": "RegisteredServerAgentVersionStatus", |
| 5206 | + "modelAsString": true |
| 5207 | + } |
4924 | 5208 | } |
4925 | 5209 | }, |
4926 | 5210 | "parameters": { |
|
0 commit comments