Ruowan/dependency (#622)
* add error log when jsonPointer is invalid * analyze dependency output resourceId definition json path * remove unused code * add test fixtures * fix unittest * small fix and optimise dependency structure * add more field for dependencyResult * export swaggerAnalyzer * rename resourceType to fullResourceType * update description * bump version and update readme * update package-lock.json * update package-lock.json * fix eslint * fix prettier error * test step any of to oneof * bug fix: get armTemplate deployment parameters. add arm deployment status check * update changelog
This commit is contained in:
Родитель
515b9875d4
Коммит
9fdf0cd30f
|
@ -1,5 +1,12 @@
|
|||
# Change Log - oav
|
||||
|
||||
## 5/27/2021 2.5.4
|
||||
|
||||
- Analyze dependency return resource id schema reference
|
||||
- Bug fix: test scenario get arm deployment parameters
|
||||
- Bug fix: test scenario definition step use anyOf instead of oneOf.
|
||||
- Postman runner support check armTemplate deployment status
|
||||
|
||||
## 5/25/2021 2.5.3
|
||||
|
||||
- Ignore MISSING_RESOURCE_ID rule for sub level azure resources
|
||||
|
|
7
index.ts
7
index.ts
|
@ -76,6 +76,13 @@ export {
|
|||
PostmanCollectionGenerator,
|
||||
PostmanCollectionGeneratorOption,
|
||||
} from "./lib/testScenario/postmanCollectionGenerator";
|
||||
export {
|
||||
SwaggerAnalyzer,
|
||||
SwaggerAnalyzerOption,
|
||||
ExampleDependency,
|
||||
DependencyResult,
|
||||
normalizeDependency,
|
||||
} from "./lib/testScenario/swaggerAnalyzer";
|
||||
|
||||
export { getAutorestConfig } from "./lib/util/getAutorestConfig";
|
||||
// Constants
|
||||
|
|
|
@ -17,10 +17,13 @@ export const builder: yargs.CommandBuilder = {
|
|||
describe: "the readme tag name.",
|
||||
string: true,
|
||||
},
|
||||
readme: {
|
||||
describe: "path to readme.md file",
|
||||
swagger: {
|
||||
describe: "swagger file to analyze. this option is to analyze single swagger file dependency.",
|
||||
string: true,
|
||||
},
|
||||
readme: {
|
||||
describe: "path to readme.md file.",
|
||||
string: true,
|
||||
demandOption: true,
|
||||
},
|
||||
filterTopLevelResource: {
|
||||
alias: "t",
|
||||
|
@ -38,13 +41,18 @@ export const builder: yargs.CommandBuilder = {
|
|||
|
||||
export async function handler(argv: yargs.Arguments): Promise<void> {
|
||||
await cliSuppressExceptions(async () => {
|
||||
const readmeMd: string = argv.readme;
|
||||
|
||||
const autorestConfig = await getAutorestConfig(argv, readmeMd);
|
||||
const fileRoot = path.dirname(readmeMd);
|
||||
const swaggerFilePaths: string[] = autorestConfig["input-file"].map((it: string) =>
|
||||
path.resolve(fileRoot, it)
|
||||
);
|
||||
let swaggerFilePaths: string[] = [];
|
||||
if (argv.readme !== undefined) {
|
||||
const readmeMd: string = argv.readme;
|
||||
const autorestConfig = await getAutorestConfig(argv, readmeMd);
|
||||
const fileRoot = path.dirname(readmeMd);
|
||||
swaggerFilePaths = autorestConfig["input-file"].map((it: string) =>
|
||||
path.resolve(fileRoot, it)
|
||||
);
|
||||
}
|
||||
if (argv.swagger !== undefined) {
|
||||
swaggerFilePaths.push(path.resolve(argv.swagger));
|
||||
}
|
||||
const analyzer = SwaggerAnalyzer.create({
|
||||
swaggerFilePaths: swaggerFilePaths,
|
||||
filerTopLevelResourceType: argv.filterTopLevelResource,
|
||||
|
|
|
@ -121,9 +121,7 @@ export class OperationSearcher {
|
|||
/**
|
||||
* Gets the swagger operation based on the HTTP url and method
|
||||
*/
|
||||
public search(
|
||||
info: ValidationRequest
|
||||
): {
|
||||
public search(info: ValidationRequest): {
|
||||
operationMatch: OperationMatch;
|
||||
apiVersion: string;
|
||||
} {
|
||||
|
|
|
@ -126,9 +126,7 @@ const getNodesFromWhere = (
|
|||
const output = [];
|
||||
for (const wh of where) {
|
||||
try {
|
||||
output.push(
|
||||
...JSONPath<any[]>({ path: wh, json: spec, resultType: "value" })
|
||||
);
|
||||
output.push(...JSONPath<any[]>({ path: wh, json: spec, resultType: "value" }));
|
||||
} catch (e) {
|
||||
log.error(e);
|
||||
}
|
||||
|
|
|
@ -97,9 +97,9 @@ export class SwaggerLoader implements Loader<SwaggerSpec> {
|
|||
if (!path.startsWith(".")) {
|
||||
path = `./${path}`;
|
||||
}
|
||||
examples[entry.exampleName] = ({
|
||||
examples[entry.exampleName] = {
|
||||
$ref: path,
|
||||
} as Partial<SwaggerExample>) as SwaggerExample;
|
||||
} as Partial<SwaggerExample> as SwaggerExample;
|
||||
toWait.push(
|
||||
this.fileLoader.writeFile(entry.exampleFilePath, formatJson(entry.exampleContent))
|
||||
);
|
||||
|
|
|
@ -106,7 +106,8 @@ export const ajvEnableDateTimeRfc1123Format = (ajv: Ajv) => {
|
|||
// https://tools.ietf.org/html/rfc822#section-5
|
||||
ajv.addFormat("date-time-rfc1123", {
|
||||
type: "string",
|
||||
validate: /^(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), )?[0-3]\d (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d\d(?:\d\d)? (?:[0-2]\d:[0-5]\d(?::[0-5]\d)|23:59:60) (?:[A-Z]{1,3})?(?:[+-]\d\d\d\d)?$/,
|
||||
validate:
|
||||
/^(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), )?[0-3]\d (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d\d(?:\d\d)? (?:[0-2]\d:[0-5]\d(?::[0-5]\d)|23:59:60) (?:[A-Z]{1,3})?(?:[+-]\d\d\d\d)?$/,
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -114,7 +115,8 @@ export const ajvEnableDurationFormat = (ajv: Ajv) => {
|
|||
// https://en.wikipedia.org/wiki/ISO_8601#Durations
|
||||
ajv.addFormat("duration", {
|
||||
type: "string",
|
||||
validate: /^P([0-9]+(?:[,\.][0-9]+)?Y)?([0-9]+(?:[,\.][0-9]+)?M)?([0-9]+(?:[,\.][0-9]+)?D)?(?:T([0-9]+(?:[,\.][0-9]+)?H)?([0-9]+(?:[,\.][0-9]+)?M)?([0-9]+(?:[,\.][0-9]+)?S)?)?$/,
|
||||
validate:
|
||||
/^P([0-9]+(?:[,\.][0-9]+)?Y)?([0-9]+(?:[,\.][0-9]+)?M)?([0-9]+(?:[,\.][0-9]+)?D)?(?:T([0-9]+(?:[,\.][0-9]+)?H)?([0-9]+(?:[,\.][0-9]+)?M)?([0-9]+(?:[,\.][0-9]+)?S)?)?$/,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -86,9 +86,10 @@ export class ArmUrlParser {
|
|||
managementGroupName?: string;
|
||||
} {
|
||||
if (scopeSlice.length === 0) {
|
||||
const managementGroupMatch = /^\/providers\/Microsoft\.Management\/managementGroups\/(?<mgmtGroupName>[^\/]+*)/gi.exec(
|
||||
path
|
||||
);
|
||||
const managementGroupMatch =
|
||||
/^\/providers\/Microsoft\.Management\/managementGroups\/(?<mgmtGroupName>[^\/]+*)/gi.exec(
|
||||
path
|
||||
);
|
||||
if (managementGroupMatch !== null) {
|
||||
return { scopeType: "ManagementGroup", managementGroupName: managementGroupMatch[1] };
|
||||
} else {
|
||||
|
|
|
@ -12,7 +12,8 @@ type ContainName =
|
|||
| "newmanreport"
|
||||
| "report"
|
||||
| "payload"
|
||||
| "reportforpipeline";
|
||||
| "reportforpipeline"
|
||||
| "dependency";
|
||||
|
||||
@injectable()
|
||||
export class BlobUploader {
|
||||
|
|
|
@ -154,7 +154,7 @@ export const getJsonPatchDiff = (
|
|||
return patches;
|
||||
};
|
||||
|
||||
const getObjValueFromPointer = (obj: any, pointer: string) => {
|
||||
export const getObjValueFromPointer = (obj: any, pointer: string) => {
|
||||
return jsonPointer.get(obj, pointer === "/" ? "" : pointer);
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { basename } from "path";
|
||||
import { URL } from "url";
|
||||
import { HttpMethods } from "@azure/core-http";
|
||||
import { injectable } from "inversify";
|
||||
import { Loader } from "../../swagger/loader";
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { basename } from "path";
|
||||
import { URL } from "url";
|
||||
import { HttpMethods } from "@azure/core-http";
|
||||
import { injectable } from "inversify";
|
||||
import { Loader } from "../../swagger/loader";
|
||||
|
|
|
@ -165,7 +165,7 @@ export class StaticTestScenarioGenerator {
|
|||
public async generateTestDefFiles() {
|
||||
const resourceTypes: Set<string> = new Set<string>();
|
||||
for (const it of this.exampleDependencies) {
|
||||
resourceTypes.add(it.resourceType);
|
||||
resourceTypes.add(it.fullResourceType);
|
||||
}
|
||||
for (const resourceType of resourceTypes) {
|
||||
if (this.opts.rule === "put-delete") {
|
||||
|
|
|
@ -282,7 +282,7 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
}
|
||||
}
|
||||
|
||||
private addAsLongRunningOperationItem(item: Item) {
|
||||
private addAsLongRunningOperationItem(item: Item, checkStatus: boolean = false) {
|
||||
this.collectionEnv.set(`${lroPollingUrl(item.name)}`, "<polling_url>", "string");
|
||||
const longRunningEvent = new Event({
|
||||
listen: "test",
|
||||
|
@ -295,7 +295,7 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
});
|
||||
item.events.add(longRunningEvent);
|
||||
this.collection.items.add(item);
|
||||
for (const it of this.longRunningOperationItem(item)) {
|
||||
for (const it of this.longRunningOperationItem(item, checkStatus)) {
|
||||
this.collection.items.append(it);
|
||||
}
|
||||
}
|
||||
|
@ -332,7 +332,7 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
): Promise<void> {
|
||||
this.auth(stepEnv.env);
|
||||
const item = new Item();
|
||||
item.name = step.armTemplateDeployment;
|
||||
item.name = step.step;
|
||||
const path =
|
||||
"/subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/Microsoft.Resources/deployments/{{deploymentName}}?api-version=2020-06-01";
|
||||
const urlVariables: VariableDefinition[] = [
|
||||
|
@ -341,7 +341,7 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
];
|
||||
this.collectionEnv.set("deploymentName", stepEnv.env.get("deploymentName"), "string");
|
||||
item.request = new Request({
|
||||
name: step.armTemplateDeployment,
|
||||
name: step.step,
|
||||
method: "put",
|
||||
url: "",
|
||||
body: { mode: "raw" } as RequestBodyDefinition,
|
||||
|
@ -368,15 +368,16 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
listen: "test",
|
||||
script: {
|
||||
type: "text/javascript",
|
||||
exec: `pm.test("Status code is 200", function () {
|
||||
console.log(pm.response.text())
|
||||
pm.response.to.have.status(200);
|
||||
});
|
||||
`,
|
||||
exec: this.postmanTestScript.generateScript({
|
||||
name: "response status code assertion.",
|
||||
types: ["DetailResponseLog", "StatusCodeAssertion"],
|
||||
variables: undefined,
|
||||
}),
|
||||
},
|
||||
})
|
||||
);
|
||||
this.collection.items.add(item);
|
||||
this.addAsLongRunningOperationItem(item, true);
|
||||
}
|
||||
|
||||
private addAuthorizationHeader(item: Item) {
|
||||
|
@ -549,7 +550,7 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
return item;
|
||||
}
|
||||
|
||||
public longRunningOperationItem(initialItem: Item): Item[] {
|
||||
public longRunningOperationItem(initialItem: Item, checkStatus: boolean = false): Item[] {
|
||||
const ret: Item[] = [];
|
||||
const pollerItemName = generatedPostmanItem(initialItem.name + "_poller");
|
||||
const pollerItem = new Item({
|
||||
|
@ -588,7 +589,21 @@ export class PostmanCollectionRunnerClient implements TestScenarioRunnerClient {
|
|||
}`,
|
||||
},
|
||||
});
|
||||
|
||||
pollerItem.events.add(event);
|
||||
if (checkStatus) {
|
||||
const checkStatusEvent = new Event({
|
||||
listen: "test",
|
||||
script: {
|
||||
type: "text/javascript",
|
||||
exec: this.postmanTestScript.generateScript({
|
||||
name: "armTemplate deployment status check",
|
||||
types: ["StatusCodeAssertion", "ARMDeploymentStatusAssertion"],
|
||||
}),
|
||||
},
|
||||
});
|
||||
pollerItem.events.add(checkStatusEvent);
|
||||
}
|
||||
|
||||
ret.push(pollerItem);
|
||||
ret.push(delay);
|
||||
|
|
|
@ -6,6 +6,10 @@ const StatusCodeAssertion: ScriptTemplate = {
|
|||
text: `pm.expect(pm.response.code).to.be.oneOf([200, 201, 202, 204]);`,
|
||||
};
|
||||
|
||||
const ARMDeploymentStatusAssertion: ScriptTemplate = {
|
||||
text: `pm.expect(pm.response.json().status).to.be.oneOf(["Succeeded", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Updating"]);`,
|
||||
};
|
||||
|
||||
const DetailResponseLog: ScriptTemplate = {
|
||||
text: `
|
||||
console.log(pm.response.text())
|
||||
|
@ -22,7 +26,8 @@ export type TestScriptType =
|
|||
| "StatusCodeAssertion"
|
||||
| "ResponseDataAssertion"
|
||||
| "DetailResponseLog"
|
||||
| "OverwriteVariables";
|
||||
| "OverwriteVariables"
|
||||
| "ARMDeploymentStatusAssertion";
|
||||
|
||||
export class PostmanTestScript {
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
||||
|
@ -41,6 +46,9 @@ export class PostmanTestScript {
|
|||
if (parameter.types.includes("OverwriteVariables")) {
|
||||
ret += this.generateOverWriteVariablesScript(parameter.variables!);
|
||||
}
|
||||
if (parameter.types.includes("ARMDeploymentStatusAssertion")) {
|
||||
ret += ARMDeploymentStatusAssertion.text;
|
||||
}
|
||||
return ret + end;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,83 @@
|
|||
// Copyright (c) 2021 Microsoft Corporation
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
import { Schema } from "../swagger/swaggerTypes";
|
||||
import { JsonLoader, isRefLike } from "../swagger/jsonLoader";
|
||||
import { getObjValueFromPointer } from "./diffUtils";
|
||||
|
||||
export class SchemaSearcher {
|
||||
public static findSchemaByJsonPointer(
|
||||
jsonPointer: string,
|
||||
schema: Schema,
|
||||
jsonLoader: JsonLoader,
|
||||
body?: any
|
||||
) {
|
||||
const steps = jsonPointer.split("/");
|
||||
let curSchema: any = schema;
|
||||
let rootSchema: any = schema;
|
||||
if (isRefLike(schema)) {
|
||||
rootSchema = this.getProperties(schema, jsonLoader);
|
||||
}
|
||||
const curPaths: string[] = [];
|
||||
try {
|
||||
for (const step of steps) {
|
||||
curSchema = SchemaSearcher.getProperties(curSchema, jsonLoader);
|
||||
let found: boolean = false;
|
||||
if (step !== "") {
|
||||
// if current step is array.
|
||||
if (!isNaN(+step)) {
|
||||
if (curSchema.type === "array") {
|
||||
curSchema = curSchema.items;
|
||||
}
|
||||
}
|
||||
if (curSchema?.properties !== undefined && curSchema?.properties[step] !== undefined) {
|
||||
curSchema = curSchema.properties[step];
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
curPaths.push(step);
|
||||
// If not found, find in discriminator.
|
||||
if (!found && rootSchema.discriminatorMap !== undefined) {
|
||||
let discriminatorValue = "";
|
||||
if (body !== undefined && rootSchema.discriminator !== undefined) {
|
||||
const discriminatorJsonPointer = [...curPaths, rootSchema.discriminator].join("/");
|
||||
discriminatorValue = getObjValueFromPointer(body, discriminatorJsonPointer);
|
||||
}
|
||||
if (discriminatorValue !== "") {
|
||||
const discriminatorSchemaRef = rootSchema.discriminatorMap[discriminatorValue];
|
||||
if (discriminatorSchemaRef !== undefined) {
|
||||
const discriminatorSchema = SchemaSearcher.getProperties(
|
||||
discriminatorSchemaRef as Schema,
|
||||
jsonLoader
|
||||
);
|
||||
curSchema = discriminatorSchema;
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.getProperties(curSchema, jsonLoader);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
public static getProperties(schema: Schema, jsonLoader: JsonLoader): any {
|
||||
let ret: any = {};
|
||||
if (isRefLike(schema)) {
|
||||
ret = jsonLoader.resolveRefObj(schema);
|
||||
}
|
||||
schema.allOf?.map((item: any) => {
|
||||
ret = {
|
||||
...ret,
|
||||
...this.getProperties(jsonLoader.resolveRefObj(item), jsonLoader),
|
||||
};
|
||||
});
|
||||
return {
|
||||
...ret,
|
||||
...schema,
|
||||
};
|
||||
}
|
||||
}
|
|
@ -3,17 +3,21 @@ import { inject, injectable } from "inversify";
|
|||
import _ from "lodash";
|
||||
import { inversifyGetInstance, TYPES } from "../inversifyUtils";
|
||||
import { FileLoaderOption, FileLoader } from "../swagger/fileLoader";
|
||||
import { JsonLoader, JsonLoaderOption } from "../swagger/jsonLoader";
|
||||
import { JsonLoader, JsonLoaderOption, isRefLike } from "../swagger/jsonLoader";
|
||||
import { SwaggerLoader, SwaggerLoaderOption } from "../swagger/swaggerLoader";
|
||||
import { Path, SwaggerExample, SwaggerSpec } from "../swagger/swaggerTypes";
|
||||
import {
|
||||
BodyParameter,
|
||||
Path,
|
||||
SwaggerExample,
|
||||
SwaggerSpec,
|
||||
refSelfSymbol,
|
||||
} from "../swagger/swaggerTypes";
|
||||
import { AjvSchemaValidator } from "../swaggerValidator/ajvSchemaValidator";
|
||||
import { SchemaValidator } from "../swaggerValidator/schemaValidator";
|
||||
import { allOfTransformer } from "../transform/allOfTransformer";
|
||||
import { getTransformContext, TransformContext } from "../transform/context";
|
||||
import { discriminatorTransformer } from "../transform/discriminatorTransformer";
|
||||
import { noAdditionalPropertiesTransformer } from "../transform/noAdditionalPropertiesTransformer";
|
||||
import { nullableTransformer } from "../transform/nullableTransformer";
|
||||
import { pureObjectTransformer } from "../transform/pureObjectTransformer";
|
||||
import { referenceFieldsTransformer } from "../transform/referenceFieldsTransformer";
|
||||
import { resolveNestedDefinitionTransformer } from "../transform/resolveNestedDefinitionTransformer";
|
||||
import { xmsPathsTransformer } from "../transform/xmsPathsTransformer";
|
||||
|
@ -21,6 +25,7 @@ import { applyGlobalTransformers, applySpecTransformers } from "../transform/tra
|
|||
import { traverseSwaggerAsync } from "../transform/traverseSwagger";
|
||||
import { getProvider } from "../util/utils";
|
||||
import { setDefaultOpts } from "../swagger/loader";
|
||||
import { SchemaSearcher } from "./schemaSearcher";
|
||||
|
||||
export interface SwaggerAnalyzerOption
|
||||
extends FileLoaderOption,
|
||||
|
@ -34,9 +39,11 @@ export interface SwaggerAnalyzerOption
|
|||
export interface ExampleDependency {
|
||||
exampleFilePath: string;
|
||||
exampleName: string;
|
||||
swaggerFilePath: string;
|
||||
apiVersion: string;
|
||||
resourceProvider: string;
|
||||
resourceType: string;
|
||||
fullResourceType: string;
|
||||
operationId: string;
|
||||
internalDependency: Dependency;
|
||||
externalDependency: Dependency[];
|
||||
}
|
||||
|
@ -51,6 +58,10 @@ function noExternalDependency(exampleDependency: ExampleDependency): boolean {
|
|||
|
||||
interface Dependency {
|
||||
resourceProvider: string;
|
||||
fullResourceType?: string;
|
||||
jsonPointer?: string;
|
||||
jsonPath?: string;
|
||||
resourceIdJsonPointer?: string;
|
||||
resourceChain: ResourceType[];
|
||||
}
|
||||
|
||||
|
@ -87,8 +98,6 @@ export class SwaggerAnalyzer {
|
|||
discriminatorTransformer,
|
||||
allOfTransformer,
|
||||
noAdditionalPropertiesTransformer,
|
||||
nullableTransformer,
|
||||
pureObjectTransformer,
|
||||
]);
|
||||
|
||||
this.resourceTypePathMapping = new Map<string, Path[]>();
|
||||
|
@ -131,19 +140,47 @@ export class SwaggerAnalyzer {
|
|||
for (const [exampleName, example] of Object.entries(
|
||||
path.put["x-ms-examples"] || {}
|
||||
)) {
|
||||
const externalDependency = analyzeExampleDependency(
|
||||
let externalDependency = analyzeExampleDependency(
|
||||
this.jsonLoader.resolveRefObj(example)
|
||||
);
|
||||
const parameters = path.put.parameters?.map((it) => {
|
||||
if (isRefLike(it)) {
|
||||
return this.jsonLoader.resolveRefObj(it);
|
||||
} else {
|
||||
return it;
|
||||
}
|
||||
});
|
||||
const requestBody: BodyParameter = parameters?.filter(
|
||||
(it: any) => it.in === "body"
|
||||
)[0] as BodyParameter;
|
||||
try {
|
||||
externalDependency = externalDependency.map((dependency): Dependency => {
|
||||
return {
|
||||
...dependency,
|
||||
resourceIdJsonPointer: this.getResourceIdJsonPath(
|
||||
dependency,
|
||||
requestBody,
|
||||
example
|
||||
),
|
||||
};
|
||||
});
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
const exampleDependency: ExampleDependency = {
|
||||
apiVersion: swaggerSpec.info.version,
|
||||
resourceProvider: resourceProvider,
|
||||
swaggerFilePath: swaggerSpec._filePath,
|
||||
exampleName: exampleName,
|
||||
resourceType: getResourceTypePath(resourceChain, resourceProvider),
|
||||
fullResourceType: getResourceTypePath(resourceChain, resourceProvider),
|
||||
exampleFilePath: this.jsonLoader.getRealPath(example.$ref!),
|
||||
externalDependency: externalDependency,
|
||||
operationId: path.put.operationId || "",
|
||||
internalDependency: {
|
||||
resourceProvider: resourceProvider,
|
||||
resourceChain: resourceChain,
|
||||
fullResourceType: getResourceTypePath(resourceChain, resourceProvider),
|
||||
},
|
||||
};
|
||||
dependencyResult.push(exampleDependency);
|
||||
|
@ -167,6 +204,37 @@ export class SwaggerAnalyzer {
|
|||
return this.resourceTypePathMapping.get(resourceType);
|
||||
}
|
||||
|
||||
public getResourceIdJsonPath(
|
||||
dependency: Dependency,
|
||||
requestBody: BodyParameter,
|
||||
example: any
|
||||
): string {
|
||||
const getSchemaJsonPointer = (jsonPointer: string) => {
|
||||
const ret = jsonPointer.substring(jsonPointer.indexOf("/", 1), jsonPointer.length);
|
||||
return ret;
|
||||
};
|
||||
|
||||
const getSchemaName = (jsonPointer: string) => {
|
||||
const ret = jsonPointer.split("/")[1];
|
||||
return ret;
|
||||
};
|
||||
const schemaJsonPointer = getSchemaJsonPointer(dependency.jsonPointer!);
|
||||
const schemaName = getSchemaName(dependency.jsonPointer!);
|
||||
const exampleObj = this.jsonLoader.resolveRefObj(example);
|
||||
const schema = SchemaSearcher.findSchemaByJsonPointer(
|
||||
schemaJsonPointer,
|
||||
requestBody.schema!,
|
||||
this.jsonLoader,
|
||||
exampleObj.parameters[schemaName]
|
||||
);
|
||||
const resourceIdSchemaJsonPath = schema[refSelfSymbol];
|
||||
if (resourceIdSchemaJsonPath !== undefined) {
|
||||
return resourceIdSchemaJsonPath.substr(3, resourceIdSchemaJsonPath.length);
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public getExampleDependencyByExamplePath(exampleFilePath: string): ExampleDependency | undefined {
|
||||
return this.exampleDependencyMapping.get(exampleFilePath);
|
||||
}
|
||||
|
@ -245,9 +313,92 @@ export function analyzeExampleDependency(example: SwaggerExample): Dependency[]
|
|||
const provider = getProvider(it.value);
|
||||
if (provider !== undefined) {
|
||||
const resourceChain = getResourceFromPath(it.value);
|
||||
ret.push({ resourceProvider: provider, resourceChain: resourceChain });
|
||||
const resourceType = getResourceTypePath(resourceChain, provider);
|
||||
ret.push({
|
||||
resourceProvider: provider,
|
||||
resourceChain: resourceChain,
|
||||
fullResourceType: resourceType,
|
||||
jsonPointer: it.pointer,
|
||||
jsonPath: it.path,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
export interface DependencyResult {
|
||||
apiVersion: string;
|
||||
exampleName: string;
|
||||
fullResourceType: string;
|
||||
resourceProvider: string;
|
||||
fullDependentResourceType: string;
|
||||
exampleJsonPointer: string;
|
||||
swaggerResourceIdJsonPath: string;
|
||||
swaggerFilePath: string;
|
||||
exampleFilePath: string;
|
||||
operationId: string;
|
||||
}
|
||||
|
||||
export function normalizeDependency(
|
||||
res: ExampleDependency[],
|
||||
fileRoot = "specification"
|
||||
): DependencyResult[] {
|
||||
const dependency: any = {};
|
||||
const vis = new Set<string>();
|
||||
res
|
||||
.filter((it) => it.externalDependency.length > 0)
|
||||
.map((it) => {
|
||||
return {
|
||||
swaggerFilePath: it.swaggerFilePath.substr(
|
||||
it.swaggerFilePath.indexOf(fileRoot),
|
||||
it.swaggerFilePath.length
|
||||
),
|
||||
ids: it.externalDependency.map((dependency) => {
|
||||
return {
|
||||
apiVersion: it.apiVersion,
|
||||
exampleName: it.exampleName,
|
||||
fullResourceType: it.fullResourceType,
|
||||
resourceProvider: it.resourceProvider,
|
||||
fullDependentResourceType: dependency.fullResourceType,
|
||||
operationId: it.operationId,
|
||||
exampleJsonPointer: dependency.jsonPointer,
|
||||
swaggerResourceIdJsonPointer: dependency.resourceIdJsonPointer,
|
||||
exampleFilePath: it.exampleFilePath.substr(
|
||||
it.exampleFilePath.indexOf(fileRoot),
|
||||
it.exampleFilePath.length
|
||||
),
|
||||
};
|
||||
}),
|
||||
};
|
||||
})
|
||||
.forEach((it) => {
|
||||
if (dependency[it.swaggerFilePath] === undefined) {
|
||||
dependency[it.swaggerFilePath] = [];
|
||||
}
|
||||
for (const id of it.ids) {
|
||||
if (
|
||||
!vis.has(uniqueIndex(id.exampleJsonPointer!, it.swaggerFilePath, id.fullResourceType!))
|
||||
) {
|
||||
dependency[it.swaggerFilePath].push(id);
|
||||
vis.add(uniqueIndex(id.exampleJsonPointer!, it.swaggerFilePath, id.fullResourceType!));
|
||||
}
|
||||
}
|
||||
});
|
||||
let ret: DependencyResult[] = [];
|
||||
for (const [k, v] of Object.entries(dependency)) {
|
||||
ret = ret.concat(
|
||||
(v as any).map((it: any) => {
|
||||
return { ...it, swaggerFilePath: k };
|
||||
})
|
||||
);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
const uniqueIndex = (
|
||||
jsonPointer: string,
|
||||
swaggerFilePath: string,
|
||||
resourceType: string
|
||||
): string => {
|
||||
return `${jsonPointer}_${swaggerFilePath}_${resourceType}`;
|
||||
};
|
||||
|
|
|
@ -68,10 +68,8 @@ interface TestScenarioContext {
|
|||
export class TestResourceLoader implements Loader<TestDefinitionFile> {
|
||||
private transformContext: TransformContext;
|
||||
private validateTestResourceFile: ValidateFunction;
|
||||
private exampleToOperation: Map<
|
||||
string,
|
||||
{ [operationId: string]: [Operation, string] }
|
||||
> = new Map();
|
||||
private exampleToOperation: Map<string, { [operationId: string]: [Operation, string] }> =
|
||||
new Map();
|
||||
private nameToOperation: Map<string, Operation> = new Map();
|
||||
private initialized: boolean = false;
|
||||
|
||||
|
@ -299,10 +297,10 @@ export class TestResourceLoader implements Loader<TestDefinitionFile> {
|
|||
step.armTemplatePayload = JSON.parse(armTemplateContent);
|
||||
|
||||
const definedParameters = [];
|
||||
if (step.armTemplateParameters !== undefined) {
|
||||
if (rawStep.armTemplateParameters !== undefined) {
|
||||
const armTemplateParametersPath = pathJoin(
|
||||
dirname(testDef._filePath),
|
||||
step.armTemplateParameters
|
||||
rawStep.armTemplateParameters
|
||||
);
|
||||
const armTemplateParametersContent = await this.fileLoader.load(armTemplateParametersPath);
|
||||
step.armTemplateParametersPayload = JSON.parse(armTemplateParametersContent);
|
||||
|
|
|
@ -58,7 +58,7 @@ const testStepBaseSchema: Schema = {
|
|||
};
|
||||
|
||||
const testStepSchema: Schema = {
|
||||
oneOf: [
|
||||
anyOf: [
|
||||
{
|
||||
$ref: "#/definitions/TestStepRestCall",
|
||||
},
|
||||
|
|
|
@ -102,7 +102,7 @@ export class VariableEnv {
|
|||
|
||||
private resolveObjectValuesWithRegExp<T>(obj: T, captureVariable: RegExp): T {
|
||||
if (typeof obj === "string") {
|
||||
return (this.resolveStringWithRegExp(obj, captureVariable) as unknown) as T;
|
||||
return this.resolveStringWithRegExp(obj, captureVariable) as unknown as T;
|
||||
}
|
||||
if (typeof obj !== "object") {
|
||||
return obj;
|
||||
|
@ -112,9 +112,9 @@ export class VariableEnv {
|
|||
}
|
||||
|
||||
if (Array.isArray(obj)) {
|
||||
return ((obj as any[]).map((v) =>
|
||||
return (obj as any[]).map((v) =>
|
||||
this.resolveObjectValuesWithRegExp(v, captureVariable)
|
||||
) as unknown) as T;
|
||||
) as unknown as T;
|
||||
}
|
||||
|
||||
const result: any = {};
|
||||
|
|
|
@ -67,7 +67,7 @@ export const discriminatorTransformer: GlobalTransformer = {
|
|||
};
|
||||
copyInfo(baseSch, baseSch.discriminatorMap);
|
||||
}
|
||||
baseSch.discriminatorMap[discriminatorValue] = ({ $ref } as unknown) as Schema;
|
||||
baseSch.discriminatorMap[discriminatorValue] = { $ref } as unknown as Schema;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
@ -189,6 +189,7 @@ export function getObject(doc: StringMap<unknown>, ptr: string): unknown {
|
|||
try {
|
||||
result = jsonPointer.get(doc, ptr);
|
||||
} catch (err) {
|
||||
log.error(`cannot get object from jsonPointer ${ptr}`);
|
||||
log.error(err);
|
||||
throw err;
|
||||
}
|
||||
|
|
|
@ -450,9 +450,9 @@ export class ModelValidator extends SpecValidator<SpecValidationResult> {
|
|||
|
||||
let result: RequestValidation = {};
|
||||
if (bodyParam && bodyParam.schema && bodyParam.schema.example) {
|
||||
const exampleParameterValues: openapiToolsCommon.MutableStringMap<openapiToolsCommon.StringMap<
|
||||
unknown
|
||||
>> = {};
|
||||
const exampleParameterValues: openapiToolsCommon.MutableStringMap<
|
||||
openapiToolsCommon.StringMap<unknown>
|
||||
> = {};
|
||||
for (const parameter of parameters) {
|
||||
log.debug(
|
||||
`Getting sample value for parameter "${parameter.name}" in operation ` +
|
||||
|
|
|
@ -27,8 +27,10 @@ import {
|
|||
import { generatedPrefix } from "./cloudError";
|
||||
import { getSchemaObjectInfo, setSchemaInfo, setSchemaTitle } from "./specTransformer";
|
||||
|
||||
const skipIfUndefined = <T>(f: (v: T) => T): ((v: T | undefined) => T | undefined) => (v) =>
|
||||
v !== undefined ? f(v) : undefined;
|
||||
const skipIfUndefined =
|
||||
<T>(f: (v: T) => T): ((v: T | undefined) => T | undefined) =>
|
||||
(v) =>
|
||||
v !== undefined ? f(v) : undefined;
|
||||
|
||||
export const resolveNestedDefinitions = (spec: SwaggerObject): SwaggerObject => {
|
||||
const generatedDefinitions: MutableStringMap<SchemaObject> = {};
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "2.5.3",
|
||||
"version": "2.5.4",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,90 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"api-version": "2020-09-01",
|
||||
"account": {
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "user1",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2020-01-01T17:18:19.1234567Z",
|
||||
"lastModifiedBy": "user2",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
|
||||
"name": "Account1",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "user1",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2020-01-01T17:18:19.1234567Z",
|
||||
"lastModifiedBy": "user2",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
|
||||
"name": "Account1",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"status": "Succeeded"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/sourceAccount/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"provisioningState": "Succeeded",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "user1",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2020-01-01T17:18:19.1234567Z",
|
||||
"lastModifiedBy": "user2",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
|
||||
"name": "Account1",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2020-09-01",
|
||||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
|
||||
"resourceGroupName": "SampleResourceGroup"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"userName": "John Smith,",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
|
||||
"name": "Account1",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"userName": "John Smith,",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "East US 2",
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account2",
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"name": "Account2",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2020-09-01",
|
||||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
|
||||
"name": "Account1",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"location": "East US 2",
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account2",
|
||||
"name": "Account2",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"api-version": "2020-09-01",
|
||||
"accountUpdateParameters": {
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T04:47:52.9614956Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"location": "West US 2",
|
||||
"tags": {
|
||||
"tag1": "Red",
|
||||
"tag2": "White"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "user1",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2020-01-01T17:18:19.1234567Z",
|
||||
"lastModifiedBy": "user2",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
|
||||
},
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
|
||||
"name": "Account1",
|
||||
"type": "Microsoft.DataShare/accounts"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"parameters": {
|
||||
"location": "East US 2",
|
||||
"api-version": "2020-09-01",
|
||||
"invitationId": "dfbbc788-19eb-4607-a5a1-c74181bfff03"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"location": "eastus2",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"providerTenantName": "Microsoft",
|
||||
"sentAt": "2019-01-15T01:45:25.6226946Z",
|
||||
"respondedAt": "2019-01-15T02:01:51.8953054Z",
|
||||
"invitationStatus": "Accepted",
|
||||
"description": "Some share",
|
||||
"termsOfUse": "Confidential",
|
||||
"dataSetCount": 1,
|
||||
"shareName": "share1",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "invitation1",
|
||||
"type": "Microsoft.DataShare/locations/consumerInvitations"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"location": "eastus2",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sentAt": "2019-01-15T01:45:25.6226946Z",
|
||||
"respondedAt": "2019-01-15T02:01:51.8953054Z",
|
||||
"invitationStatus": "Accepted",
|
||||
"description": "Some share",
|
||||
"termsOfUse": "Confidential",
|
||||
"dataSetCount": 1,
|
||||
"providerTenantName": "microsoft",
|
||||
"shareName": "share1",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "invitation1",
|
||||
"type": "Microsoft.DataShare/locations/consumerInvitations"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"parameters": {
|
||||
"location": "East US 2",
|
||||
"api-version": "2020-09-01",
|
||||
"invitation": {
|
||||
"properties": {
|
||||
"invitationId": "dfbbc788-19eb-4607-a5a1-c74181bfff03"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"location": "eastus2",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"providerTenantName": "microsoft",
|
||||
"sentAt": "2019-01-15T01:45:25.6226946Z",
|
||||
"respondedAt": "2019-01-15T02:01:51.8953054Z",
|
||||
"invitationStatus": "Rejected",
|
||||
"description": "Some share",
|
||||
"termsOfUse": "Confidential",
|
||||
"dataSetCount": 1,
|
||||
"shareName": "share1",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "invitation1",
|
||||
"type": "Microsoft.DataShare/locations/consumerInvitations"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "Share1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"dataSetId": "0b9d4394-8bb3-49a1-aa4f-4be49cd10375",
|
||||
"dataSetType": "Blob",
|
||||
"dataSetName": "input.text",
|
||||
"dataSetPath": "cars.text"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/consumerSourceDataSets/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "invitation1",
|
||||
"type": "Microsoft.DataShare/accounts/sharesubscriptions/consumerSourceDataSets"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "DatasetMapping1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSetMapping": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d227",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "DatasetMapping1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "DatasetMapping1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "name eq 'DatasetMapping1'",
|
||||
"orderBy": "name"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
},
|
||||
{
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d227",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "DatasetMapping1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSetMapping": {
|
||||
"kind": "SqlDBTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"databaseName": "Database1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDBTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"databaseName": "Database1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDBTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"databaseName": "Database1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "DatasetMapping1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSetMapping": {
|
||||
"kind": "AdlsGen2File",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"fileSystem": "fileSystem",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup",
|
||||
"outputType": "Csv"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "AdlsGen2File",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"fileSystem": "fileSystem",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup",
|
||||
"outputType": "Csv"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "AdlsGen2File",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"fileSystem": "fileSystem",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup",
|
||||
"outputType": "Csv"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "DatasetMapping1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSetMapping": {
|
||||
"kind": "SqlDWTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"dataWarehouseName": "DataWarehouse1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDWTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"dataWarehouseName": "DataWarehouse1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDWTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"dataWarehouseName": "DataWarehouse1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/dataSetMappings/DatasetMapping1",
|
||||
"name": "DatasetMapping1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "0f3dcfc3-18f8-4099-b381-8353e19d43a7",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "consumerAccount",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"dataSetMappingName": "datasetMappingName1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSetMapping": {
|
||||
"kind": "SynapseWorkspaceSqlPoolTable",
|
||||
"properties": {
|
||||
"dataSetId": "3dc64e49-1fc3-4186-b3dc-d388c4d3076a",
|
||||
"synapseWorkspaceSqlPoolTableResourceId": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool/schemas/dbo/tables/table1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SynapseWorkspaceSqlPoolTable",
|
||||
"properties": {
|
||||
"dataSetId": "3dc64e49-1fc3-4186-b3dc-d388c4d3076a",
|
||||
"synapseWorkspaceSqlPoolTableResourceId": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool/schemas/dbo/tables/table1",
|
||||
"dataSetMappingStatus": "Ok",
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"id": "/subscriptions/4e745bb7-c420-479b-b0d6-a0f92d48a227/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/ShareSubscription1/dataSetMappings/datasetMappingName1",
|
||||
"name": "datasetMappingName",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SynapseWorkspaceSqlPoolTable",
|
||||
"properties": {
|
||||
"dataSetId": "3dc64e49-1fc3-4186-b3dc-d388c4d3076a",
|
||||
"synapseWorkspaceSqlPoolTableResourceId": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool/schemas/dbo/tables/table1",
|
||||
"dataSetMappingStatus": "Ok",
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"id": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/ShareSubscription1/dataSetMappings/datasetMappingName1",
|
||||
"name": "datasetMappingName1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSet": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"storageAccountName": "adspipelinemetadatatable",
|
||||
"containerName": "C1",
|
||||
"filePath": "inputpath",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": null,
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSet": {
|
||||
"kind": "KustoCluster",
|
||||
"properties": {
|
||||
"kustoClusterResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "KustoCluster",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"kustoClusterResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1",
|
||||
"location": "West US 2"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": null,
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "KustoCluster",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"kustoClusterResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1",
|
||||
"location": "West US 2"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSet": {
|
||||
"kind": "KustoDatabase",
|
||||
"properties": {
|
||||
"kustoDatabaseResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "KustoDatabase",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"kustoDatabaseResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1",
|
||||
"location": "West US 2"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": null,
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "KustoDatabase",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"kustoDatabaseResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1",
|
||||
"location": "West US 2"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "name eq 'Dataset1'",
|
||||
"orderBy": "name"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"storageAccountName": "storage1",
|
||||
"filePath": "file22",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
},
|
||||
{
|
||||
"kind": "Blob",
|
||||
"properties": {
|
||||
"storageAccountName": "storage2",
|
||||
"filePath": "file21",
|
||||
"containerName": "C1",
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroup": "SampleResourceGroup"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset2",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSet": {
|
||||
"kind": "SqlDBTable",
|
||||
"properties": {
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"databaseName": "SqlDB1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDBTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"databaseName": "SqlDB1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": null,
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDBTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"databaseName": "SqlDB1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"dataSetName": "Dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSet": {
|
||||
"kind": "SqlDWTable",
|
||||
"properties": {
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"dataWarehouseName": "DataWarehouse1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDWTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"dataWarehouseName": "DataWarehouse1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": null,
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "SqlDWTable",
|
||||
"properties": {
|
||||
"dataSetId": "a08f184b-0567-4b11-ba22-a1199336d226",
|
||||
"sqlServerResourceId": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1",
|
||||
"dataWarehouseName": "DataWarehouse1",
|
||||
"tableName": "Table1",
|
||||
"schemaName": "dbo"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/datasets/Dataset1",
|
||||
"name": "Dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "0f3dcfc3-18f8-4099-b381-8353e19d43a7",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "sourceAccount",
|
||||
"shareName": "share1",
|
||||
"dataSetName": "dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"dataSet": {
|
||||
"kind": "SynapseWorkspaceSqlPoolTable",
|
||||
"properties": {
|
||||
"synapseWorkspaceSqlPoolTableResourceId": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool/schemas/dbo/tables/table1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"synapseWorkspaceSqlPoolTableResourceId": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool/schemas/dbo/tables/table1"
|
||||
},
|
||||
"kind": "SynapseWorkspaceSqlPoolTable",
|
||||
"id": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/sourceAccount/shares/share1/dataSets/dataset1",
|
||||
"name": "dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"synapseWorkspaceSqlPoolTableResourceId": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool/schemas/dbo/tables/table1"
|
||||
},
|
||||
"kind": "SynapseWorkspaceSqlPoolTable",
|
||||
"id": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/sourceAccount/shares/share1/dataSets/dataset1",
|
||||
"name": "dataset1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/dataSets"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"invitationName": "Invitation1",
|
||||
"api-version": "2020-09-01",
|
||||
"invitation": {
|
||||
"properties": {
|
||||
"targetEmail": "receiver@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"sentAt": "2018-11-26T22:33:24.5785265Z",
|
||||
"targetEmail": "receiver@microsoft.com",
|
||||
"respondedAt": null,
|
||||
"invitationStatus": "Pending",
|
||||
"userEmail": "johnsmith@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/invitations/Invitation1",
|
||||
"name": "Invitation1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/invitations"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"sentAt": "2018-11-26T22:33:24.5785265Z",
|
||||
"targetEmail": "receiver@microsoft.com",
|
||||
"respondedAt": null,
|
||||
"invitationStatus": "Pending",
|
||||
"userEmail": "johnsmith@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/invitations/Invitation1",
|
||||
"name": "Invitation1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/invitations"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"invitationName": "Invitation1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"invitationName": "Invitation1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"sentAt": "2018-11-26T22:33:24.5785265Z",
|
||||
"targetEmail": "receiver@microsoft.com",
|
||||
"respondedAt": null,
|
||||
"invitationStatus": "Pending",
|
||||
"userEmail": "johnsmith@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/invitations/Invitation1",
|
||||
"name": "Invitation1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/invitations"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "properties/targetEmail eq 'johnsmith@microsoft.com'",
|
||||
"orderBy": "properties/sentAt"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"sentAt": "2018-11-26T22:33:24.5785265Z",
|
||||
"targetEmail": "johnsmith@microsoft.com",
|
||||
"invitationStatus": "Accepted",
|
||||
"userEmail": "johnsmith@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/account1/shares/share1/invitations/ancd",
|
||||
"name": "ancd",
|
||||
"type": "Microsoft.DataShare/Invitation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"name": "Microsoft.DataShare/operations/read",
|
||||
"display": {
|
||||
"provider": "Microsoft Data Share",
|
||||
"resource": "Data Share Resource Provider",
|
||||
"operation": "Read all operations",
|
||||
"description": "Reads all available operations in Data Share Resource Provider."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.DataShare/register/action",
|
||||
"display": {
|
||||
"provider": "Microsoft Data Share",
|
||||
"resource": "Data Share Resource Provider",
|
||||
"operation": "Register Data Share Resource Provider",
|
||||
"description": "Register the subscription for the Data Share Resource Provider."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.DataShare/unregister/action",
|
||||
"display": {
|
||||
"provider": "Microsoft Data Share",
|
||||
"resource": "Data Share Resource Provider",
|
||||
"operation": "Unregister Data Share Resource Provider",
|
||||
"description": "Unregister the subscription for the Data Share Resource Provider."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"api-version": "2020-09-01",
|
||||
"providerShareSubscription": {
|
||||
"properties": {
|
||||
"expirationDate": "2020-12-26T22:33:24.5785265Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 18 Nov 2020 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"consumerName": "John Smith",
|
||||
"consumerEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2020-11-18T08:45:40.9005877Z",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sharedAt": "2020-11-19T08:45:40.9005877Z",
|
||||
"consumerTenantName": "Microsoft",
|
||||
"shareSubscriptionObjectId": "1ce51340-19be-4ef2-9450-0ea0b1324cbb",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"expirationDate": "2020-12-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"consumerName": "John Smith",
|
||||
"consumerEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2018-12-13T08:52:42.6224087Z",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sharedAt": "2018-12-13T08:45:40.9005877Z",
|
||||
"consumerTenantName": "Microsoft",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"consumerName": "John Smith",
|
||||
"consumerEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2018-12-13T08:52:42.6224087Z",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sharedAt": "2018-12-13T08:45:40.9005877Z",
|
||||
"consumerTenantName": "Microsoft",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"api-version": "2020-09-01",
|
||||
"providerShareSubscription": {
|
||||
"properties": {
|
||||
"expirationDate": "2020-12-26T22:33:24.5785265Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"consumerName": "John Smith",
|
||||
"consumerEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2018-12-13T08:52:42.6224087Z",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sharedAt": "2018-12-13T08:45:40.9005877Z",
|
||||
"consumerTenantName": "Microsoft",
|
||||
"shareSubscriptionObjectId": "1ce51340-19be-4ef2-9450-0ea0b1324cbb",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"consumerName": "John Smith",
|
||||
"consumerEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2018-12-13T08:52:42.6224087Z",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sharedAt": "2018-12-13T08:45:40.9005877Z",
|
||||
"consumerTenantName": "Microsoft",
|
||||
"shareSubscriptionStatus": "Revoked",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2019-11-01"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"consumerName": "John Smith",
|
||||
"consumerEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2018-12-13T08:52:42.6224087Z",
|
||||
"providerName": "John Smith",
|
||||
"providerEmail": "john.smith@microsoft.com",
|
||||
"sharedAt": "2018-12-13T08:45:40.9005877Z",
|
||||
"consumerTenantName": "Microsoft",
|
||||
"shareSubscriptionStatus": "Revoking"
|
||||
},
|
||||
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"shareSubscriptionSynchronization": {
|
||||
"synchronizationId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
|
||||
},
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"startTime": "2019-06-30T02:37:48.4979104Z",
|
||||
"status": "Cancelled",
|
||||
"synchronizationId": "343c4772-ad68-41aa-91b9-bab1c92f9c27"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/shareSub1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
},
|
||||
"body": {
|
||||
"startTime": "2019-06-30T02:37:48.4979104Z",
|
||||
"status": "Queued",
|
||||
"synchronizationId": "343c4772-ad68-41aa-91b9-bab1c92f9c27"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"api-version": "2020-09-01",
|
||||
"shareSubscription": {
|
||||
"properties": {
|
||||
"invitationId": "12345678-1234-1234-12345678abd",
|
||||
"sourceShareLocation": "eastus2",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2019-01-17T22:32:36.8185016Z",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"shareName": "share1",
|
||||
"shareDescription": "Some share",
|
||||
"shareTerms": "Confidential",
|
||||
"sourceShareLocation": "eastus2",
|
||||
"shareKind": "CopyBased",
|
||||
"userEmail": "john.smith@microsoft.com",
|
||||
"providerName": "Jack Rose",
|
||||
"providerEmail": "jack.rose@microsoft.com",
|
||||
"providerTenantName": "Microsoft",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/sharesubscriptions/ShareSubscription1",
|
||||
"name": "ShareSubscription1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2019-01-17T22:32:36.8185016Z",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"shareName": "share1",
|
||||
"shareDescription": "Some share",
|
||||
"shareTerms": "Confidential",
|
||||
"sourceShareLocation": "eastus2",
|
||||
"shareKind": "CopyBased",
|
||||
"userEmail": "john.smith@microsoft.com",
|
||||
"providerName": "Jack Rose",
|
||||
"providerEmail": "jack.rose@microsoft.com",
|
||||
"providerTenantName": "Microsoft",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/sharesubscriptions/ShareSubscription1",
|
||||
"name": "ShareSubscription1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"status": "Succeeded"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/shareSub1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"userEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2019-01-17T22:32:36.8185016Z",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"sourceShareLocation": "eastus2",
|
||||
"shareName": "share1",
|
||||
"shareDescription": "Some share",
|
||||
"shareTerms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"provisioningState": "Succeeded",
|
||||
"providerTenantName": "ShareSenderCompanyName",
|
||||
"providerName": "Jack Rose",
|
||||
"providerEmail": "jack.rose@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/sharesubscriptions/ShareSubscription1",
|
||||
"name": "ShareSubscription1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "name eq 'ShareSubscription1'",
|
||||
"orderBy": "properties/createdAt"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"invitationId": "12345678-1234-1234-12345678abd",
|
||||
"sourceShareLocation": "eastus2",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"userName": "johnsmith@microsoft.com",
|
||||
"createdAt": "2018-11-14T06:15:15.6818898Z",
|
||||
"userEmail": "john.smith@microsoft.com",
|
||||
"shareName": "share1",
|
||||
"shareDescription": "Some share",
|
||||
"shareTerms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"providerTenantName": "Microsoft",
|
||||
"providerName": "Jack Rose",
|
||||
"providerEmail": "jack.rose@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/sharesubscriptions/ShareSubscription1",
|
||||
"name": "ShareSubscription1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"userName": "John Smith",
|
||||
"userEmail": "john.smith@microsoft.com",
|
||||
"createdAt": "2020-12-17T22:32:36.8185016Z",
|
||||
"shareSubscriptionStatus": "Active",
|
||||
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
|
||||
"sourceShareLocation": "eastus2",
|
||||
"shareName": "share1",
|
||||
"shareDescription": "Some share",
|
||||
"shareTerms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"providerTenantName": "Microsoft",
|
||||
"providerName": "Jack Rose",
|
||||
"providerEmail": "jack.rose@microsoft.com",
|
||||
"expirationDate": "2020-08-26T22:33:24.5785265Z"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/sharesubscriptions/ShareSubscription1",
|
||||
"name": "ShareSubscription1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSub1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"recurrenceInterval": "Hour",
|
||||
"synchronizationTime": "2019-03-15T19:45:58Z"
|
||||
},
|
||||
"kind": "ScheduleBased"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSub1",
|
||||
"shareSubscriptionSynchronization": {
|
||||
"synchronizationId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
|
||||
},
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "name eq 'datasetmapping1'",
|
||||
"orderBy": "durationMs"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"endTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"startTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"durationMs": 2000,
|
||||
"status": "Completed",
|
||||
"name": "datasetmapping1",
|
||||
"dataSetId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb",
|
||||
"dataSetType": "Blob"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSub1",
|
||||
"api-version": "2020-09-01",
|
||||
"orderBy": "durationMs"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"endTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"startTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"durationMs": 2000,
|
||||
"status": "Completed",
|
||||
"message": "nda",
|
||||
"synchronizationId": "runId",
|
||||
"synchronizationMode": "Incremental"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"api-version": "2020-09-01",
|
||||
"synchronize": {
|
||||
"synchronizationMode": "Incremental"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"startTime": "2019-06-30T02:37:48.4979104Z",
|
||||
"status": "Succeeded",
|
||||
"synchronizationId": "343c4772-ad68-41aa-91b9-bab1c92f9c27"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/shareSub1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
},
|
||||
"body": {
|
||||
"startTime": "2019-06-30T02:37:48.4979104Z",
|
||||
"status": "Accepted",
|
||||
"synchronizationId": "343c4772-ad68-41aa-91b9-bab1c92f9c27"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01",
|
||||
"share": {
|
||||
"properties": {
|
||||
"description": "share description",
|
||||
"terms": "Confidential",
|
||||
"shareKind": "CopyBased"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"description": "share description",
|
||||
"terms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T06:15:15.6818898Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1",
|
||||
"name": "Share1",
|
||||
"type": "Microsoft.DataShare/accounts/shares"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"description": "share description",
|
||||
"terms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T06:15:15.6818898Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1",
|
||||
"name": "Share1",
|
||||
"type": "Microsoft.DataShare/accounts/shares"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"status": "Succeeded"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true,
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/shareSub1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"properties": {
|
||||
"description": "share description",
|
||||
"terms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T06:15:15.6818898Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1",
|
||||
"name": "Share1",
|
||||
"type": "Microsoft.DataShare/accounts/shares"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "12345678-1234-1234-12345678abc",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "name eq 'Share1'",
|
||||
"orderBy": "properties/createdAt"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"properties": {
|
||||
"description": "share description",
|
||||
"terms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2018-11-14T06:15:15.6818898Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1",
|
||||
"name": "Share1",
|
||||
"type": "Microsoft.DataShare/accounts/shares"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"description": "share description",
|
||||
"terms": "Confidential",
|
||||
"shareKind": "CopyBased",
|
||||
"userName": "John Smith",
|
||||
"createdAt": "2019-10-14T06:15:15.6818898Z",
|
||||
"userEmail": "johnsmith@microsoft.com"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1",
|
||||
"name": "Share1",
|
||||
"type": "Microsoft.DataShare/accounts/shares"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"shareSynchronization": {
|
||||
"synchronizationId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
|
||||
},
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "name eq 'dataset1'",
|
||||
"orderBy": "durationMs"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"endTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"startTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"durationMs": 2000,
|
||||
"status": "Completed",
|
||||
"name": "dataset1",
|
||||
"dataSetId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb",
|
||||
"dataSetType": "Blob"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01",
|
||||
"filter": "consumerTenantName eq 'nda'"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"endTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"startTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"durationMs": 2000,
|
||||
"status": "Completed",
|
||||
"message": "nda",
|
||||
"consumerTenantName": "nda",
|
||||
"consumerName": "abc@yahoo.com",
|
||||
"synchronizationId": "runId",
|
||||
"synchronizationMode": "Incremental"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"synchronizationSettingName": "Dataset1",
|
||||
"api-version": "2020-09-01",
|
||||
"synchronizationSetting": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Succeeded",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/synchronizationSettings/SynchronizationSetting1",
|
||||
"name": "SynchronizationSetting1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/synchronizationSettings"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true
|
||||
},
|
||||
"body": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Succeeded",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/synchronizationSettings/SynchronizationSetting1",
|
||||
"name": "SynchronizationSetting1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/synchronizationSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"synchronizationSettingName": "SynchronizationSetting1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"status": "Succeeded"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-retry-after-ms": "30",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shares/share1/synchronizationSettings/trigger1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"synchronizationSettingName": "SynchronizationSetting1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Succeeded",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/synchronizationSettings/SynchronizationSetting1",
|
||||
"name": "SynchronizationSetting1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/synchronizationSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareName": "Share1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/synchronizationSettings/SynchronizationSetting1",
|
||||
"name": "SynchronizationSetting1",
|
||||
"type": "Microsoft.DataShare/accounts/shares/synchronizationSettings"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"triggerName": "Trigger1",
|
||||
"api-version": "2020-09-01",
|
||||
"trigger": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"synchronizationMode": "Incremental"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Succeeded",
|
||||
"triggerStatus": "Active",
|
||||
"synchronizationMode": "Incremental",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/triggers/Trigger1",
|
||||
"name": "Trigger1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/triggers"
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-long-running-operation": true
|
||||
},
|
||||
"body": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Creating",
|
||||
"triggerStatus": "Active",
|
||||
"synchronizationMode": "Incremental",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/triggers/Trigger1",
|
||||
"name": "Trigger1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/triggers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"triggerName": "Trigger1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"status": "Succeeded"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
|
||||
"x-ms-retry-after-ms": "30",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shareSubscriptions/shareSub1/triggers/trigger1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"triggerName": "Trigger1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
|
||||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-tenant-reads": "14999",
|
||||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
|
||||
},
|
||||
"body": {
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Succeeded",
|
||||
"triggerStatus": "Active",
|
||||
"synchronizationMode": "Incremental",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/triggers/Trigger1",
|
||||
"name": "Trigger1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/triggers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"parameters": {
|
||||
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
|
||||
"resourceGroupName": "SampleResourceGroup",
|
||||
"accountName": "Account1",
|
||||
"shareSubscriptionName": "ShareSubscription1",
|
||||
"triggerName": "Trigger1",
|
||||
"api-version": "2020-09-01"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {
|
||||
"Date": "Wed, 13 Sep 2017 17:33:55 GMT",
|
||||
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"x-ms-ratelimit-remaining-subscription-reads": "14993",
|
||||
"x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed"
|
||||
},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"kind": "ScheduleBased",
|
||||
"properties": {
|
||||
"synchronizationTime": "2018-11-14T04:47:52.9614956Z",
|
||||
"recurrenceInterval": "Day",
|
||||
"provisioningState": "Succeeded",
|
||||
"synchronizationMode": "Incremental",
|
||||
"userName": "John Smith"
|
||||
},
|
||||
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/triggers/Trigger1",
|
||||
"name": "Trigger1",
|
||||
"type": "Microsoft.DataShare/accounts/shareSubscriptions/triggers"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
"operationId": "Application_Create",
|
||||
"description": "This example shows how to create or update a application resource.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"applicationResourceName": "sampleApplication",
|
||||
"applicationResourceDescription": {
|
||||
"properties": {
|
||||
"description": "Service Fabric Mesh sample application.",
|
||||
"services": [
|
||||
{
|
||||
"name": "helloWorldService",
|
||||
"properties": {
|
||||
"description": "SeaBreeze Hello World Service.",
|
||||
"osType": "Linux",
|
||||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-alpine",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
"port": 80
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"requests": {
|
||||
"memoryInGB": 1,
|
||||
"cpu": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkRefs": [
|
||||
{
|
||||
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
|
||||
"endpointRefs": [
|
||||
{
|
||||
"name": "helloWorldListener"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"replicaCount": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags": {},
|
||||
"location": "EastUS"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"type": "Microsoft.ServiceFabricMesh/applications",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication",
|
||||
"name": "sampleApplication",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Succeeded",
|
||||
"description": "Service Fabric Mesh sample application.",
|
||||
"serviceNames": [
|
||||
"helloWorldService"
|
||||
],
|
||||
"healthState": "Ok",
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"body": {
|
||||
"type": "Microsoft.ServiceFabricMesh/applications",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication",
|
||||
"name": "sampleApplication",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Updating",
|
||||
"description": "Service Fabric Mesh sample application.",
|
||||
"serviceNames": [
|
||||
"helloWorldService"
|
||||
],
|
||||
"healthState": "Unknown",
|
||||
"status": "Creating"
|
||||
}
|
||||
}
|
||||
},
|
||||
"202": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"operationId": "Application_Delete",
|
||||
"description": "This example shows how to delete an existing application resource. If the application resource exists and is deleted successfully, an empty response with 200 status code is returned. If the application resource does not exit, an empty response with 204 status code is returned.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"applicationResourceName": "sampleApplication"
|
||||
},
|
||||
"responses": {
|
||||
"200": {},
|
||||
"202": {},
|
||||
"204": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"operationId": "Application_Get",
|
||||
"description": "This example shows how to get a application resource. If the application resource exists, its description is returned along with an OK (200) status code. If the application resource does not exist, an error is returned with an appropriate status code.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"applicationResourceName": "sampleApplication"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"type": "Microsoft.ServiceFabricMesh/applications",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication",
|
||||
"name": "sampleApplication",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Succeeded",
|
||||
"description": "Service Fabric Mesh sample application.",
|
||||
"healthState": "Ok",
|
||||
"serviceNames": [
|
||||
"helloWorldService"
|
||||
],
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"operationId": "Application_ListByResourceGroup",
|
||||
"description": "This example shows how to list all application resources within a specified resource group.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"type": "Microsoft.ServiceFabricMesh/applications",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication",
|
||||
"name": "sampleApplication",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Succeeded",
|
||||
"description": "Service Fabric Mesh sample application.",
|
||||
"healthState": "Ok",
|
||||
"serviceNames": [
|
||||
"helloWorldService"
|
||||
],
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"operationId": "Application_ListBySubscriptionId",
|
||||
"description": "This example shows how to list all application resources for a specified subscription.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"type": "Microsoft.ServiceFabricMesh/applications",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication",
|
||||
"name": "sampleApplication",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Succeeded",
|
||||
"description": "Service Fabric Mesh sample application.",
|
||||
"healthState": "Ok",
|
||||
"serviceNames": [
|
||||
"helloWorldService"
|
||||
],
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"operationId": "Service_Get",
|
||||
"description": "This example shows how to get a service resource for a given application. If the service resource exists, its description is returned along with an OK (200) status code. If the service resource does not exist, an error is returned with an appropriate status code.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"applicationResourceName": "sampleApplication",
|
||||
"serviceResourceName": "helloWorldService"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"name": "helloWorldService",
|
||||
"type": "Microsoft.ServiceFabricMesh/services",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication/services/helloWorldService",
|
||||
"properties": {
|
||||
"description": "SeaBreeze Hello World Service.",
|
||||
"osType": "Linux",
|
||||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-alpine",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
"port": 80
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"requests": {
|
||||
"memoryInGB": 1,
|
||||
"cpu": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkRefs": [
|
||||
{
|
||||
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
|
||||
"endpointRefs": [
|
||||
{
|
||||
"name": "helloWorldListener"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"replicaCount": 1,
|
||||
"healthState": "Ok",
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"operationId": "Service_List",
|
||||
"description": "This example shows how to list all services of a given application.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"applicationResourceName": "sampleApplication"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"name": "helloWorldService",
|
||||
"type": "Microsoft.ServiceFabricMesh/services",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication/services/helloWorldService",
|
||||
"properties": {
|
||||
"description": "SeaBreeze Hello World Service.",
|
||||
"osType": "Linux",
|
||||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-alpine",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
"port": 80
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"requests": {
|
||||
"memoryInGB": 1,
|
||||
"cpu": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkRefs": [
|
||||
{
|
||||
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
|
||||
"endpointRefs": [
|
||||
{
|
||||
"name": "helloWorldListener"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"replicaCount": 1,
|
||||
"healthState": "Ok",
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"operationId": "CodePackage_GetContainerLogs",
|
||||
"description": "This example shows how to get logs from the container of service replica. If the container exists, the logs are returned with an OK (200) status code, otherwise an error is returned with an appropriate status code.",
|
||||
"parameters": {
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"api-version": "6.4-preview",
|
||||
"applicationResourceName": "sbzDocApp",
|
||||
"serviceResourceName": "sbzDocService",
|
||||
"replicaName": "0",
|
||||
"codePackageName": "sbzDocCode"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"content": " * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)\n * Downloading style https://assets-cdn.github.com/assets/frameworks-8f281eb0a8d2308ceb36e714ba3c3aec.css\n * Downloading style https://assets-cdn.github.com/assets/github-a698da0d53574b056d3c79ac732d4a70.css\n * Downloading style https://assets-cdn.github.com/assets/site-83dc1f7ebc9c7461fe1eab799b56c4c4.css\n * Cached all downloads in /root/.grip/cache-4.5.2\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET / HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/asset/frameworks-8f281eb0a8d2308ceb36e714ba3c3aec.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/asset/site-83dc1f7ebc9c7461fe1eab799b56c4c4.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/asset/github-a698da0d53574b056d3c79ac732d4a70.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/static/octicons/octicons.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:03] \"GET /__/grip/static/octicons/octicons.woff2?ef21c39f0ca9b1b5116e5eb7ac5eabe6 HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:03] \"GET /__/grip/static/favicon.ico HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:05] \"GET /seabreeze-index.md HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:09] \"GET /seabreeze-api-application_get.md HTTP/1.1\" 200 -\n"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
"operationId": "ServiceReplica_Get",
|
||||
"description": "This example shows how to get information about given replica of a service. If the replica exists, its description is returned along with an OK (200) status code. If the replica does not exist, an error is returned with an appropriate status code.",
|
||||
"parameters": {
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"applicationResourceName": "helloWorldApp",
|
||||
"serviceResourceName": "helloWorldService",
|
||||
"replicaName": "0"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"osType": "Linux",
|
||||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-alpine",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
"port": 80
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"requests": {
|
||||
"memoryInGB": 1,
|
||||
"cpu": 1
|
||||
}
|
||||
},
|
||||
"instanceView": {
|
||||
"restartCount": 1,
|
||||
"currentState": {
|
||||
"state": "Running",
|
||||
"exitCode": "0"
|
||||
},
|
||||
"previousState": {
|
||||
"state": "NotSpecified",
|
||||
"exitCode": "0"
|
||||
},
|
||||
"events": [
|
||||
{
|
||||
"count": 3,
|
||||
"firstTimestamp": "2018-04-05T22:37:20.9016844",
|
||||
"lastTimestamp": "2018-04-06T06:36:06.0887046",
|
||||
"name": "Created",
|
||||
"message": "Container created and started.",
|
||||
"type": "Normal"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"firstTimestamp": "2018-04-06T06:34:00.6622454",
|
||||
"lastTimestamp": "2018-04-06T06:34:00.6622454",
|
||||
"name": "Stopped",
|
||||
"message": "Container was stopped.",
|
||||
"type": "Normal"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkRefs": [
|
||||
{
|
||||
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
|
||||
"endpointRefs": [
|
||||
{
|
||||
"name": "helloWorldListener"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"replicaName": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
{
|
||||
"operationId": "ServiceReplica_List",
|
||||
"description": "This example shows how to list replicas of a service resources for a given application.",
|
||||
"parameters": {
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"applicationResourceName": "sampleApplication",
|
||||
"serviceResourceName": "helloWorldService"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"osType": "Linux",
|
||||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-alpine",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
"port": 80
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"requests": {
|
||||
"memoryInGB": 1,
|
||||
"cpu": 1
|
||||
}
|
||||
},
|
||||
"instanceView": {
|
||||
"restartCount": 1,
|
||||
"currentState": {
|
||||
"state": "Running",
|
||||
"exitCode": "0"
|
||||
},
|
||||
"previousState": {
|
||||
"state": "NotSpecified",
|
||||
"exitCode": "0"
|
||||
},
|
||||
"events": [
|
||||
{
|
||||
"count": 3,
|
||||
"firstTimestamp": "2018-04-05T22:37:20.9016844",
|
||||
"lastTimestamp": "2018-04-06T06:36:06.0887046",
|
||||
"name": "Created",
|
||||
"message": "Container created and started.",
|
||||
"type": "Normal"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"firstTimestamp": "2018-04-06T06:34:00.6622454",
|
||||
"lastTimestamp": "2018-04-06T06:34:00.6622454",
|
||||
"name": "Stopped",
|
||||
"message": "Container was stopped.",
|
||||
"type": "Normal"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkRefs": [
|
||||
{
|
||||
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
|
||||
"endpointRefs": [
|
||||
{
|
||||
"name": "helloWorldListener"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"replicaName": "0"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
{
|
||||
"operationId": "Gateway_Create",
|
||||
"description": "This example shows how to create or update a gateway resource.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"gatewayResourceName": "sampleGateway",
|
||||
"gatewayResourceDescription": {
|
||||
"properties": {
|
||||
"description": "Service Fabric Mesh sample gateway.",
|
||||
"sourceNetwork": {
|
||||
"name": "Open"
|
||||
},
|
||||
"destinationNetwork": {
|
||||
"name": "helloWorldNetwork"
|
||||
},
|
||||
"tcp": [
|
||||
{
|
||||
"name": "web",
|
||||
"port": 80,
|
||||
"destination": {
|
||||
"applicationName": "helloWorldApp",
|
||||
"serviceName": "helloWorldService",
|
||||
"endpointName": "helloWorldListener"
|
||||
}
|
||||
}
|
||||
],
|
||||
"http": [
|
||||
{
|
||||
"name": "contosoWebsite",
|
||||
"port": 8081,
|
||||
"hosts": [
|
||||
{
|
||||
"name": "contoso.com",
|
||||
"routes": [
|
||||
{
|
||||
"name": "index",
|
||||
"match": {
|
||||
"path": {
|
||||
"value": "/index",
|
||||
"rewrite": "/",
|
||||
"type": "prefix"
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "accept",
|
||||
"value": "application/json",
|
||||
"type": "exact"
|
||||
}
|
||||
]
|
||||
},
|
||||
"destination": {
|
||||
"applicationName": "httpHelloWorldApp",
|
||||
"serviceName": "indexService",
|
||||
"endpointName": "indexHttpEndpoint"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags": {},
|
||||
"location": "EastUS"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"type": "Microsoft.ServiceFabricMesh/gateways",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/gateways/sampleGateway",
|
||||
"name": "sampleGateway",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Succeeded",
|
||||
"description": "Service Fabric Mesh sample gateway.",
|
||||
"sourceNetwork": {
|
||||
"name": "Open"
|
||||
},
|
||||
"destinationNetwork": {
|
||||
"name": "helloWorldNetwork"
|
||||
},
|
||||
"tcp": [
|
||||
{
|
||||
"name": "web",
|
||||
"port": 80,
|
||||
"destination": {
|
||||
"applicationName": "helloWorldApp",
|
||||
"serviceName": "helloWorldService",
|
||||
"endpointName": "helloWorldListener"
|
||||
}
|
||||
}
|
||||
],
|
||||
"http": [
|
||||
{
|
||||
"name": "contosoWebsite",
|
||||
"port": 8081,
|
||||
"hosts": [
|
||||
{
|
||||
"name": "contoso.com",
|
||||
"routes": [
|
||||
{
|
||||
"name": "index",
|
||||
"match": {
|
||||
"path": {
|
||||
"value": "/index",
|
||||
"rewrite": "/",
|
||||
"type": "prefix"
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "accept",
|
||||
"value": "application/json",
|
||||
"type": "exact"
|
||||
}
|
||||
]
|
||||
},
|
||||
"destination": {
|
||||
"applicationName": "httpHelloWorldApp",
|
||||
"serviceName": "indexService",
|
||||
"endpointName": "indexHttpEndpoint"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ipAddress": "192.168.1.1",
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"body": {
|
||||
"type": "Microsoft.ServiceFabricMesh/gateways",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/gateways/sampleGateway",
|
||||
"name": "sampleGateway",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Updating",
|
||||
"description": "Service Fabric Mesh sample gateway.",
|
||||
"sourceNetwork": {
|
||||
"name": "Open"
|
||||
},
|
||||
"destinationNetwork": {
|
||||
"name": "helloWorldNetwork"
|
||||
},
|
||||
"tcp": [
|
||||
{
|
||||
"name": "web",
|
||||
"port": 80,
|
||||
"destination": {
|
||||
"applicationName": "helloWorldApp",
|
||||
"serviceName": "helloWorldService",
|
||||
"endpointName": "helloWorldListener"
|
||||
}
|
||||
}
|
||||
],
|
||||
"http": [
|
||||
{
|
||||
"name": "contosoWebsite",
|
||||
"port": 8081,
|
||||
"hosts": [
|
||||
{
|
||||
"name": "contoso.com",
|
||||
"routes": [
|
||||
{
|
||||
"name": "index",
|
||||
"match": {
|
||||
"path": {
|
||||
"value": "/index",
|
||||
"rewrite": "/",
|
||||
"type": "prefix"
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "accept",
|
||||
"value": "application/json",
|
||||
"type": "exact"
|
||||
}
|
||||
]
|
||||
},
|
||||
"destination": {
|
||||
"applicationName": "httpHelloWorldApp",
|
||||
"serviceName": "indexService",
|
||||
"endpointName": "indexHttpEndpoint"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"status": "Creating"
|
||||
}
|
||||
}
|
||||
},
|
||||
"202": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"operationId": "Gateway_Delete",
|
||||
"description": "This example shows how to delete an existing gateway resource. If the gateway resource exists and is deleted successfully, an empty response with 200 status code is returned. If the gateway resource does not exist, an empty response with 204 status code is returned.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"gatewayResourceName": "sampleGateway"
|
||||
},
|
||||
"responses": {
|
||||
"200": {},
|
||||
"202": {},
|
||||
"204": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"operationId": "Gateway_Get",
|
||||
"description": "This example shows how to get a gateway resource. If the gateway resource exists, its description is returned along with an OK (200) status code. If the gateway resource does not exist, an error is returned with an appropriate status code.",
|
||||
"parameters": {
|
||||
"api-version": "2018-09-01-privatepreview",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroupName": "sbz_demo",
|
||||
"gatewayResourceName": "sampleGateway"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"type": "Microsoft.ServiceFabricMesh/gateways",
|
||||
"location": "EastUS",
|
||||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/gateways/sampleGateway",
|
||||
"name": "sampleGateway",
|
||||
"tags": {},
|
||||
"properties": {
|
||||
"provisioningState": "Succeeded",
|
||||
"description": "Service Fabric Mesh sample gateway.",
|
||||
"sourceNetwork": {
|
||||
"name": "Open"
|
||||
},
|
||||
"destinationNetwork": {
|
||||
"name": "helloWorldNetwork"
|
||||
},
|
||||
"tcp": [
|
||||
{
|
||||
"name": "web",
|
||||
"port": 80,
|
||||
"destination": {
|
||||
"applicationName": "helloWorldApp",
|
||||
"serviceName": "helloWorldService",
|
||||
"endpointName": "helloWorldListener"
|
||||
}
|
||||
}
|
||||
],
|
||||
"http": [
|
||||
{
|
||||
"name": "contosoWebsite",
|
||||
"port": 8081,
|
||||
"hosts": [
|
||||
{
|
||||
"name": "contoso.com",
|
||||
"routes": [
|
||||
{
|
||||
"name": "index",
|
||||
"match": {
|
||||
"path": {
|
||||
"value": "/index",
|
||||
"rewrite": "/",
|
||||
"type": "prefix"
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "accept",
|
||||
"value": "application/json",
|
||||
"type": "exact"
|
||||
}
|
||||
]
|
||||
},
|
||||
"destination": {
|
||||
"applicationName": "httpHelloWorldApp",
|
||||
"serviceName": "indexService",
|
||||
"endpointName": "indexHttpEndpoint"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ipAddress": "192.168.1.1",
|
||||
"status": "Ready"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче