log additionalProperties invalid type error only (#965)
* log additionalProperties invalid type error only * Delete unused swaggers * Fixed test * Bump version * Updated package version for beta * Updated param name * Updated pkg version for release
This commit is contained in:
Родитель
7af1579585
Коммит
a993efe883
|
@ -1,5 +1,10 @@
|
||||||
# Change Log - oav
|
# Change Log - oav
|
||||||
|
|
||||||
|
## 02/19/2023 3.2.6
|
||||||
|
|
||||||
|
- LiveValidator - logging INVALID_TYPE error for additionalProperties for RpaaS call
|
||||||
|
- TrafficValidator - bug fix about incorrect payload file path in html report
|
||||||
|
|
||||||
## 02/03/2023 3.2.5
|
## 02/03/2023 3.2.5
|
||||||
|
|
||||||
- Lock @apidevtools/swagger-parser@10.0.3 as 10.1.0 brings conflict of ajv package version
|
- Lock @apidevtools/swagger-parser@10.0.3 as 10.1.0 brings conflict of ajv package version
|
||||||
|
@ -7,7 +12,6 @@
|
||||||
- Support `--scope` option in static generator
|
- Support `--scope` option in static generator
|
||||||
- API Scenario
|
- API Scenario
|
||||||
- Skip create and delete resource group if specify resource group name
|
- Skip create and delete resource group if specify resource group name
|
||||||
- bug fix about incorrect payload file path in html report
|
|
||||||
|
|
||||||
## 01/30/2023 3.2.4
|
## 01/30/2023 3.2.4
|
||||||
|
|
||||||
|
|
|
@ -457,6 +457,7 @@ export class LiveValidator {
|
||||||
info,
|
info,
|
||||||
this.loader,
|
this.loader,
|
||||||
options.includeErrors,
|
options.includeErrors,
|
||||||
|
this.options.isArmCall,
|
||||||
this.logging
|
this.logging
|
||||||
);
|
);
|
||||||
} catch (reqValidationError) {
|
} catch (reqValidationError) {
|
||||||
|
|
|
@ -69,12 +69,13 @@ export interface LiveResponse {
|
||||||
|
|
||||||
export const validateSwaggerLiveRequest = async (
|
export const validateSwaggerLiveRequest = async (
|
||||||
request: LiveRequest,
|
request: LiveRequest,
|
||||||
info: OperationContext,
|
operationContext: OperationContext,
|
||||||
loader?: LiveValidatorLoader,
|
loader?: LiveValidatorLoader,
|
||||||
includeErrors?: ApiValidationErrorCode[],
|
includeErrors?: ApiValidationErrorCode[],
|
||||||
|
isArmCall?: boolean,
|
||||||
logging?: LoggingFn
|
logging?: LoggingFn
|
||||||
) => {
|
) => {
|
||||||
const { operation } = info.operationMatch!;
|
const { operation } = operationContext.operationMatch!;
|
||||||
const { body, query } = request;
|
const { body, query } = request;
|
||||||
const result: LiveValidationIssue[] = [];
|
const result: LiveValidationIssue[] = [];
|
||||||
|
|
||||||
|
@ -93,7 +94,7 @@ export const validateSwaggerLiveRequest = async (
|
||||||
LiveValidatorLoggingTypes.trace,
|
LiveValidatorLoggingTypes.trace,
|
||||||
"Oav.OperationValidator.validateSwaggerLiveRequest.loader.getRequestValidator",
|
"Oav.OperationValidator.validateSwaggerLiveRequest.loader.getRequestValidator",
|
||||||
undefined,
|
undefined,
|
||||||
info.validationRequest
|
operationContext.validationRequest
|
||||||
);
|
);
|
||||||
logging(
|
logging(
|
||||||
`On-demand build request validator`,
|
`On-demand build request validator`,
|
||||||
|
@ -101,16 +102,19 @@ export const validateSwaggerLiveRequest = async (
|
||||||
LiveValidatorLoggingTypes.perfTrace,
|
LiveValidatorLoggingTypes.perfTrace,
|
||||||
"Oav.OperationValidator.validateSwaggerLiveRequest.loader.getRequestValidator",
|
"Oav.OperationValidator.validateSwaggerLiveRequest.loader.getRequestValidator",
|
||||||
elapsedTime,
|
elapsedTime,
|
||||||
info.validationRequest
|
operationContext.validationRequest
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const pathParam = extractPathParamValue(info.operationMatch!);
|
const pathParam = extractPathParamValue(operationContext.operationMatch!);
|
||||||
transformMapValue(pathParam, operation._pathTransform);
|
transformMapValue(pathParam, operation._pathTransform);
|
||||||
transformMapValue(query, operation._queryTransform);
|
transformMapValue(query, operation._queryTransform);
|
||||||
const headers = transformLiveHeader(request.headers ?? {}, operation);
|
const headers = transformLiveHeader(request.headers ?? {}, operation);
|
||||||
validateContentType(operation.consumes!, headers, true, result);
|
validateContentType(operation.consumes!, headers, true, result);
|
||||||
|
|
||||||
|
// for rpaas calls, temp solution to log invalid_type errors for additional properties
|
||||||
|
// rather than returning the error to rpaas
|
||||||
const ctx = { isResponse: false, includeErrors: includeErrors as any };
|
const ctx = { isResponse: false, includeErrors: includeErrors as any };
|
||||||
const errors = validate(ctx, {
|
const errors = validate(ctx, {
|
||||||
path: pathParam,
|
path: pathParam,
|
||||||
|
@ -118,20 +122,28 @@ export const validateSwaggerLiveRequest = async (
|
||||||
headers,
|
headers,
|
||||||
query,
|
query,
|
||||||
});
|
});
|
||||||
schemaValidateIssueToLiveValidationIssue(errors, operation, ctx, result);
|
schemaValidateIssueToLiveValidationIssue(
|
||||||
|
errors,
|
||||||
|
operation,
|
||||||
|
ctx,
|
||||||
|
result,
|
||||||
|
operationContext,
|
||||||
|
isArmCall,
|
||||||
|
logging
|
||||||
|
);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const validateSwaggerLiveResponse = async (
|
export const validateSwaggerLiveResponse = async (
|
||||||
response: LiveResponse,
|
response: LiveResponse,
|
||||||
info: OperationContext,
|
operationContext: OperationContext,
|
||||||
loader?: LiveValidatorLoader,
|
loader?: LiveValidatorLoader,
|
||||||
includeErrors?: ApiValidationErrorCode[],
|
includeErrors?: ApiValidationErrorCode[],
|
||||||
isArmCall?: boolean,
|
isArmCall?: boolean,
|
||||||
logging?: LoggingFn
|
logging?: LoggingFn
|
||||||
) => {
|
) => {
|
||||||
const { operation } = info.operationMatch!;
|
const { operation } = operationContext.operationMatch!;
|
||||||
const { statusCode, body } = response;
|
const { statusCode, body } = response;
|
||||||
const rspDef = operation.responses;
|
const rspDef = operation.responses;
|
||||||
const result: LiveValidationIssue[] = [];
|
const result: LiveValidationIssue[] = [];
|
||||||
|
@ -161,7 +173,7 @@ export const validateSwaggerLiveResponse = async (
|
||||||
LiveValidatorLoggingTypes.trace,
|
LiveValidatorLoggingTypes.trace,
|
||||||
"Oav.OperationValidator.validateSwaggerLiveResponse.loader.getResponseValidator",
|
"Oav.OperationValidator.validateSwaggerLiveResponse.loader.getResponseValidator",
|
||||||
undefined,
|
undefined,
|
||||||
info.validationRequest
|
operationContext.validationRequest
|
||||||
);
|
);
|
||||||
logging(
|
logging(
|
||||||
`On-demand build request validator`,
|
`On-demand build request validator`,
|
||||||
|
@ -169,7 +181,7 @@ export const validateSwaggerLiveResponse = async (
|
||||||
LiveValidatorLoggingTypes.perfTrace,
|
LiveValidatorLoggingTypes.perfTrace,
|
||||||
"Oav.OperationValidator.validateSwaggerLiveResponse.loader.getResponseValidator",
|
"Oav.OperationValidator.validateSwaggerLiveResponse.loader.getResponseValidator",
|
||||||
elapsedTime,
|
elapsedTime,
|
||||||
info.validationRequest
|
operationContext.validationRequest
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,7 +204,15 @@ export const validateSwaggerLiveResponse = async (
|
||||||
headers,
|
headers,
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
schemaValidateIssueToLiveValidationIssue(errors, operation, ctx, result);
|
schemaValidateIssueToLiveValidationIssue(
|
||||||
|
errors,
|
||||||
|
operation,
|
||||||
|
ctx,
|
||||||
|
result,
|
||||||
|
operationContext,
|
||||||
|
isArmCall,
|
||||||
|
logging
|
||||||
|
);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
@ -262,7 +282,10 @@ export const schemaValidateIssueToLiveValidationIssue = (
|
||||||
input: SchemaValidateIssue[],
|
input: SchemaValidateIssue[],
|
||||||
operation: Operation,
|
operation: Operation,
|
||||||
ctx: SchemaValidateContext,
|
ctx: SchemaValidateContext,
|
||||||
output: LiveValidationIssue[]
|
output: LiveValidationIssue[],
|
||||||
|
operationContext: OperationContext,
|
||||||
|
isArmCall?: boolean,
|
||||||
|
logging?: LoggingFn
|
||||||
) => {
|
) => {
|
||||||
for (const i of input) {
|
for (const i of input) {
|
||||||
const issue = i as Writable<LiveValidationIssue>;
|
const issue = i as Writable<LiveValidationIssue>;
|
||||||
|
@ -276,16 +299,31 @@ export const schemaValidateIssueToLiveValidationIssue = (
|
||||||
|
|
||||||
let skipIssue = false;
|
let skipIssue = false;
|
||||||
issue.pathsInPayload = issue.jsonPathsInPayload.map((path, idx) => {
|
issue.pathsInPayload = issue.jsonPathsInPayload.map((path, idx) => {
|
||||||
const isMissingRequiredProperty = issue.code === "OBJECT_MISSING_REQUIRED_PROPERTY";
|
|
||||||
const isBodyIssue = path.startsWith(".body");
|
|
||||||
|
|
||||||
if (issue.code === "MISSING_RESOURCE_ID") {
|
if (issue.code === "MISSING_RESOURCE_ID") {
|
||||||
// ignore this error for sub level resources
|
// ignore this error for sub level resources
|
||||||
if (path.includes("properties")) {
|
if (path.includes("properties")) {
|
||||||
skipIssue = true;
|
skipIssue = true;
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
} else if (issue.code === "INVALID_TYPE" && isArmCall === false) {
|
||||||
|
if (issue.schemaPath.includes("additionalProperties")) {
|
||||||
|
skipIssue = true;
|
||||||
|
if (logging) {
|
||||||
|
logging(
|
||||||
|
`AdditionalProperties validation failed:${JSON.stringify(issue, undefined, 2)}`,
|
||||||
|
LiveValidatorLoggingLevels.error,
|
||||||
|
LiveValidatorLoggingTypes.trace,
|
||||||
|
"Oav.OperationValidator.schemaValidateIssueToLiveValidationIssue",
|
||||||
|
undefined,
|
||||||
|
operationContext.validationRequest
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const isMissingRequiredProperty = issue.code === "OBJECT_MISSING_REQUIRED_PROPERTY";
|
||||||
|
const isBodyIssue = path.startsWith(".body");
|
||||||
|
|
||||||
if (isBodyIssue && (path.length > 5 || !isMissingRequiredProperty)) {
|
if (isBodyIssue && (path.length > 5 || !isMissingRequiredProperty)) {
|
||||||
path = "$" + path.substr(5);
|
path = "$" + path.substr(5);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "oav",
|
"name": "oav",
|
||||||
"version": "3.2.5",
|
"version": "3.2.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "oav",
|
"name": "oav",
|
||||||
"version": "3.2.5",
|
"version": "3.2.6",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Microsoft Corporation",
|
"name": "Microsoft Corporation",
|
||||||
"email": "azsdkteam@microsoft.com",
|
"email": "azsdkteam@microsoft.com",
|
||||||
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
{
|
||||||
|
"liveRequest": {
|
||||||
|
"url": "https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer?api-version=2022-04-13-preview",
|
||||||
|
"method": "patch",
|
||||||
|
"headers": {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
"Content-Length": "845"
|
||||||
|
},
|
||||||
|
"body": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"count": 3,
|
||||||
|
"name": "test"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"liveResponse": {
|
||||||
|
"statusCode": "200",
|
||||||
|
"headers": {
|
||||||
|
"Cache-Control": "no-cache",
|
||||||
|
"Pragma": "no-cache",
|
||||||
|
"Content-Length": "1897",
|
||||||
|
"Content-Type": "application/json; charset=utf-8",
|
||||||
|
"Retry-After": "10",
|
||||||
|
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
|
||||||
|
"x-ms-request-id": "34fe1ee8-a992-4dd7-a7f9-9f93285c9a27",
|
||||||
|
"Server": "Microsoft-HTTPAPI/2.0",
|
||||||
|
"x-ms-correlation-request-id": "2c9f7754-58dd-4fcc-959a-4e3260e54f00"
|
||||||
|
},
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {
|
||||||
|
"count": 3,
|
||||||
|
"name": "test"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 1000,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,182 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "1.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"PrivateEndpoint": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ARM identifier for Private Endpoint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "The Private Endpoint resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnection": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
|
||||||
|
"x-ms-client-flatten": true,
|
||||||
|
"description": "Resource properties."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "./types.json#/definitions/Resource"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The Private Endpoint Connection resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"privateEndpoint": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpoint",
|
||||||
|
"description": "The resource of private end point."
|
||||||
|
},
|
||||||
|
"privateLinkServiceConnectionState": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkServiceConnectionState",
|
||||||
|
"description": "A collection of information about the state of the connection between service consumer and provider."
|
||||||
|
},
|
||||||
|
"provisioningState": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
|
||||||
|
"description": "The provisioning state of the private endpoint connection resource."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"privateLinkServiceConnectionState"
|
||||||
|
],
|
||||||
|
"description": "Properties of the PrivateEndpointConnectProperties."
|
||||||
|
},
|
||||||
|
"PrivateLinkServiceConnectionState": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
|
||||||
|
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The reason for approval/rejection of the connection."
|
||||||
|
},
|
||||||
|
"actionsRequired": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A message indicating if changes on the service provider require any updates on the consumer."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "A collection of information about the state of the connection between service consumer and provider."
|
||||||
|
},
|
||||||
|
"PrivateEndpointServiceConnectionStatus": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The private endpoint connection status.",
|
||||||
|
"enum": [
|
||||||
|
"Pending",
|
||||||
|
"Approved",
|
||||||
|
"Rejected"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "PrivateEndpointServiceConnectionStatus",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionProvisioningState": {
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"description": "The current provisioning state.",
|
||||||
|
"enum": [
|
||||||
|
"Succeeded",
|
||||||
|
"Creating",
|
||||||
|
"Deleting",
|
||||||
|
"Failed"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "PrivateEndpointConnectionProvisioningState",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PrivateLinkResource": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkResourceProperties",
|
||||||
|
"description": "Resource properties.",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "./types.json#/definitions/Resource"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A private link resource"
|
||||||
|
},
|
||||||
|
"PrivateLinkResourceProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"groupId": {
|
||||||
|
"description": "The private link resource group id.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"requiredMembers": {
|
||||||
|
"description": "The private link resource required member names.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"requiredZoneNames": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "The private link resource Private link DNS zone name."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Properties of a private link resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionListResult": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "Array of private endpoint connections",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnection"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "List of private endpoint connection associated with the specified storage account"
|
||||||
|
},
|
||||||
|
"PrivateLinkResourceListResult": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "Array of private link resources",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkResource"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "A list of private link resources"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"PrivateEndpointConnectionName": {
|
||||||
|
"name": "privateEndpointConnectionName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the private endpoint connection associated with the Azure resource",
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,570 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "1.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"Resource": {
|
||||||
|
"title": "Resource",
|
||||||
|
"description": "Common fields that are returned in the response for all Azure Resource Manager resources",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-azure-resource": true
|
||||||
|
},
|
||||||
|
"AzureEntityResource": {
|
||||||
|
"x-ms-client-name": "AzureEntityResource",
|
||||||
|
"title": "Entity Resource",
|
||||||
|
"description": "The resource model definition for an Azure Resource Manager resource with an etag.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"etag": {
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"description": "Resource Etag."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"TrackedResource": {
|
||||||
|
"title": "Tracked Resource",
|
||||||
|
"description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "Resource tags."
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "The geo-location where the resource lives"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"location"
|
||||||
|
],
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ProxyResource": {
|
||||||
|
"title": "Proxy Resource",
|
||||||
|
"description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
|
||||||
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ResourceModelWithAllowedPropertySet": {
|
||||||
|
"description": "The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "The geo-location where the resource lives"
|
||||||
|
},
|
||||||
|
"managedBy": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource."
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.",
|
||||||
|
"pattern": "^[-\\w\\._,\\(\\)]+$"
|
||||||
|
},
|
||||||
|
"etag": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. "
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "Resource tags."
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Identity"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"sku": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Sku"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"plan": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Plan"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-azure-resource": true
|
||||||
|
},
|
||||||
|
"Sku": {
|
||||||
|
"description": "The resource model definition representing SKU",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the SKU. Ex - P3. It is typically a letter+number code"
|
||||||
|
},
|
||||||
|
"tier": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Free",
|
||||||
|
"Basic",
|
||||||
|
"Standard",
|
||||||
|
"Premium"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "SkuTier",
|
||||||
|
"modelAsString": false
|
||||||
|
},
|
||||||
|
"description": "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT."
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. "
|
||||||
|
},
|
||||||
|
"family": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "If the service has different generations of hardware, for the same SKU, then that can be captured here."
|
||||||
|
},
|
||||||
|
"capacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Identity": {
|
||||||
|
"description": "Identity for the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"principalId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The principal ID of resource identity."
|
||||||
|
},
|
||||||
|
"tenantId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The tenant ID of resource."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity type.",
|
||||||
|
"enum": [
|
||||||
|
"SystemAssigned"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ResourceIdentityType",
|
||||||
|
"modelAsString": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Plan": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A user defined name of the 3rd Party Artifact that is being procured."
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic"
|
||||||
|
},
|
||||||
|
"product": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. "
|
||||||
|
},
|
||||||
|
"promotionCode": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact."
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The version of the desired product/artifact."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Plan for the resource.",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"publisher",
|
||||||
|
"product"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ErrorResponse": {
|
||||||
|
"title": "Error Response",
|
||||||
|
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error code."
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error message."
|
||||||
|
},
|
||||||
|
"target": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error target."
|
||||||
|
},
|
||||||
|
"details": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ErrorResponse"
|
||||||
|
},
|
||||||
|
"description": "The error details."
|
||||||
|
},
|
||||||
|
"additionalInfo": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ErrorAdditionalInfo"
|
||||||
|
},
|
||||||
|
"description": "The error additional info."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ErrorAdditionalInfo": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The additional info type."
|
||||||
|
},
|
||||||
|
"info": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "object",
|
||||||
|
"description": "The additional info."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "The resource management error additional info."
|
||||||
|
},
|
||||||
|
"Operation": {
|
||||||
|
"title": "REST API Operation",
|
||||||
|
"description": "Details of a REST API operation, returned from the Resource Provider Operations API",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"isDataAction": {
|
||||||
|
"description": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.",
|
||||||
|
"type": "boolean",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"display": {
|
||||||
|
"description": "Localized display information for this particular operation.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"provider": {
|
||||||
|
"description": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"resource": {
|
||||||
|
"description": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"operation": {
|
||||||
|
"description": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"description": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"description": "The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"enum": [
|
||||||
|
"user",
|
||||||
|
"system",
|
||||||
|
"user,system"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "Origin",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"actionType": {
|
||||||
|
"description": "Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"enum": [
|
||||||
|
"Internal"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ActionType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"OperationListResult": {
|
||||||
|
"description": "A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Operation"
|
||||||
|
},
|
||||||
|
"description": "List of operations supported by the resource provider",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"nextLink": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "URL to get the next set of operation list results (if there are any).",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locationData": {
|
||||||
|
"description": "Metadata pertaining to the geographic location of the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"description": "A canonical name for the geographic or physical location."
|
||||||
|
},
|
||||||
|
"city": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The city or locality where the resource is located."
|
||||||
|
},
|
||||||
|
"district": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The district, state, or province where the resource is located."
|
||||||
|
},
|
||||||
|
"countryOrRegion": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The country or region where the resource is located"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"systemData": {
|
||||||
|
"description": "Metadata pertaining to creation and last modification of the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"readOnly": true,
|
||||||
|
"properties": {
|
||||||
|
"createdBy": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity that created the resource."
|
||||||
|
},
|
||||||
|
"createdByType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of identity that created the resource.",
|
||||||
|
"enum": [
|
||||||
|
"User",
|
||||||
|
"Application",
|
||||||
|
"ManagedIdentity",
|
||||||
|
"Key"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "createdByType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"createdAt": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The timestamp of resource creation (UTC)."
|
||||||
|
},
|
||||||
|
"lastModifiedBy": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity that last modified the resource."
|
||||||
|
},
|
||||||
|
"lastModifiedByType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of identity that last modified the resource.",
|
||||||
|
"enum": [
|
||||||
|
"User",
|
||||||
|
"Application",
|
||||||
|
"ManagedIdentity",
|
||||||
|
"Key"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "createdByType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lastModifiedAt": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The timestamp of resource last modification (UTC)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"encryptionProperties": {
|
||||||
|
"description": "Configuration of key for data encryption",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"description": "Indicates whether or not the encryption is enabled for container registry.",
|
||||||
|
"enum": [
|
||||||
|
"enabled",
|
||||||
|
"disabled"
|
||||||
|
],
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "EncryptionStatus",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"keyVaultProperties": {
|
||||||
|
"$ref": "#/definitions/KeyVaultProperties",
|
||||||
|
"description": "Key vault properties."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"KeyVaultProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"keyIdentifier": {
|
||||||
|
"description": "Key vault uri to access the encryption key.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"description": "The client ID of the identity which will be used to access key vault.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"SubscriptionIdParameter": {
|
||||||
|
"name": "subscriptionId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the target subscription.",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"ApiVersionParameter": {
|
||||||
|
"name": "api-version",
|
||||||
|
"in": "query",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The API version to use for this operation.",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"ResourceGroupNameParameter": {
|
||||||
|
"name": "resourceGroupName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource group. The name is case insensitive.",
|
||||||
|
"minLength": 1,
|
||||||
|
"maxLength": 90,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,182 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "2.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"PrivateEndpoint": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ARM identifier for Private Endpoint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "The Private Endpoint resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnection": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
|
||||||
|
"x-ms-client-flatten": true,
|
||||||
|
"description": "Resource properties."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "./types.json#/definitions/Resource"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The Private Endpoint Connection resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"privateEndpoint": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpoint",
|
||||||
|
"description": "The resource of private end point."
|
||||||
|
},
|
||||||
|
"privateLinkServiceConnectionState": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkServiceConnectionState",
|
||||||
|
"description": "A collection of information about the state of the connection between service consumer and provider."
|
||||||
|
},
|
||||||
|
"provisioningState": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
|
||||||
|
"description": "The provisioning state of the private endpoint connection resource."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"privateLinkServiceConnectionState"
|
||||||
|
],
|
||||||
|
"description": "Properties of the PrivateEndpointConnectProperties."
|
||||||
|
},
|
||||||
|
"PrivateLinkServiceConnectionState": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
|
||||||
|
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The reason for approval/rejection of the connection."
|
||||||
|
},
|
||||||
|
"actionsRequired": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A message indicating if changes on the service provider require any updates on the consumer."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "A collection of information about the state of the connection between service consumer and provider."
|
||||||
|
},
|
||||||
|
"PrivateEndpointServiceConnectionStatus": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The private endpoint connection status.",
|
||||||
|
"enum": [
|
||||||
|
"Pending",
|
||||||
|
"Approved",
|
||||||
|
"Rejected"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "PrivateEndpointServiceConnectionStatus",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionProvisioningState": {
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"description": "The current provisioning state.",
|
||||||
|
"enum": [
|
||||||
|
"Succeeded",
|
||||||
|
"Creating",
|
||||||
|
"Deleting",
|
||||||
|
"Failed"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "PrivateEndpointConnectionProvisioningState",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PrivateLinkResource": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkResourceProperties",
|
||||||
|
"description": "Resource properties.",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "./types.json#/definitions/Resource"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A private link resource"
|
||||||
|
},
|
||||||
|
"PrivateLinkResourceProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"groupId": {
|
||||||
|
"description": "The private link resource group id.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"requiredMembers": {
|
||||||
|
"description": "The private link resource required member names.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"requiredZoneNames": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "The private link resource Private link DNS zone name."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Properties of a private link resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionListResult": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "Array of private endpoint connections",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnection"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "List of private endpoint connection associated with the specified storage account"
|
||||||
|
},
|
||||||
|
"PrivateLinkResourceListResult": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "Array of private link resources",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkResource"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "A list of private link resources"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"PrivateEndpointConnectionName": {
|
||||||
|
"name": "privateEndpointConnectionName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the private endpoint connection associated with the Azure resource",
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,686 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "2.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"Resource": {
|
||||||
|
"title": "Resource",
|
||||||
|
"description": "Common fields that are returned in the response for all Azure Resource Manager resources",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-azure-resource": true
|
||||||
|
},
|
||||||
|
"AzureEntityResource": {
|
||||||
|
"x-ms-client-name": "AzureEntityResource",
|
||||||
|
"title": "Entity Resource",
|
||||||
|
"description": "The resource model definition for an Azure Resource Manager resource with an etag.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"etag": {
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"description": "Resource Etag."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"TrackedResource": {
|
||||||
|
"title": "Tracked Resource",
|
||||||
|
"description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "Resource tags."
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "The geo-location where the resource lives"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"location"
|
||||||
|
],
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ProxyResource": {
|
||||||
|
"title": "Proxy Resource",
|
||||||
|
"description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
|
||||||
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ResourceModelWithAllowedPropertySet": {
|
||||||
|
"description": "The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "The geo-location where the resource lives"
|
||||||
|
},
|
||||||
|
"managedBy": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource."
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.",
|
||||||
|
"pattern": "^[-\\w\\._,\\(\\)]+$"
|
||||||
|
},
|
||||||
|
"etag": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. "
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "Resource tags."
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Identity"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"sku": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Sku"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"plan": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Plan"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-azure-resource": true
|
||||||
|
},
|
||||||
|
"Sku": {
|
||||||
|
"description": "The resource model definition representing SKU",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the SKU. Ex - P3. It is typically a letter+number code"
|
||||||
|
},
|
||||||
|
"tier": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Free",
|
||||||
|
"Basic",
|
||||||
|
"Standard",
|
||||||
|
"Premium"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "SkuTier",
|
||||||
|
"modelAsString": false
|
||||||
|
},
|
||||||
|
"description": "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT."
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. "
|
||||||
|
},
|
||||||
|
"family": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "If the service has different generations of hardware, for the same SKU, then that can be captured here."
|
||||||
|
},
|
||||||
|
"capacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Identity": {
|
||||||
|
"description": "Identity for the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"principalId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The principal ID of resource identity."
|
||||||
|
},
|
||||||
|
"tenantId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The tenant ID of resource."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity type.",
|
||||||
|
"enum": [
|
||||||
|
"SystemAssigned"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ResourceIdentityType",
|
||||||
|
"modelAsString": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Plan": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A user defined name of the 3rd Party Artifact that is being procured."
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic"
|
||||||
|
},
|
||||||
|
"product": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. "
|
||||||
|
},
|
||||||
|
"promotionCode": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact."
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The version of the desired product/artifact."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Plan for the resource.",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"publisher",
|
||||||
|
"product"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ErrorDetail": {
|
||||||
|
"description": "The error detail.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error code."
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error message."
|
||||||
|
},
|
||||||
|
"target": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error target."
|
||||||
|
},
|
||||||
|
"details": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ErrorDetail"
|
||||||
|
},
|
||||||
|
"description": "The error details."
|
||||||
|
},
|
||||||
|
"additionalInfo": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ErrorAdditionalInfo"
|
||||||
|
},
|
||||||
|
"description": "The error additional info."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ErrorResponse": {
|
||||||
|
"title": "Error response",
|
||||||
|
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"error": {
|
||||||
|
"description": "The error object.",
|
||||||
|
"$ref": "#/definitions/ErrorDetail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ErrorAdditionalInfo": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The additional info type."
|
||||||
|
},
|
||||||
|
"info": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "object",
|
||||||
|
"description": "The additional info."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "The resource management error additional info."
|
||||||
|
},
|
||||||
|
"Operation": {
|
||||||
|
"title": "REST API Operation",
|
||||||
|
"description": "Details of a REST API operation, returned from the Resource Provider Operations API",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"isDataAction": {
|
||||||
|
"description": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.",
|
||||||
|
"type": "boolean",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"display": {
|
||||||
|
"description": "Localized display information for this particular operation.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"provider": {
|
||||||
|
"description": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"resource": {
|
||||||
|
"description": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"operation": {
|
||||||
|
"description": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"description": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"description": "The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"enum": [
|
||||||
|
"user",
|
||||||
|
"system",
|
||||||
|
"user,system"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "Origin",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"actionType": {
|
||||||
|
"description": "Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"enum": [
|
||||||
|
"Internal"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ActionType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"OperationListResult": {
|
||||||
|
"description": "A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Operation"
|
||||||
|
},
|
||||||
|
"description": "List of operations supported by the resource provider",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"nextLink": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "URL to get the next set of operation list results (if there are any).",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"OperationStatusResult": {
|
||||||
|
"description": "The current status of an async operation.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"status"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"description": "Fully qualified ID for the async operation.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the async operation.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Operation status.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"percentComplete": {
|
||||||
|
"description": "Percent of the operation that is complete.",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 100
|
||||||
|
},
|
||||||
|
"startTime": {
|
||||||
|
"description": "The start time of the operation.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"endTime": {
|
||||||
|
"description": "The end time of the operation.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"operations": {
|
||||||
|
"description": "The operations list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/OperationStatusResult"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"description": "If present, details of the operation error.",
|
||||||
|
"$ref": "#/definitions/ErrorDetail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locationData": {
|
||||||
|
"description": "Metadata pertaining to the geographic location of the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"description": "A canonical name for the geographic or physical location."
|
||||||
|
},
|
||||||
|
"city": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The city or locality where the resource is located."
|
||||||
|
},
|
||||||
|
"district": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The district, state, or province where the resource is located."
|
||||||
|
},
|
||||||
|
"countryOrRegion": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The country or region where the resource is located"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"systemData": {
|
||||||
|
"description": "Metadata pertaining to creation and last modification of the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"readOnly": true,
|
||||||
|
"properties": {
|
||||||
|
"createdBy": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity that created the resource."
|
||||||
|
},
|
||||||
|
"createdByType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of identity that created the resource.",
|
||||||
|
"enum": [
|
||||||
|
"User",
|
||||||
|
"Application",
|
||||||
|
"ManagedIdentity",
|
||||||
|
"Key"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "createdByType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"createdAt": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The timestamp of resource creation (UTC)."
|
||||||
|
},
|
||||||
|
"lastModifiedBy": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity that last modified the resource."
|
||||||
|
},
|
||||||
|
"lastModifiedByType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of identity that last modified the resource.",
|
||||||
|
"enum": [
|
||||||
|
"User",
|
||||||
|
"Application",
|
||||||
|
"ManagedIdentity",
|
||||||
|
"Key"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "createdByType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lastModifiedAt": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The timestamp of resource last modification (UTC)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"encryptionProperties": {
|
||||||
|
"description": "Configuration of key for data encryption",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"description": "Indicates whether or not the encryption is enabled for container registry.",
|
||||||
|
"enum": [
|
||||||
|
"enabled",
|
||||||
|
"disabled"
|
||||||
|
],
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "EncryptionStatus",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"keyVaultProperties": {
|
||||||
|
"$ref": "#/definitions/KeyVaultProperties",
|
||||||
|
"description": "Key vault properties."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"KeyVaultProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"keyIdentifier": {
|
||||||
|
"description": "Key vault uri to access the encryption key.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"description": "The client ID of the identity which will be used to access key vault.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CheckNameAvailabilityRequest": {
|
||||||
|
"description": "The check availability request body.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the resource for which availability needs to be checked.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "The resource type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CheckNameAvailabilityResponse": {
|
||||||
|
"description": "The check availability result.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"nameAvailable": {
|
||||||
|
"description": "Indicates if the resource name is available.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "The reason why the given name is not available.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Invalid",
|
||||||
|
"AlreadyExists"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "CheckNameAvailabilityReason",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Detailed reason why the given name is available.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"SubscriptionIdParameter": {
|
||||||
|
"name": "subscriptionId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the target subscription.",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"ApiVersionParameter": {
|
||||||
|
"name": "api-version",
|
||||||
|
"in": "query",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The API version to use for this operation.",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"ResourceGroupNameParameter": {
|
||||||
|
"name": "resourceGroupName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource group. The name is case insensitive.",
|
||||||
|
"minLength": 1,
|
||||||
|
"maxLength": 90,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
},
|
||||||
|
"OperationIdParameter": {
|
||||||
|
"name": "operationId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of an ongoing async operation.",
|
||||||
|
"minLength": 1,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
},
|
||||||
|
"LocationParameter": {
|
||||||
|
"name": "location",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of Azure region.",
|
||||||
|
"minLength": 1,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,113 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "3.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"UserAssignedIdentities": {
|
||||||
|
"title": "User-Assigned Identities",
|
||||||
|
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"$ref": "#/definitions/UserAssignedIdentity"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"UserAssignedIdentity": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "User assigned identity properties",
|
||||||
|
"properties": {
|
||||||
|
"principalId": {
|
||||||
|
"description": "The principal ID of the assigned identity.",
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"clientId": {
|
||||||
|
"description": "The client ID of the assigned identity.",
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ManagedServiceIdentityType": {
|
||||||
|
"description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
|
||||||
|
"enum": [
|
||||||
|
"None",
|
||||||
|
"SystemAssigned",
|
||||||
|
"UserAssigned",
|
||||||
|
"SystemAssigned,UserAssigned"
|
||||||
|
],
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ManagedServiceIdentityType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ManagedServiceIdentity": {
|
||||||
|
"description": "Managed service identity (system assigned and/or user assigned identities)",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"principalId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string",
|
||||||
|
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
|
||||||
|
},
|
||||||
|
"tenantId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string",
|
||||||
|
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/definitions/ManagedServiceIdentityType"
|
||||||
|
},
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"$ref": "#/definitions/UserAssignedIdentities"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"SystemAssignedServiceIdentityType": {
|
||||||
|
"description": "Type of managed service identity (either system assigned, or none).",
|
||||||
|
"enum": [
|
||||||
|
"None",
|
||||||
|
"SystemAssigned"
|
||||||
|
],
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "SystemAssignedServiceIdentityType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"SystemAssignedServiceIdentity": {
|
||||||
|
"description": "Managed service identity (either system assigned, or none)",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"principalId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string",
|
||||||
|
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
|
||||||
|
},
|
||||||
|
"tenantId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string",
|
||||||
|
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/definitions/SystemAssignedServiceIdentityType"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,182 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "3.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"PrivateEndpoint": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ARM identifier for Private Endpoint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "The Private Endpoint resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnection": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
|
||||||
|
"x-ms-client-flatten": true,
|
||||||
|
"description": "Resource properties."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "./types.json#/definitions/Resource"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The Private Endpoint Connection resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"privateEndpoint": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpoint",
|
||||||
|
"description": "The resource of private end point."
|
||||||
|
},
|
||||||
|
"privateLinkServiceConnectionState": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkServiceConnectionState",
|
||||||
|
"description": "A collection of information about the state of the connection between service consumer and provider."
|
||||||
|
},
|
||||||
|
"provisioningState": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
|
||||||
|
"description": "The provisioning state of the private endpoint connection resource."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"privateLinkServiceConnectionState"
|
||||||
|
],
|
||||||
|
"description": "Properties of the PrivateEndpointConnectProperties."
|
||||||
|
},
|
||||||
|
"PrivateLinkServiceConnectionState": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
|
||||||
|
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The reason for approval/rejection of the connection."
|
||||||
|
},
|
||||||
|
"actionsRequired": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A message indicating if changes on the service provider require any updates on the consumer."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "A collection of information about the state of the connection between service consumer and provider."
|
||||||
|
},
|
||||||
|
"PrivateEndpointServiceConnectionStatus": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The private endpoint connection status.",
|
||||||
|
"enum": [
|
||||||
|
"Pending",
|
||||||
|
"Approved",
|
||||||
|
"Rejected"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "PrivateEndpointServiceConnectionStatus",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionProvisioningState": {
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"description": "The current provisioning state.",
|
||||||
|
"enum": [
|
||||||
|
"Succeeded",
|
||||||
|
"Creating",
|
||||||
|
"Deleting",
|
||||||
|
"Failed"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "PrivateEndpointConnectionProvisioningState",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PrivateLinkResource": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkResourceProperties",
|
||||||
|
"description": "Resource properties.",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "./types.json#/definitions/Resource"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A private link resource"
|
||||||
|
},
|
||||||
|
"PrivateLinkResourceProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"groupId": {
|
||||||
|
"description": "The private link resource group id.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"requiredMembers": {
|
||||||
|
"description": "The private link resource required member names.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"requiredZoneNames": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "The private link resource Private link DNS zone name."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Properties of a private link resource."
|
||||||
|
},
|
||||||
|
"PrivateEndpointConnectionListResult": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "Array of private endpoint connections",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/PrivateEndpointConnection"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "List of private endpoint connection associated with the specified storage account"
|
||||||
|
},
|
||||||
|
"PrivateLinkResourceListResult": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "Array of private link resources",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/PrivateLinkResource"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "A list of private link resources"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"PrivateEndpointConnectionName": {
|
||||||
|
"name": "privateEndpointConnectionName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the private endpoint connection associated with the Azure resource",
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,710 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "3.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"Resource": {
|
||||||
|
"title": "Resource",
|
||||||
|
"description": "Common fields that are returned in the response for all Azure Resource Manager resources",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
|
||||||
|
},
|
||||||
|
"systemData": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "object",
|
||||||
|
"description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
|
||||||
|
"$ref": "#/definitions/systemData"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-azure-resource": true
|
||||||
|
},
|
||||||
|
"AzureEntityResource": {
|
||||||
|
"x-ms-client-name": "AzureEntityResource",
|
||||||
|
"title": "Entity Resource",
|
||||||
|
"description": "The resource model definition for an Azure Resource Manager resource with an etag.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"etag": {
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"description": "Resource Etag."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"TrackedResource": {
|
||||||
|
"title": "Tracked Resource",
|
||||||
|
"description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "Resource tags."
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "The geo-location where the resource lives"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"location"
|
||||||
|
],
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ProxyResource": {
|
||||||
|
"title": "Proxy Resource",
|
||||||
|
"description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
|
||||||
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Resource"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ResourceModelWithAllowedPropertySet": {
|
||||||
|
"description": "The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "The geo-location where the resource lives"
|
||||||
|
},
|
||||||
|
"managedBy": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource."
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.",
|
||||||
|
"pattern": "^[-\\w\\._,\\(\\)]+$"
|
||||||
|
},
|
||||||
|
"etag": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. "
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x-ms-mutability": [
|
||||||
|
"read",
|
||||||
|
"create",
|
||||||
|
"update"
|
||||||
|
],
|
||||||
|
"description": "Resource tags."
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Identity"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"sku": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Sku"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"plan": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Plan"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-azure-resource": true
|
||||||
|
},
|
||||||
|
"Sku": {
|
||||||
|
"description": "The resource model definition representing SKU",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the SKU. Ex - P3. It is typically a letter+number code"
|
||||||
|
},
|
||||||
|
"tier": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Free",
|
||||||
|
"Basic",
|
||||||
|
"Standard",
|
||||||
|
"Premium"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "SkuTier",
|
||||||
|
"modelAsString": false
|
||||||
|
},
|
||||||
|
"description": "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT."
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. "
|
||||||
|
},
|
||||||
|
"family": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "If the service has different generations of hardware, for the same SKU, then that can be captured here."
|
||||||
|
},
|
||||||
|
"capacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Identity": {
|
||||||
|
"description": "Identity for the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"principalId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The principal ID of resource identity."
|
||||||
|
},
|
||||||
|
"tenantId": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The tenant ID of resource."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity type.",
|
||||||
|
"enum": [
|
||||||
|
"SystemAssigned"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ResourceIdentityType",
|
||||||
|
"modelAsString": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Plan": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A user defined name of the 3rd Party Artifact that is being procured."
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic"
|
||||||
|
},
|
||||||
|
"product": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. "
|
||||||
|
},
|
||||||
|
"promotionCode": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact."
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The version of the desired product/artifact."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Plan for the resource.",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"publisher",
|
||||||
|
"product"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ErrorDetail": {
|
||||||
|
"description": "The error detail.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error code."
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error message."
|
||||||
|
},
|
||||||
|
"target": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The error target."
|
||||||
|
},
|
||||||
|
"details": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ErrorDetail"
|
||||||
|
},
|
||||||
|
"description": "The error details."
|
||||||
|
},
|
||||||
|
"additionalInfo": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ErrorAdditionalInfo"
|
||||||
|
},
|
||||||
|
"description": "The error additional info."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ErrorResponse": {
|
||||||
|
"title": "Error response",
|
||||||
|
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"error": {
|
||||||
|
"description": "The error object.",
|
||||||
|
"$ref": "#/definitions/ErrorDetail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ErrorAdditionalInfo": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The additional info type."
|
||||||
|
},
|
||||||
|
"info": {
|
||||||
|
"readOnly": true,
|
||||||
|
"type": "object",
|
||||||
|
"description": "The additional info."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "The resource management error additional info."
|
||||||
|
},
|
||||||
|
"Operation": {
|
||||||
|
"title": "REST API Operation",
|
||||||
|
"description": "Details of a REST API operation, returned from the Resource Provider Operations API",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"isDataAction": {
|
||||||
|
"description": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.",
|
||||||
|
"type": "boolean",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"display": {
|
||||||
|
"description": "Localized display information for this particular operation.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"provider": {
|
||||||
|
"description": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"resource": {
|
||||||
|
"description": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"operation": {
|
||||||
|
"description": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"description": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"description": "The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"enum": [
|
||||||
|
"user",
|
||||||
|
"system",
|
||||||
|
"user,system"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "Origin",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"actionType": {
|
||||||
|
"description": "Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.",
|
||||||
|
"type": "string",
|
||||||
|
"readOnly": true,
|
||||||
|
"enum": [
|
||||||
|
"Internal"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "ActionType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"OperationListResult": {
|
||||||
|
"description": "A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Operation"
|
||||||
|
},
|
||||||
|
"description": "List of operations supported by the resource provider",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"nextLink": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "URL to get the next set of operation list results (if there are any).",
|
||||||
|
"readOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"OperationStatusResult": {
|
||||||
|
"description": "The current status of an async operation.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"status"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"description": "Fully qualified ID for the async operation.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the async operation.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Operation status.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"percentComplete": {
|
||||||
|
"description": "Percent of the operation that is complete.",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 100
|
||||||
|
},
|
||||||
|
"startTime": {
|
||||||
|
"description": "The start time of the operation.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"endTime": {
|
||||||
|
"description": "The end time of the operation.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"operations": {
|
||||||
|
"description": "The operations list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/OperationStatusResult"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"description": "If present, details of the operation error.",
|
||||||
|
"$ref": "#/definitions/ErrorDetail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locationData": {
|
||||||
|
"description": "Metadata pertaining to the geographic location of the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"description": "A canonical name for the geographic or physical location."
|
||||||
|
},
|
||||||
|
"city": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The city or locality where the resource is located."
|
||||||
|
},
|
||||||
|
"district": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The district, state, or province where the resource is located."
|
||||||
|
},
|
||||||
|
"countryOrRegion": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The country or region where the resource is located"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"systemData": {
|
||||||
|
"description": "Metadata pertaining to creation and last modification of the resource.",
|
||||||
|
"type": "object",
|
||||||
|
"readOnly": true,
|
||||||
|
"properties": {
|
||||||
|
"createdBy": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity that created the resource."
|
||||||
|
},
|
||||||
|
"createdByType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of identity that created the resource.",
|
||||||
|
"enum": [
|
||||||
|
"User",
|
||||||
|
"Application",
|
||||||
|
"ManagedIdentity",
|
||||||
|
"Key"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "createdByType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"createdAt": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The timestamp of resource creation (UTC)."
|
||||||
|
},
|
||||||
|
"lastModifiedBy": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The identity that last modified the resource."
|
||||||
|
},
|
||||||
|
"lastModifiedByType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of identity that last modified the resource.",
|
||||||
|
"enum": [
|
||||||
|
"User",
|
||||||
|
"Application",
|
||||||
|
"ManagedIdentity",
|
||||||
|
"Key"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "createdByType",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lastModifiedAt": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The timestamp of resource last modification (UTC)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"encryptionProperties": {
|
||||||
|
"description": "Configuration of key for data encryption",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"description": "Indicates whether or not the encryption is enabled for the Azure resource.",
|
||||||
|
"enum": [
|
||||||
|
"enabled",
|
||||||
|
"disabled"
|
||||||
|
],
|
||||||
|
"type": "string",
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "EncryptionStatus",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"keyVaultProperties": {
|
||||||
|
"$ref": "#/definitions/KeyVaultProperties",
|
||||||
|
"description": "Key vault properties."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"KeyVaultProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"keyIdentifier": {
|
||||||
|
"description": "Key vault uri to access the encryption key along with version.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"description": "The client ID of the identity which will be used to access key vault.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CheckNameAvailabilityRequest": {
|
||||||
|
"description": "The check availability request body.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the resource for which availability needs to be checked.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "The resource type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CheckNameAvailabilityResponse": {
|
||||||
|
"description": "The check availability result.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"nameAvailable": {
|
||||||
|
"description": "Indicates if the resource name is available.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "The reason why the given name is not available.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Invalid",
|
||||||
|
"AlreadyExists"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "CheckNameAvailabilityReason",
|
||||||
|
"modelAsString": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Detailed reason why the given name is available.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"SubscriptionIdParameter": {
|
||||||
|
"name": "subscriptionId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the target subscription.",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"ApiVersionParameter": {
|
||||||
|
"name": "api-version",
|
||||||
|
"in": "query",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The API version to use for this operation.",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"ResourceGroupNameParameter": {
|
||||||
|
"name": "resourceGroupName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource group. The name is case insensitive.",
|
||||||
|
"minLength": 1,
|
||||||
|
"maxLength": 90,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
},
|
||||||
|
"OperationIdParameter": {
|
||||||
|
"name": "operationId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of an ongoing async operation.",
|
||||||
|
"minLength": 1,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
},
|
||||||
|
"LocationParameter": {
|
||||||
|
"name": "location",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of Azure region.",
|
||||||
|
"minLength": 1,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
},
|
||||||
|
"ResourceProviderNamespaceParameter": {
|
||||||
|
"name": "resourceProviderNamespace",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The namespace of the resource provider. The name is case insensitive.",
|
||||||
|
"minLength": 1,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
},
|
||||||
|
"ResourceTypeParameter": {
|
||||||
|
"name": "resourceType",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The resource type provided by the resource provider. The name is case insensitive.",
|
||||||
|
"minLength": 1,
|
||||||
|
"x-ms-parameter-location": "method"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"version": "1.0",
|
||||||
|
"title": "Common types"
|
||||||
|
},
|
||||||
|
"paths": {},
|
||||||
|
"definitions": {
|
||||||
|
"JSONWebKey": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kty"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"alg": {
|
||||||
|
"description": "The \"alg\" (algorithm) parameter identifies the algorithm intended for\nuse with the key. The values used should either be registered in the\nIANA \"JSON Web Signature and Encryption Algorithms\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"crv": {
|
||||||
|
"description": "The \"crv\" (curve) parameter identifies the curve type",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"d": {
|
||||||
|
"description": "RSA private exponent or ECC private key",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"dp": {
|
||||||
|
"description": "RSA Private Key Parameter",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"dq": {
|
||||||
|
"description": "RSA Private Key Parameter",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"e": {
|
||||||
|
"description": "RSA public exponent, in Base64",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"k": {
|
||||||
|
"description": "Symmetric key",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kid": {
|
||||||
|
"description": "The \"kid\" (key ID) parameter is used to match a specific key. This\nis used, for instance, to choose among a set of keys within a JWK Set\nduring key rollover. The structure of the \"kid\" value is\nunspecified. When \"kid\" values are used within a JWK Set, different\nkeys within the JWK Set SHOULD use distinct \"kid\" values. (One\nexample in which different keys might use the same \"kid\" value is if\nthey have different \"kty\" (key type) values but are considered to be\nequivalent alternatives by the application using them.) The \"kid\"\nvalue is a case-sensitive string.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kty": {
|
||||||
|
"description": "The \"kty\" (key type) parameter identifies the cryptographic algorithm\nfamily used with the key, such as \"RSA\" or \"EC\". \"kty\" values should\neither be registered in the IANA \"JSON Web Key Types\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name. The \"kty\" value is a case-sensitive string.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"n": {
|
||||||
|
"description": "RSA modulus, in Base64",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"p": {
|
||||||
|
"description": "RSA secret prime",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"q": {
|
||||||
|
"description": "RSA secret prime, with p < q",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"qi": {
|
||||||
|
"description": "RSA Private Key Parameter",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"use": {
|
||||||
|
"description": "Use (\"public key use\") identifies the intended use of\nthe public key. The \"use\" parameter is employed to indicate whether\na public key is used for encrypting data or verifying the signature\non data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x": {
|
||||||
|
"description": "X coordinate for the Elliptic Curve point",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"x5c": {
|
||||||
|
"description": "The \"x5c\" (X.509 certificate chain) parameter contains a chain of one\nor more PKIX certificates [RFC5280]. The certificate chain is\nrepresented as a JSON array of certificate value strings. Each\nstring in the array is a base64-encoded (Section 4 of [RFC4648] --\nnot base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.\nThe PKIX certificate containing the key value MUST be the first\ncertificate.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"y": {
|
||||||
|
"description": "Y coordinate for the Elliptic Curve point",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"JSONWebKeySet": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"keys": {
|
||||||
|
"description": "The value of the \"keys\" parameter is an array of JWK values. By\ndefault, the order of the JWK values within the array does not imply\nan order of preference among them, although applications of JWK Sets\ncan choose to assign a meaning to the order for their purposes, if\ndesired.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/JSONWebKey"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e",
|
||||||
|
"checkNameAvailabilityParameters": {
|
||||||
|
"name": "vi1",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"nameAvailable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e",
|
||||||
|
"checkNameAvailabilityParameters": {
|
||||||
|
"name": "vi1",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"nameAvailable": false,
|
||||||
|
"reason": "AlreadyExists",
|
||||||
|
"message": "Resource name already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contoso-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {},
|
||||||
|
"202": {},
|
||||||
|
"204": {},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contoso-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer",
|
||||||
|
"name": "vi1",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,83 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"count": 3,
|
||||||
|
"name": "test"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {
|
||||||
|
"count": 3,
|
||||||
|
"name": "test"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 1000,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "EVENT_GRID_NOT_REGISTERED",
|
||||||
|
"message": "Microsoft.EventGrid resource provider is not registered in subscription"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,76 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 1000,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_IN_ANOTHER_LOCATION",
|
||||||
|
"message": "Can not connect to a Media Services account which is not in the same location as the VideoIndexer account"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,76 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 1000,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_UNREACHABLE",
|
||||||
|
"message": "Failed to connect to Media Services account"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,76 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 1000,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_INVALID_AAD_CONNECTION",
|
||||||
|
"message": "Cannot connect to resource '{AadConnectionConfig.AmsResourceUri}' due to issue with AAD application '{AadConnectionConfig.AadApplicationId}' that should have permissions to it.'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,76 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 1000,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_AAD_APPLICATION_INSUFFICIENT_PERMISSION",
|
||||||
|
"message": "The AAD application is Unauthorized. Make sure it has at least 'Contributor' permissions"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "InvalidResource",
|
||||||
|
"message": "The resource definition is invalid."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ResourceNotFound",
|
||||||
|
"message": "The Resource 'contosto-videoanalyzer' under resource group 'contosto-videoanalyzer-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "MissingIdentityIds",
|
||||||
|
"message": "The identity ids must not be null or empty for 'UserAssigned' identity type."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "EVENT_GRID_NOT_REGISTERED",
|
||||||
|
"message": "Microsoft.EventGrid resource provider is not registered in subscription"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,55 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "MissingIdentityIds",
|
||||||
|
"message": "The identity ids must not be null or empty for 'UserAssigned' identity type."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_IN_ANOTHER_LOCATION",
|
||||||
|
"message": "Can not connect to a Media Services account which is not in the same location as the VideoIndexer account"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_UNREACHABLE",
|
||||||
|
"message": "Failed to connect to Media Services account"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_AAD_APPLICATION_INSUFFICIENT_PERMISSION",
|
||||||
|
"message": "The AAD application is Unauthorized. Make sure it has at least 'Contributor' permissions"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "AMS_INVALID_AAD_CONNECTION",
|
||||||
|
"message": "Cannot connect to resource '{AadConnectionConfig.AmsResourceUri}' due to issue with AAD application '{AadConnectionConfig.AadApplicationId}' that should have permissions to it.'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "EVENT_GRID_NOT_REGISTERED",
|
||||||
|
"message": "Microsoft.EventGrid resource provider is not registered in subscription"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Account not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "InvalidResourceLocation",
|
||||||
|
"message": "The resource 'xxx' already exists in location 'xxx' in resource group 'xxx'. A resource with the same name cannot be created in location 'xxx'. Please select a new resource name."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"totalSecondsIndexed": 0,
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "EVENT_GRID_NOT_REGISTERED",
|
||||||
|
"message": "Microsoft.EventGrid resource provider is not registered in subscription"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "RersourceGroupNotFound",
|
||||||
|
"message": "Resource group 'contosto-videoanalyzer-rg' could not be found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,56 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/24237b72-8546-4da5-b204-8c3cb76dd930/resourceGroups/uratzmon-rg/providers/Microsoft.Media/mediaservices/talshoham"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"subscriptions/24237b72-8546-4da5-b204-8c3cb76dd930/resourceGroups/uratzmon-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/talshoham": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "UserAssignedIdentity is empty. Trace id:'9677927b-ae6b-496g-1df8-9ec3048b4bf2'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "InvalidResource",
|
||||||
|
"message": "The resource definition is invalid."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer",
|
||||||
|
"name": "vi1",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"provisioningState": "Provisioning"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"nextLink": "link"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"resourceGroupName": "contoso-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer-rg",
|
||||||
|
"name": "vi1",
|
||||||
|
"type": "Microsoft.VideoIndexer/accounts",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"tags": {},
|
||||||
|
"properties": {
|
||||||
|
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
|
||||||
|
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"mediaServices": {
|
||||||
|
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms",
|
||||||
|
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
|
||||||
|
},
|
||||||
|
"provisioningState": "Succeeded"
|
||||||
|
},
|
||||||
|
"identity": {
|
||||||
|
"type": "UserAssigned",
|
||||||
|
"userAssignedIdentities": {
|
||||||
|
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
|
||||||
|
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
|
||||||
|
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"nextLink": "link"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,60 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"accountName": "contosto-videoanalyzer"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"name": "contosto-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"id": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
|
||||||
|
"properties": {
|
||||||
|
"mediaServices": {
|
||||||
|
"aadApplicationId": "912f96dc-1ed3-4d7d-aa67-0adef4bb68ad",
|
||||||
|
"aadTenantId": "72f988bf-86f1-41ag-91ab-2d7cd061db47",
|
||||||
|
"connected": true,
|
||||||
|
"eventGridProviderRegistered": true,
|
||||||
|
"name": "contosoVideoanalyzerMediaServices",
|
||||||
|
"resourceGroup": "contoso-videoanalyzer-rg",
|
||||||
|
"streamingEndpointStarted": false,
|
||||||
|
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "AccountName is empty"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "USER_NOT_ALLOWED",
|
||||||
|
"message": "User is not account owner for account - contoso-videoanalyzer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ACCOUNT_NOT_FOUND",
|
||||||
|
"message": "Classic account not found or has been deleted and is pending deletion has been deleted and is pending deletion - contoso-videoanalyzer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Contributor",
|
||||||
|
"scope": "Account"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Reader",
|
||||||
|
"scope": "Account"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Contributor",
|
||||||
|
"scope": "Project",
|
||||||
|
"projectId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "BREAKDOWN_NOT_FOUND",
|
||||||
|
"message": "Video/Project '07ec9e38d4' was not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Contributor",
|
||||||
|
"scope": "Project",
|
||||||
|
"projectId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Reader",
|
||||||
|
"scope": "Project",
|
||||||
|
"projectId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "BREAKDOWN_NOT_FOUND",
|
||||||
|
"message": "Video/Project '07ec9e38d4' was not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Reader",
|
||||||
|
"scope": "Project",
|
||||||
|
"projectId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Contributor",
|
||||||
|
"scope": "Video",
|
||||||
|
"videoId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "BREAKDOWN_NOT_FOUND",
|
||||||
|
"message": "Video/Project '07ec9e38d4' was not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Contributor",
|
||||||
|
"scope": "Video",
|
||||||
|
"videoId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Reader",
|
||||||
|
"scope": "Video",
|
||||||
|
"videoId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "BREAKDOWN_NOT_FOUND",
|
||||||
|
"message": "Video/Project '07ec9e38d4' was not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"accountName": "contosto-videoanalyzer",
|
||||||
|
"resourceGroupName": "contosto-videoanalyzer-rg",
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
|
||||||
|
"parameters": {
|
||||||
|
"permissionType": "Reader",
|
||||||
|
"scope": "Video",
|
||||||
|
"videoId": "07ec9e38d4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"accessToken": "<jwt token of 1260 characters length>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "INVALID_INPUT",
|
||||||
|
"message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"409": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "ALREADY_EXISTS",
|
||||||
|
"message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"api-version": "2022-04-13-preview",
|
||||||
|
"location": "NorthEurope"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"name": "contoso-videoanalyzer",
|
||||||
|
"location": "NorthEurope",
|
||||||
|
"id": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"nextLink": "link"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"body": {
|
||||||
|
"error": {
|
||||||
|
"code": "GENERAL",
|
||||||
|
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"api-version": "2022-04-13-preview"
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"body": {
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"name": "Microsoft.VideoIndexer/accounts/read",
|
||||||
|
"display": {
|
||||||
|
"provider": "Microsoft Azure Video Indexer",
|
||||||
|
"resource": "Account",
|
||||||
|
"operation": "Read accounts",
|
||||||
|
"description": "Read accounts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Microsoft.VideoIndexer/accounts/write",
|
||||||
|
"display": {
|
||||||
|
"provider": "Microsoft Azure Video Indexer",
|
||||||
|
"resource": "Account",
|
||||||
|
"operation": "Update accounts",
|
||||||
|
"description": "Update accounts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Microsoft.VideoIndexer/accounts/delete",
|
||||||
|
"display": {
|
||||||
|
"provider": "Microsoft Azure Video Indexer",
|
||||||
|
"resource": "Account",
|
||||||
|
"operation": "Delete accounts",
|
||||||
|
"description": "Delete accounts"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,12 @@
|
||||||
|
## AZ
|
||||||
|
|
||||||
|
These settings apply only when `--az` is specified on the command line.
|
||||||
|
|
||||||
|
``` yaml $(az) && $(target-mode) != 'core'
|
||||||
|
az:
|
||||||
|
extensions: vi
|
||||||
|
namespace: azure.mgmt.vi
|
||||||
|
package-name: azure-mgmt-vi
|
||||||
|
az-output-folder: $(azure-cli-extension-folder)/src/vi
|
||||||
|
python-sdk-output-folder: "$(az-output-folder)/azext_vi/vendored_sdks/vi"
|
||||||
|
```
|
|
@ -0,0 +1,3 @@
|
||||||
|
## CLI
|
||||||
|
|
||||||
|
These settings don't need to apply `--cli` on the command line.
|
|
@ -0,0 +1,14 @@
|
||||||
|
## C
|
||||||
|
|
||||||
|
These settings apply only when `--csharp` is specified on the command line.
|
||||||
|
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.
|
||||||
|
|
||||||
|
```yaml $(csharp)
|
||||||
|
csharp:
|
||||||
|
azure-arm: true
|
||||||
|
license-header: MICROSOFT_MIT_NO_VERSION
|
||||||
|
payload-flattening-threshold: 1
|
||||||
|
clear-output-folder: true
|
||||||
|
namespace: Microsoft.Azure.Management.VideoIndexer
|
||||||
|
output-folder: $(csharp-sdks-folder)/vi/Microsoft.Azure.Management.VideoIndexer/Generated
|
||||||
|
```
|
|
@ -0,0 +1,39 @@
|
||||||
|
# VideoIndexer Resource Provider
|
||||||
|
|
||||||
|
## Purpose
|
||||||
|
### Problem statement
|
||||||
|
|
||||||
|
Azure Video Analyzer for Medianalyzer for Media is managed as stand-alone product outside Azure Video Analyzer for Medianalyzer for Mediause Video Indexer today:
|
||||||
|
* Customers create a trial Azure Video Analyzer for Media account through the Azure Video Analyzer for Media portal or through API portal (managed by APIM).
|
||||||
|
* Customers create a paid Azure Video Analyzer for Media account through the Azure Video Analyzer for Media portal. The account is connected to their Media Services account and then they create an APIM subscription to access it through APIs.
|
||||||
|
These is a complicated flow and is difficult for customers and partners to manage.
|
||||||
|
|
||||||
|
In addition, Azure Video Analyzer for Media uses AAD application IDs and secrets to connect to customers’ Azure resources such as Custom Vision, Media Services, Key Vault, and more are planned to be introduced. This method of authentication is error prone, requires ongoing maintenance and not a security best practice.
|
||||||
|
|
||||||
|
Finally, for Azure Video Analyzer for Media to meet Azure enterprise promises it must become an Azure resource as a pre-condition
|
||||||
|
|
||||||
|
### Benefit and Impact
|
||||||
|
|
||||||
|
Managing Azure Video Analyzer for Media in the Azure portal using ARM will allow customers and partners to manage their Azure Video Analyzer for Media account same as they manage all their Azure resources and will create a better experience for them. In addition, customers and partners will be able to use ARM templates and CLIs to create and manage a VI account.
|
||||||
|
|
||||||
|
Customers will also gain a more secure solution - Azure Video Analyzer for Media will be able to use a managed identity to connect to other Azure resources in the future, which is the safe and recommended way to work with Azure resources. Managed identities eliminate the need for VI to store customer secrets and eliminate the customer’s need for maintaining and rotating these secrets. In addition, managed identities require less permissions from the customer and allow them to create a Azure Video Analyzer for Media account more easily.
|
||||||
|
|
||||||
|
In addition having Azure Video Analyzer for Media in ARM will enable customers to create private links to secure their calls to Azure Video Analyzer for Media.
|
||||||
|
|
||||||
|
Being a resource in Azure will also allow Azure Video Analyzer for Media to create more integrations required as part of Fulcrum - in the Azure Support Portal (the customer facing portal), and the Azure Support Center (the CSS facing portal). As a resource in Azure, it will also be visible in the Azure Resource Explorer- which is also used by CSS when working on customer cases.
|
||||||
|
|
||||||
|
### Why now?
|
||||||
|
|
||||||
|
To meet enterprise promises Azure Video Analyzer for Media is required to have secured integrations between the resources, which can only be achieved by being a resource in Azure and managed by ARM.
|
||||||
|
|
||||||
|
Private links require VI to be an ARM resource, CMK requires integration with the customer’s Key Vault and the most secure manner is managed identities. In addition, integrations with Custom Vision and Media Services would become more trivial and less error prone with managed identities. Lastly, Face API resource that is CMK enabled do not plan to support authentication means other than MI.
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
|
||||||
|
The goal is to move the Azure Video Analyzer for Media’s account management and RBAC to Azure portal and ARM API with its own resource provider. This will only be relevant for paid accounts and not for trial account since trial users don’t necessarily have Azure subscriptions. The process of managing users in trial accounts won't change and wont be part of ARM.
|
||||||
|
|
||||||
|
Users will be able to easily create, manage and delete a Azure Video Analyzer for Media account through the Azure portal \ using an ARM template \ using CLI. Account management will not be available via the VI portal anymore.
|
||||||
|
|
||||||
|
## Type Model
|
||||||
|
Resource provider namespace: Microsoft.VideoIndexer
|
||||||
|
Resource type: accounts. <b><u>type model is still under develop.</u></b>. The resource type properties can be found [here](./Microsoft.VideoIndexer/preview/2022-04-13-preview/vi.json#L413)
|
|
@ -0,0 +1,11 @@
|
||||||
|
## Go
|
||||||
|
|
||||||
|
These settings apply only when `--go` is specified on the command line.
|
||||||
|
|
||||||
|
``` yaml $(go) && $(track2)
|
||||||
|
license-header: MICROSOFT_MIT_NO_VERSION
|
||||||
|
module-name: sdk/resourcemanager/videoindexer/armvideoindexer
|
||||||
|
module: github.com/Azure/azure-sdk-for-go/$(module-name)
|
||||||
|
output-folder: $(go-sdk-folder)/$(module-name)
|
||||||
|
azure-arm: true
|
||||||
|
```
|
|
@ -0,0 +1,138 @@
|
||||||
|
# vi
|
||||||
|
|
||||||
|
> see https://aka.ms/autorest
|
||||||
|
|
||||||
|
This is the AutoRest configuration file for Azure Video Analyzer for Media.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
|
||||||
|
|
||||||
|
> `autorest readme.md`
|
||||||
|
|
||||||
|
To see additional help and options, run:
|
||||||
|
|
||||||
|
> `autorest --help`
|
||||||
|
|
||||||
|
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Suppression
|
||||||
|
```
|
||||||
|
directive:
|
||||||
|
- suppress: SECRET_PROPERTY
|
||||||
|
from:
|
||||||
|
- Microsoft.VideoIndexer/preview/2021-10-18-preview/vi.json
|
||||||
|
- Microsoft.VideoIndexer/preview/2021-10-27-preview/vi.json
|
||||||
|
- Microsoft.VideoIndexer/preview/2021-11-10-preview/vi.json
|
||||||
|
- Microsoft.VideoIndexer/preview/2022-04-03-preview/vi.json
|
||||||
|
- Microsoft.VideoIndexer/preview/2022-04-13-preview/vi.json
|
||||||
|
where:
|
||||||
|
- $.definitions.AccessToken.properties.accessToken
|
||||||
|
reason: Secrets are OK to return in a POST response.
|
||||||
|
- suppress: INVALID_TYPE
|
||||||
|
from: Microsoft.VideoIndexer/preview/2022-04-13-preview/vi.json
|
||||||
|
where:
|
||||||
|
- $.definitions.Tags.properties.tags.additionalProperties
|
||||||
|
reason: fix swagger later
|
||||||
|
```
|
||||||
|
---
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Basic Information
|
||||||
|
|
||||||
|
These are the global settings for the adp.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
title: ViManagementClient
|
||||||
|
openapi-type: arm
|
||||||
|
openapi-subtype: rpaas
|
||||||
|
tag: package-2022-04-13-preview
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tag: package-2022-04-13-preview
|
||||||
|
|
||||||
|
These settings apply only when `--tag=2022-04-13-preview` is specified on the command line.
|
||||||
|
|
||||||
|
```yaml $(tag) == 'package-2022-04-13-preview'
|
||||||
|
version-with-underscores: 2022-04-13_preview
|
||||||
|
input-file:
|
||||||
|
- Microsoft.VideoIndexer/preview/2022-04-13-preview/vi.json
|
||||||
|
```
|
||||||
|
### Tag: package-2021-11-10-preview
|
||||||
|
|
||||||
|
These settings apply only when `--tag=2021-11-10-preview` is specified on the command line.
|
||||||
|
|
||||||
|
```yaml $(tag) == 'package-2021-11-10-preview'
|
||||||
|
version-with-underscores: 2021_11_10_preview
|
||||||
|
input-file:
|
||||||
|
- Microsoft.VideoIndexer/preview/2021-11-10-preview/vi.json
|
||||||
|
```
|
||||||
|
### Tag: package-2021-10-27-preview
|
||||||
|
|
||||||
|
These settings apply only when `--tag=2021-10-27-preview` is specified on the command line.
|
||||||
|
|
||||||
|
```yaml $(tag) == 'package-2021-10-27-preview'
|
||||||
|
version: 2021-10-27-preview
|
||||||
|
version-with-underscores: 2021_10_27_preview
|
||||||
|
input-file:
|
||||||
|
- Microsoft.VideoIndexer/preview/2021-10-27-preview/vi.json
|
||||||
|
```
|
||||||
|
### Tag: package-2021-10-18-preview
|
||||||
|
|
||||||
|
These settings apply only when `--tag=2021-10-18-preview` is specified on the command line.
|
||||||
|
|
||||||
|
```yaml $(tag) == 'package-2021-10-18-preview'
|
||||||
|
version: 2021-10-18-preview
|
||||||
|
version-with-underscores: 2021_10_18_preview
|
||||||
|
input-file:
|
||||||
|
- Microsoft.VideoIndexer/preview/2021-10-18-preview/vi.json
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Code Generation
|
||||||
|
|
||||||
|
## Swagger to SDK
|
||||||
|
|
||||||
|
This section describes what SDK should be generated by the automatic system.
|
||||||
|
This is not used by Autorest itself.
|
||||||
|
|
||||||
|
```yaml $(swagger-to-sdk)
|
||||||
|
swagger-to-sdk:
|
||||||
|
- repo: azure-sdk-for-python-track2
|
||||||
|
- repo: azure-sdk-for-java
|
||||||
|
- repo: azure-sdk-for-go-track2
|
||||||
|
- repo: azure-sdk-for-js
|
||||||
|
- repo: azure-sdk-for-ruby
|
||||||
|
- repo: azure-cli-extensions
|
||||||
|
- repo: azure-resource-manager-schemas
|
||||||
|
- repo: azure-powershell
|
||||||
|
```
|
||||||
|
|
||||||
|
## Go
|
||||||
|
|
||||||
|
See configuration in [readme.go.md](./readme.go.md)
|
||||||
|
|
||||||
|
## Python
|
||||||
|
|
||||||
|
See configuration in [readme.python.md](./readme.python.md)
|
||||||
|
|
||||||
|
## Ruby
|
||||||
|
|
||||||
|
See configuration in [readme.ruby.md](./readme.ruby.md)
|
||||||
|
|
||||||
|
## TypeScript
|
||||||
|
|
||||||
|
See configuration in [readme.typescript.md](./readme.typescript.md)
|
||||||
|
|
||||||
|
## CSharp
|
||||||
|
|
||||||
|
See configuration in [readme.csharp.md](./readme.csharp.md)
|
||||||
|
|
||||||
|
## Node.js
|
||||||
|
|
||||||
|
See configuration in [readme.nodejs.md](./readme.nodejs.md)
|
|
@ -0,0 +1,14 @@
|
||||||
|
## Node.js
|
||||||
|
|
||||||
|
These settings apply only when `--nodejs` is specified on the command line.
|
||||||
|
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.
|
||||||
|
|
||||||
|
``` yaml $(nodejs)
|
||||||
|
nodejs:
|
||||||
|
azure-arm: true
|
||||||
|
package-name: azure-arm-vi
|
||||||
|
output-folder: $(node-sdks-folder)/lib/services/viManagement
|
||||||
|
generate-license-txt: true
|
||||||
|
generate-package-json: true
|
||||||
|
generate-readme-md: true
|
||||||
|
```
|
|
@ -0,0 +1,18 @@
|
||||||
|
## Python
|
||||||
|
|
||||||
|
These settings apply only when `--python` is specified on the command line.
|
||||||
|
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
|
||||||
|
|
||||||
|
```yaml $(python)
|
||||||
|
azure-arm: true
|
||||||
|
license-header: MICROSOFT_MIT_NO_VERSION
|
||||||
|
package-name: azure-mgmt-videoindexer
|
||||||
|
clear-output-folder: true
|
||||||
|
namespace: azure.mgmt.videoindexer
|
||||||
|
package-version: 1.0.0b1
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml $(python)
|
||||||
|
no-namespace-folders: true
|
||||||
|
output-folder: $(python-sdks-folder)/videoindexer/azure-mgmt-videoindexer/azure/mgmt/videoindexer
|
||||||
|
```
|
|
@ -0,0 +1,16 @@
|
||||||
|
## Ruby
|
||||||
|
|
||||||
|
These settings apply only when `--ruby` is specified on the command line.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
package-name: azure_mgmt_vi
|
||||||
|
package-version: 2021-10-18-preview
|
||||||
|
azure-arm: true
|
||||||
|
```
|
||||||
|
|
||||||
|
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.
|
||||||
|
|
||||||
|
```yaml $(ruby)
|
||||||
|
namespace: Azure::VideoIndexer::Mgmt::V$(version-with-underscores)
|
||||||
|
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_vi/lib
|
||||||
|
```
|
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
## terraform
|
||||||
|
|
||||||
|
These settings apply only when `--terraform` is specified on the command line.
|
||||||
|
|
||||||
|
``` yaml $(terraform)
|
||||||
|
terraform:
|
||||||
|
cli-name: vi
|
||||||
|
package-name: vi
|
||||||
|
clear-output-folder: true
|
||||||
|
output-folder: $(terraform-output-folder)/vi
|
||||||
|
```
|
||||||
|
|
||||||
|
``` yaml $(tag) == 'package-2021-10-18-preview' && $(terraform)
|
||||||
|
gosdk-folder: services/preview/vi/mgmt/2021-10-18-preview/vi
|
||||||
|
```
|
||||||
|
|
||||||
|
``` yaml $(tag) == 'package-2021-10-27-preview' && $(terraform)
|
||||||
|
gosdk-folder: services/preview/vi/mgmt/2021-10-27-preview/vi
|
||||||
|
```
|
||||||
|
|
||||||
|
``` yaml $(tag) == 'package-2021-11-10-preview' && $(terraform)
|
||||||
|
gosdk-folder: services/preview/vi/mgmt/2021-11-10-preview/vi
|
||||||
|
```
|
||||||
|
|
||||||
|
``` yaml $(tag) == 'package-2022-04-13-preview' && $(terraform)
|
||||||
|
gosdk-folder: services/preview/vi/mgmt/2022-04-13-preview/vi
|
||||||
|
```
|
|
@ -0,0 +1,14 @@
|
||||||
|
## TypeScript
|
||||||
|
|
||||||
|
These settings apply only when `--typescript` is specified on the command line.
|
||||||
|
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.
|
||||||
|
|
||||||
|
```yaml $(typescript)
|
||||||
|
typescript:
|
||||||
|
azure-arm: true
|
||||||
|
package-name: "vi"
|
||||||
|
output-folder: "$(typescript-sdks-folder)/sdk/vi/arm-vi"
|
||||||
|
payload-flattening-threshold: 1
|
||||||
|
generate-metadata: true
|
||||||
|
override-client-name: ViManagementClient
|
||||||
|
```
|
|
@ -12,7 +12,7 @@ import * as Constants from "../lib/util/constants";
|
||||||
// eslint-disable-next-line no-var
|
// eslint-disable-next-line no-var
|
||||||
var glob = require("glob").glob;
|
var glob = require("glob").glob;
|
||||||
|
|
||||||
const numberOfSpecs = 19;
|
const numberOfSpecs = 20;
|
||||||
jest.setTimeout(999999);
|
jest.setTimeout(999999);
|
||||||
|
|
||||||
describe("Live Validator", () => {
|
describe("Live Validator", () => {
|
||||||
|
@ -1056,6 +1056,27 @@ describe("Live Validator", () => {
|
||||||
const result = await liveValidator.validateLiveRequestResponse(payload);
|
const result = await liveValidator.validateLiveRequestResponse(payload);
|
||||||
assert.equal(result.responseValidationResult.isSuccessful, true);
|
assert.equal(result.responseValidationResult.isSuccessful, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it(`should only log error for additionalProperties type mismatch and shouldn't return error for rpaas calls`, async () => {
|
||||||
|
const options = {
|
||||||
|
directory: `${__dirname}/liveValidation/swaggers/`,
|
||||||
|
isPathCaseSensitive: false,
|
||||||
|
useRelativeSourceLocationUrl: true,
|
||||||
|
swaggerPathsPattern: [
|
||||||
|
"specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-04-13-preview/vi.json",
|
||||||
|
],
|
||||||
|
git: {
|
||||||
|
shouldClone: false,
|
||||||
|
},
|
||||||
|
//isArmCall is false by default
|
||||||
|
};
|
||||||
|
const liveValidator = new LiveValidator(options);
|
||||||
|
await liveValidator.initialize();
|
||||||
|
const payload = require(`${__dirname}/liveValidation/payloads/additionalProperties_invalid_mapType.json`);
|
||||||
|
const result = await liveValidator.validateLiveRequestResponse(payload);
|
||||||
|
assert.strictEqual(result.responseValidationResult.isSuccessful, true);
|
||||||
|
assert.strictEqual(result.requestValidationResult.isSuccessful, true);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe("Live validator snapshot validation", () => {
|
describe("Live validator snapshot validation", () => {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче