Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async operation status for privatelink scopes - JEDI urgent #8344

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60",
"resourceGroupName": "MyResourceGroup",
"asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11",
"api-version": "2019-10-17-preview"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopeOperationStatuses/713192d7-503f-477a-9cfe-4efc3ee2bd11",
"name": "713192d7-503f-477a-9cfe-4efc3ee2bd11",
"startTime": "2017-01-01T13:13:13.933Z",
"endTime": "2017-01-01T16:13:13.933Z",
"status": "Succeeded"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand Down Expand Up @@ -89,7 +89,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand Down Expand Up @@ -131,7 +131,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand Down Expand Up @@ -172,7 +172,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand Down Expand Up @@ -218,7 +218,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand Down Expand Up @@ -267,7 +267,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand All @@ -284,6 +284,46 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}": {
"get": {
"x-ms-examples": {
"Get specific operation status": {
"$ref": "./examples/privateLinkScopeOperationStatuses.json"
}
},
"tags": [
"asyncOperations"
],
"operationId": "PrivateLinkScopeOperationStatus_Get",
"description": "Get the status of an azure asynchronous operation associated with a private link scope operation.",
"parameters": [
{
"name": "asyncOperationId",
"in": "path",
"required": true,
"type": "string",
"description": "The operation Id."
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK. Operation status.",
"schema": {
"$ref": "#/definitions/OperationStatus"
}
allenjzhang marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources": {
"get": {
"tags": [
Expand Down Expand Up @@ -764,17 +804,39 @@
}
},
"definitions": {
"ErrorResponse": {
"description": "Describe the format of an Error response.",
"OperationStatus": {
"description": "The status of operation.",
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
"id": {
"type": "string",
"description": "The operation Id."
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
"name": {
"type": "string",
"description": "The operation name."
},
"startTime": {
"type": "string",
arolshan marked this conversation as resolved.
Show resolved Hide resolved
"format": "date-time",
"x-nullable": true,
"description": "Start time of the job in standard ISO8601 format."
},
"endTime": {
"type": "string",
"format": "date-time",
"x-nullable": true,
"description": "End time of the job in standard ISO8601 format."
},
"status": {
arolshan marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"description": "The status of the operation."
},
"error": {
"type": "object",
"description": "The error detail of the operation if any.",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"x-nullable": true
}
}
},
Expand Down