|
6214 | 6214 | "bodyParameters": [], |
6215 | 6215 | "descriptionHTML": "<p>Removes the global announcement banner in your enterprise.</p>" |
6216 | 6216 | }, |
6217 | | - { |
6218 | | - "verb": "get", |
6219 | | - "requestPath": "/enterprise/encryption", |
6220 | | - "serverUrl": "http(s)://api.{hostname}", |
6221 | | - "parameters": [], |
6222 | | - "x-codeSamples": [ |
6223 | | - { |
6224 | | - "lang": "Shell", |
6225 | | - "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption", |
6226 | | - "html": "<pre><code class=\"hljs language-shell\">curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption</code></pre>" |
6227 | | - }, |
6228 | | - { |
6229 | | - "lang": "JavaScript", |
6230 | | - "source": "await octokit.request('GET /enterprise/encryption')", |
6231 | | - "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'GET /enterprise/encryption'</span>)\n</code></pre>" |
6232 | | - } |
6233 | | - ], |
6234 | | - "summary": "Get an encryption key", |
6235 | | - "description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nGets information about the current key used for encryption at rest.", |
6236 | | - "operationId": "enterprise-admin/get-encryption-key", |
6237 | | - "tags": [ |
6238 | | - "enterprise-admin" |
6239 | | - ], |
6240 | | - "x-github": { |
6241 | | - "githubCloudOnly": false, |
6242 | | - "enabledForGitHubApps": false, |
6243 | | - "previews": [], |
6244 | | - "category": "enterprise-admin", |
6245 | | - "subcategory": "encryption-at-rest" |
6246 | | - }, |
6247 | | - "slug": "get-an-encryption-key", |
6248 | | - "category": "enterprise-admin", |
6249 | | - "categoryLabel": "Enterprise admin", |
6250 | | - "subcategory": "encryption-at-rest", |
6251 | | - "subcategoryLabel": "Encryption at rest", |
6252 | | - "notes": [], |
6253 | | - "bodyParameters": [], |
6254 | | - "descriptionHTML": "<p><strong>Warning:</strong> The encryption at rest endpoints are currently in beta and are subject to change.</p>\n<p>Gets information about the current key used for encryption at rest.</p>", |
6255 | | - "responses": [ |
6256 | | - { |
6257 | | - "httpStatusCode": "200", |
6258 | | - "httpStatusMessage": "OK", |
6259 | | - "description": "Response", |
6260 | | - "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"updated_at\"</span>: <span class=\"hljs-string\">\"2020-09-09T10:04:26.000Z\"</span>,\n <span class=\"hljs-attr\">\"primary_key_version\"</span>: <span class=\"hljs-string\">\"9b24a469887e416787173383958c6fb9\"</span>,\n <span class=\"hljs-attr\">\"replica_key_version\"</span>: <span class=\"hljs-string\">\"4621542832e447f285ea2dbeaf6f621b\"</span>,\n <span class=\"hljs-attr\">\"backup_key_version\"</span>: <span class=\"hljs-string\">\"d067172e711b44a5963fe53b6b976c0f\"</span>\n}\n</code></pre>" |
6261 | | - } |
6262 | | - ] |
6263 | | - }, |
6264 | | - { |
6265 | | - "verb": "patch", |
6266 | | - "requestPath": "/enterprise/encryption", |
6267 | | - "serverUrl": "http(s)://api.{hostname}", |
6268 | | - "parameters": [], |
6269 | | - "x-codeSamples": [ |
6270 | | - { |
6271 | | - "lang": "Shell", |
6272 | | - "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption \\\n -d '{\"key\":\"key\"}'", |
6273 | | - "html": "<pre><code class=\"hljs language-shell\">curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption \\\n -d '{\"key\":\"key\"}'</code></pre>" |
6274 | | - }, |
6275 | | - { |
6276 | | - "lang": "JavaScript", |
6277 | | - "source": "await octokit.request('PATCH /enterprise/encryption', {\n key: 'key'\n})", |
6278 | | - "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'PATCH /enterprise/encryption'</span>, {\n <span class=\"hljs-attr\">key</span>: <span class=\"hljs-string\">'key'</span>\n})\n</code></pre>" |
6279 | | - } |
6280 | | - ], |
6281 | | - "summary": "Update an encryption key", |
6282 | | - "description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nUpdates the current encryption at rest key with a new private key.\n\nYou can add a new encryption key as often as you need. When you add a new key, the old key is discarded.\n\nYour enterprise won't experience downtime when you update the key, because the key vault that GitHub manages uses the \"envelope\" technique. For more information, see [Encryption and decryption via the envelope technique](https://docs.microsoft.com/en-us/azure/storage/common/storage-client-side-encryption#encryption-and-decryption-via-the-envelope-technique) in the Azure documentation.\n\nYour 2048 bit RSA private key should be in PEM format. For more information, see \"[Configuring data encryption for your enterprise](/admin/configuration/configuring-data-encryption-for-your-enterprise#adding-or-updating-an-encryption-key).\"", |
6283 | | - "operationId": "enterprise-admin/update-encryption-key", |
6284 | | - "tags": [ |
6285 | | - "enterprise-admin" |
6286 | | - ], |
6287 | | - "requestBody": { |
6288 | | - "content": { |
6289 | | - "application/json": { |
6290 | | - "schema": { |
6291 | | - "type": "object", |
6292 | | - "properties": { |
6293 | | - "key": { |
6294 | | - "type": "string", |
6295 | | - "description": "<p><strong>Required</strong>. A 2048 bit RSA private key in PEM format.</p>", |
6296 | | - "name": "key", |
6297 | | - "in": "body", |
6298 | | - "rawType": "string", |
6299 | | - "rawDescription": "A 2048 bit RSA private key in PEM format.", |
6300 | | - "childParamsGroups": [] |
6301 | | - } |
6302 | | - }, |
6303 | | - "required": [ |
6304 | | - "key" |
6305 | | - ] |
6306 | | - }, |
6307 | | - "example": { |
6308 | | - "key": "\\\"$(awk '{printf \"%s\\\\n\", $0}' ~/private-key.pem)\\\"" |
6309 | | - } |
6310 | | - } |
6311 | | - } |
6312 | | - }, |
6313 | | - "x-github": { |
6314 | | - "githubCloudOnly": false, |
6315 | | - "enabledForGitHubApps": false, |
6316 | | - "previews": [], |
6317 | | - "category": "enterprise-admin", |
6318 | | - "subcategory": "encryption-at-rest" |
6319 | | - }, |
6320 | | - "slug": "update-an-encryption-key", |
6321 | | - "category": "enterprise-admin", |
6322 | | - "categoryLabel": "Enterprise admin", |
6323 | | - "subcategory": "encryption-at-rest", |
6324 | | - "subcategoryLabel": "Encryption at rest", |
6325 | | - "notes": [], |
6326 | | - "descriptionHTML": "<p><strong>Warning:</strong> The encryption at rest endpoints are currently in beta and are subject to change.</p>\n<p>Updates the current encryption at rest key with a new private key.</p>\n<p>You can add a new encryption key as often as you need. When you add a new key, the old key is discarded.</p>\n<p>Your enterprise won't experience downtime when you update the key, because the key vault that GitHub manages uses the \"envelope\" technique. For more information, see <a href=\"https://docs.microsoft.com/en-us/azure/storage/common/storage-client-side-encryption#encryption-and-decryption-via-the-envelope-technique\">Encryption and decryption via the envelope technique</a> in the Azure documentation.</p>\n<p>Your 2048 bit RSA private key should be in PEM format. For more information, see \"<a href=\"/admin/configuration/configuring-data-encryption-for-your-enterprise#adding-or-updating-an-encryption-key\">Configuring data encryption for your enterprise</a>.\"</p>", |
6327 | | - "bodyParameters": [ |
6328 | | - { |
6329 | | - "type": "string", |
6330 | | - "description": "<p><strong>Required</strong>. A 2048 bit RSA private key in PEM format.</p>", |
6331 | | - "name": "key", |
6332 | | - "in": "body", |
6333 | | - "rawType": "string", |
6334 | | - "rawDescription": "A 2048 bit RSA private key in PEM format.", |
6335 | | - "childParamsGroups": [] |
6336 | | - } |
6337 | | - ], |
6338 | | - "responses": [ |
6339 | | - { |
6340 | | - "httpStatusCode": "202", |
6341 | | - "httpStatusMessage": "Accepted", |
6342 | | - "description": "Response", |
6343 | | - "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"message\"</span>: <span class=\"hljs-string\">\"Started update of private key for encryption at rest.\"</span>,\n <span class=\"hljs-attr\">\"status_url\"</span>: <span class=\"hljs-string\">\"https://octocoders.github.io/api/v3/enterprise/encryption/status/6020dd37-ce35-49e8-a15b-0b9df458c049\"</span>\n}\n</code></pre>" |
6344 | | - } |
6345 | | - ] |
6346 | | - }, |
6347 | | - { |
6348 | | - "verb": "delete", |
6349 | | - "requestPath": "/enterprise/encryption", |
6350 | | - "serverUrl": "http(s)://api.{hostname}", |
6351 | | - "parameters": [], |
6352 | | - "x-codeSamples": [ |
6353 | | - { |
6354 | | - "lang": "Shell", |
6355 | | - "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption", |
6356 | | - "html": "<pre><code class=\"hljs language-shell\">curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption</code></pre>" |
6357 | | - }, |
6358 | | - { |
6359 | | - "lang": "JavaScript", |
6360 | | - "source": "await octokit.request('DELETE /enterprise/encryption')", |
6361 | | - "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'DELETE /enterprise/encryption'</span>)\n</code></pre>" |
6362 | | - } |
6363 | | - ], |
6364 | | - "summary": "Disable encryption at rest", |
6365 | | - "description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nMarks your encryption key as disabled and disables encryption at rest. This will freeze your enterprise. For example, you can use this operation to freeze your enterprise in case of a breach. Note: This operation does not delete the key permanently.\n\nIt takes approximately ten minutes to disable encryption at rest. To check the status, use the \"[Get an encryption status](https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status)\" REST API.\n\nTo unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"[Receiving enterprise support](/admin/enterprise-support/receiving-help-from-github-support).\"", |
6366 | | - "operationId": "enterprise-admin/disable-encryption", |
6367 | | - "tags": [ |
6368 | | - "enterprise-admin" |
6369 | | - ], |
6370 | | - "x-github": { |
6371 | | - "githubCloudOnly": false, |
6372 | | - "enabledForGitHubApps": false, |
6373 | | - "previews": [], |
6374 | | - "category": "enterprise-admin", |
6375 | | - "subcategory": "encryption-at-rest" |
6376 | | - }, |
6377 | | - "slug": "disable-encryption-at-rest", |
6378 | | - "category": "enterprise-admin", |
6379 | | - "categoryLabel": "Enterprise admin", |
6380 | | - "subcategory": "encryption-at-rest", |
6381 | | - "subcategoryLabel": "Encryption at rest", |
6382 | | - "notes": [], |
6383 | | - "bodyParameters": [], |
6384 | | - "descriptionHTML": "<p><strong>Warning:</strong> The encryption at rest endpoints are currently in beta and are subject to change.</p>\n<p>Marks your encryption key as disabled and disables encryption at rest. This will freeze your enterprise. For example, you can use this operation to freeze your enterprise in case of a breach. Note: This operation does not delete the key permanently.</p>\n<p>It takes approximately ten minutes to disable encryption at rest. To check the status, use the \"<a href=\"https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status\">Get an encryption status</a>\" REST API.</p>\n<p>To unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"<a href=\"/admin/enterprise-support/receiving-help-from-github-support\">Receiving enterprise support</a>.\"</p>", |
6385 | | - "responses": [ |
6386 | | - { |
6387 | | - "httpStatusCode": "202", |
6388 | | - "httpStatusMessage": "Accepted", |
6389 | | - "description": "Response", |
6390 | | - "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"message\"</span>: <span class=\"hljs-string\">\"Started disabling encryption at rest.\"</span>,\n <span class=\"hljs-attr\">\"status_url\"</span>: <span class=\"hljs-string\">\"https://octocoders.github.io/api/v3/enterprise/encryption/status/db8ef711-ef82-464b-9013-5e0a1bb0031e\"</span>\n}\n</code></pre>" |
6391 | | - } |
6392 | | - ] |
6393 | | - }, |
6394 | | - { |
6395 | | - "verb": "get", |
6396 | | - "requestPath": "/enterprise/encryption/status/{request_id}", |
6397 | | - "serverUrl": "http(s)://api.{hostname}", |
6398 | | - "parameters": [ |
6399 | | - { |
6400 | | - "name": "request_id", |
6401 | | - "description": "The id provided in the `status_url` after updating or deleting an encryption key.", |
6402 | | - "in": "path", |
6403 | | - "required": true, |
6404 | | - "schema": { |
6405 | | - "type": "string" |
6406 | | - }, |
6407 | | - "descriptionHTML": "<p>The id provided in the <code>status_url</code> after updating or deleting an encryption key.</p>" |
6408 | | - } |
6409 | | - ], |
6410 | | - "x-codeSamples": [ |
6411 | | - { |
6412 | | - "lang": "Shell", |
6413 | | - "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption/status/REQUEST_ID", |
6414 | | - "html": "<pre><code class=\"hljs language-shell\">curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/enterprise/encryption/status/REQUEST_ID</code></pre>" |
6415 | | - }, |
6416 | | - { |
6417 | | - "lang": "JavaScript", |
6418 | | - "source": "await octokit.request('GET /enterprise/encryption/status/{request_id}', {\n request_id: 'request_id'\n})", |
6419 | | - "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'GET /enterprise/encryption/status/{request_id}'</span>, {\n <span class=\"hljs-attr\">request_id</span>: <span class=\"hljs-string\">'request_id'</span>\n})\n</code></pre>" |
6420 | | - } |
6421 | | - ], |
6422 | | - "summary": "Get an encryption status", |
6423 | | - "description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nChecks the status of updating an encryption key or disabling encryption at rest.", |
6424 | | - "operationId": "enterprise-admin/get-encryption-status", |
6425 | | - "tags": [ |
6426 | | - "enterprise-admin" |
6427 | | - ], |
6428 | | - "x-github": { |
6429 | | - "githubCloudOnly": false, |
6430 | | - "enabledForGitHubApps": false, |
6431 | | - "previews": [], |
6432 | | - "category": "enterprise-admin", |
6433 | | - "subcategory": "encryption-at-rest" |
6434 | | - }, |
6435 | | - "slug": "get-an-encryption-status", |
6436 | | - "category": "enterprise-admin", |
6437 | | - "categoryLabel": "Enterprise admin", |
6438 | | - "subcategory": "encryption-at-rest", |
6439 | | - "subcategoryLabel": "Encryption at rest", |
6440 | | - "notes": [], |
6441 | | - "bodyParameters": [], |
6442 | | - "descriptionHTML": "<p><strong>Warning:</strong> The encryption at rest endpoints are currently in beta and are subject to change.</p>\n<p>Checks the status of updating an encryption key or disabling encryption at rest.</p>", |
6443 | | - "responses": [ |
6444 | | - { |
6445 | | - "httpStatusCode": "200", |
6446 | | - "httpStatusMessage": "OK", |
6447 | | - "description": "Response", |
6448 | | - "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"result\"</span>: <span class=\"hljs-string\">\"started\"</span>,\n <span class=\"hljs-attr\">\"error\"</span>: <span class=\"hljs-literal\">null</span>\n}\n</code></pre>" |
6449 | | - }, |
6450 | | - { |
6451 | | - "httpStatusCode": "404", |
6452 | | - "httpStatusMessage": "Not Found", |
6453 | | - "description": "Not Found if the URL cannot be found" |
6454 | | - } |
6455 | | - ] |
6456 | | - }, |
6457 | 6217 | { |
6458 | 6218 | "verb": "get", |
6459 | 6219 | "requestPath": "/enterprise/settings/license", |
|
0 commit comments