Skip to content

Commit

Permalink
Skumar/rch metadata api (Azure#18279)
Browse files Browse the repository at this point in the history
* Defining the APIs for the new NSP resource

* adding metadata API details

* updating ResourceHealth.json

* fixed resourcehealth.json

* fixing linter issues rch metadata

* prettier fixes

* additional linting fixes

* additional linting fixes

* suggesting lintf fixes

* model fixes

* model fixes 2

* model fixes 2

Co-authored-by: Hari Prasad Perabattula <harics24@users.noreply.github.com>
Co-authored-by: Hari Prasad Perabattula <haperaba@microsoft.com>
  • Loading branch information
3 people authored and FredericHeem committed May 16, 2022
1 parent 259674e commit 9f7143d
Show file tree
Hide file tree
Showing 4 changed files with 558 additions and 114 deletions.
114 changes: 0 additions & 114 deletions package-lock.json

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
Expand Up @@ -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": true,
"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": {
Expand Down
Loading

0 comments on commit 9f7143d

Please sign in to comment.