-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skumar/rch metadata api #18279
Skumar/rch metadata api #18279
Changes from 15 commits
f6fe18b
67c4abd
87a694d
f5dcf02
204f5f9
248d5e9
a18974f
7cc635d
098f775
ccb3bd5
15b90a8
0770f79
609eaa3
98611d8
b9d9b6e
20cca4b
c7fcecf
f1c9fc2
c8d7d69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -418,6 +418,82 @@ | |
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/providers/Microsoft.ResourceHealth/metadata": { | ||
"get": { | ||
"tags": [ | ||
"Metadata" | ||
], | ||
"operationId": "Metadata_List", | ||
"description": "Gets the list of metadata entities.", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK. Successfully retrieved metadata entities", | ||
"schema": { | ||
"$ref": "#/definitions/MetadataEntityListResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "DefaultErrorResponse", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"GetMetadata": { | ||
"$ref": "./examples/Metadata_List.json" | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/providers/Microsoft.ResourceHealth/metadata/{name}": { | ||
"get": { | ||
"tags": [ | ||
"Metadata" | ||
], | ||
"operationId": "Metadata_GetEntity", | ||
"description": "Gets the list of metadata entities.", | ||
"parameters": [ | ||
{ | ||
"name": "name", | ||
"in": "path", | ||
"description": "Name of metadata entity.", | ||
"required": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK. Successfully retrieved metadata entities", | ||
"schema": { | ||
"$ref": "#/definitions/MetadataEntity" | ||
} | ||
}, | ||
"default": { | ||
"description": "DefaultErrorResponse", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"GetMetadata": { | ||
"$ref": "./examples/Metadata_GetEntity.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
|
@@ -1327,6 +1403,10 @@ | |
"displayName": { | ||
"description": "The display name.", | ||
"type": "string" | ||
}, | ||
"resourceTypes": { | ||
"description": "list of resources", | ||
"type": "array" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if type is "array", "items" is required. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the parameter is in "path", this property is required and its value MUST be true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed