https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/apigateway/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/apigateway/update-api-key.rst
**To change the name for an API Key**

Command::

  aws apigateway update-api-key --api-key sNvjQDMReA1eEQPNAW8r37XsU2rDD7fc7m2SiMnu --patch-operations op='replace',path='/name',value='newName'

Output::

  {
      "description": "currentDescription", 
      "enabled": true, 
      "stageKeys": [
          "41t2j324r5/dev"
      ], 
      "lastUpdatedDate": 1470086052, 
      "createdDate": 1445460347, 
      "id": "sNvjQDMReA1vEQPNzW8r3dXsU2rrD7fcjm2SiMnu", 
      "name": "newName"
  }

**To disable the API Key**

Command::

  aws apigateway update-api-key --api-key sNvjQDMReA1eEQPNAW8r37XsU2rDD7fc7m2SiMnu --patch-operations op='replace',path='/enabled',value='false'

Output::

  {
      "description": "currentDescription", 
      "enabled": false, 
      "stageKeys": [
          "41t2j324r5/dev"
      ], 
      "lastUpdatedDate": 1470086052, 
      "createdDate": 1445460347, 
      "id": "sNvjQDMReA1vEQPNzW8r3dXsU2rrD7fcjm2SiMnu", 
      "name": "newName"
  }

https://t.me/RX1948 - 2025