|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "HDInsightManagementClient", |
| 5 | + "description": "The HDInsight Management Client.", |
| 6 | + "version": "2023-08-15-preview" |
| 7 | + }, |
| 8 | + "host": "management.azure.com", |
| 9 | + "schemes": [ |
| 10 | + "https" |
| 11 | + ], |
| 12 | + "consumes": [ |
| 13 | + "application/json" |
| 14 | + ], |
| 15 | + "produces": [ |
| 16 | + "application/json" |
| 17 | + ], |
| 18 | + "security": [ |
| 19 | + { |
| 20 | + "azure_auth": [ |
| 21 | + "user_impersonation" |
| 22 | + ] |
| 23 | + } |
| 24 | + ], |
| 25 | + "securityDefinitions": { |
| 26 | + "azure_auth": { |
| 27 | + "type": "oauth2", |
| 28 | + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", |
| 29 | + "flow": "implicit", |
| 30 | + "description": "Azure Active Directory OAuth2 Flow", |
| 31 | + "scopes": { |
| 32 | + "user_impersonation": "impersonate your user account" |
| 33 | + } |
| 34 | + } |
| 35 | + }, |
| 36 | + "paths": { |
| 37 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations": { |
| 38 | + "post": { |
| 39 | + "tags": [ |
| 40 | + "Configurations" |
| 41 | + ], |
| 42 | + "operationId": "Configurations_List", |
| 43 | + "description": "Gets all configuration information for an HDI cluster.", |
| 44 | + "x-ms-examples": { |
| 45 | + "Get all configuration information": { |
| 46 | + "$ref": "./examples/HDI_Configurations_List.json" |
| 47 | + } |
| 48 | + }, |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "#/parameters/ResourceGroupNameParameter" |
| 55 | + }, |
| 56 | + { |
| 57 | + "$ref": "#/parameters/ClusterNameParameter" |
| 58 | + }, |
| 59 | + { |
| 60 | + "$ref": "#/parameters/ApiVersionParameter" |
| 61 | + } |
| 62 | + ], |
| 63 | + "responses": { |
| 64 | + "default": { |
| 65 | + "description": "Error response describing why the operation failed.", |
| 66 | + "schema": { |
| 67 | + "$ref": "./operations.json#/definitions/ErrorResponse" |
| 68 | + } |
| 69 | + }, |
| 70 | + "200": { |
| 71 | + "description": "OK response definition.", |
| 72 | + "schema": { |
| 73 | + "$ref": "#/definitions/ClusterConfigurations" |
| 74 | + } |
| 75 | + } |
| 76 | + } |
| 77 | + } |
| 78 | + }, |
| 79 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}": { |
| 80 | + "post": { |
| 81 | + "tags": [ |
| 82 | + "Configurations" |
| 83 | + ], |
| 84 | + "operationId": "Configurations_Update", |
| 85 | + "description": "Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead.", |
| 86 | + "deprecated": true, |
| 87 | + "x-ms-examples": { |
| 88 | + "Enable HTTP connectivity": { |
| 89 | + "$ref": "./examples/ChangeHttpConnectivityEnable.json" |
| 90 | + }, |
| 91 | + "Disable HTTP connectivity": { |
| 92 | + "$ref": "./examples/ChangeHttpConnectivityDisable.json" |
| 93 | + } |
| 94 | + }, |
| 95 | + "parameters": [ |
| 96 | + { |
| 97 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 98 | + }, |
| 99 | + { |
| 100 | + "$ref": "#/parameters/ResourceGroupNameParameter" |
| 101 | + }, |
| 102 | + { |
| 103 | + "$ref": "#/parameters/ClusterNameParameter" |
| 104 | + }, |
| 105 | + { |
| 106 | + "$ref": "#/parameters/ConfigurationNameParameter" |
| 107 | + }, |
| 108 | + { |
| 109 | + "$ref": "#/parameters/ApiVersionParameter" |
| 110 | + }, |
| 111 | + { |
| 112 | + "name": "parameters", |
| 113 | + "in": "body", |
| 114 | + "required": true, |
| 115 | + "schema": { |
| 116 | + "$ref": "#/definitions/ClusterConfiguration" |
| 117 | + }, |
| 118 | + "description": "The cluster configurations." |
| 119 | + } |
| 120 | + ], |
| 121 | + "responses": { |
| 122 | + "default": { |
| 123 | + "description": "Error response describing why the operation failed.", |
| 124 | + "schema": { |
| 125 | + "$ref": "./operations.json#/definitions/ErrorResponse" |
| 126 | + } |
| 127 | + }, |
| 128 | + "200": { |
| 129 | + "description": "Ok response definition" |
| 130 | + }, |
| 131 | + "202": { |
| 132 | + "description": "Accepted response definition" |
| 133 | + }, |
| 134 | + "204": { |
| 135 | + "description": "No content response definition" |
| 136 | + } |
| 137 | + }, |
| 138 | + "x-ms-long-running-operation": true, |
| 139 | + "x-ms-long-running-operation-options": { |
| 140 | + "final-state-via": "location" |
| 141 | + } |
| 142 | + }, |
| 143 | + "get": { |
| 144 | + "tags": [ |
| 145 | + "Configurations" |
| 146 | + ], |
| 147 | + "operationId": "Configurations_Get", |
| 148 | + "description": "The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead.", |
| 149 | + "x-ms-examples": { |
| 150 | + "Get Core site settings": { |
| 151 | + "$ref": "./examples/HDI_Configurations_Get.json" |
| 152 | + } |
| 153 | + }, |
| 154 | + "parameters": [ |
| 155 | + { |
| 156 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 157 | + }, |
| 158 | + { |
| 159 | + "$ref": "#/parameters/ResourceGroupNameParameter" |
| 160 | + }, |
| 161 | + { |
| 162 | + "$ref": "#/parameters/ClusterNameParameter" |
| 163 | + }, |
| 164 | + { |
| 165 | + "$ref": "#/parameters/ConfigurationNameParameter" |
| 166 | + }, |
| 167 | + { |
| 168 | + "$ref": "#/parameters/ApiVersionParameter" |
| 169 | + } |
| 170 | + ], |
| 171 | + "responses": { |
| 172 | + "default": { |
| 173 | + "description": "Error response describing why the operation failed.", |
| 174 | + "schema": { |
| 175 | + "$ref": "./operations.json#/definitions/ErrorResponse" |
| 176 | + } |
| 177 | + }, |
| 178 | + "200": { |
| 179 | + "description": "OK response definition.", |
| 180 | + "schema": { |
| 181 | + "$ref": "#/definitions/ClusterConfiguration" |
| 182 | + } |
| 183 | + } |
| 184 | + } |
| 185 | + } |
| 186 | + } |
| 187 | + }, |
| 188 | + "definitions": { |
| 189 | + "ClusterConfiguration": { |
| 190 | + "type": "object", |
| 191 | + "additionalProperties": { |
| 192 | + "type": "string" |
| 193 | + }, |
| 194 | + "description": "The configuration object for the specified configuration for the specified cluster." |
| 195 | + }, |
| 196 | + "ClusterConfigurations": { |
| 197 | + "type": "object", |
| 198 | + "properties": { |
| 199 | + "configurations": { |
| 200 | + "description": "The configuration object for the specified configuration for the specified cluster.", |
| 201 | + "type": "object", |
| 202 | + "additionalProperties": { |
| 203 | + "$ref": "#/definitions/ClusterConfiguration" |
| 204 | + } |
| 205 | + } |
| 206 | + }, |
| 207 | + "description": "The configuration object for the specified cluster." |
| 208 | + } |
| 209 | + }, |
| 210 | + "parameters": { |
| 211 | + "SubscriptionIdParameter": { |
| 212 | + "name": "subscriptionId", |
| 213 | + "in": "path", |
| 214 | + "required": true, |
| 215 | + "type": "string", |
| 216 | + "description": "The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." |
| 217 | + }, |
| 218 | + "ResourceGroupNameParameter": { |
| 219 | + "name": "resourceGroupName", |
| 220 | + "in": "path", |
| 221 | + "required": true, |
| 222 | + "type": "string", |
| 223 | + "description": "The name of the resource group.", |
| 224 | + "x-ms-parameter-location": "method" |
| 225 | + }, |
| 226 | + "ClusterNameParameter": { |
| 227 | + "name": "clusterName", |
| 228 | + "in": "path", |
| 229 | + "required": true, |
| 230 | + "type": "string", |
| 231 | + "description": "The name of the cluster.", |
| 232 | + "x-ms-parameter-location": "method" |
| 233 | + }, |
| 234 | + "ConfigurationNameParameter": { |
| 235 | + "name": "configurationName", |
| 236 | + "in": "path", |
| 237 | + "required": true, |
| 238 | + "type": "string", |
| 239 | + "description": "The name of the cluster configuration.", |
| 240 | + "x-ms-parameter-location": "method" |
| 241 | + }, |
| 242 | + "ApiVersionParameter": { |
| 243 | + "name": "api-version", |
| 244 | + "in": "query", |
| 245 | + "required": true, |
| 246 | + "type": "string", |
| 247 | + "description": "The HDInsight client API Version." |
| 248 | + } |
| 249 | + } |
| 250 | +} |
0 commit comments