remove the deprecated extra_credentials endpoints

This commit is contained in:
Ryan Petrello
2020-04-29 22:25:28 -04:00
parent 72de660ea1
commit 18607107a7
20 changed files with 22 additions and 420 deletions

View File

@@ -37,7 +37,7 @@ Important Changes
two OpenStack credentials.
* In the same manner as "promptable SSH credentials", when
``ask_credential_on_launch = true``, ``JobTemplate.extra_credentials`` can be
``ask_credential_on_launch = true``, ``JobTemplate.credentials`` can be
specified in the launch payload.
* Custom inventory sources can now utilize a ``Credential``; you
@@ -221,9 +221,9 @@ API resources in `/api/v2/` now have two credential related fields:
...
}
...and a new endpoint for fetching all "extra" credentials:
...and a new endpoint for fetching all credentials:
HTTP GET /api/v2/job_templates/N/extra_credentials/
HTTP GET /api/v2/job_templates/N/credentials/
{
'count': N,
@@ -239,21 +239,21 @@ Similar to other list attachment/detachment API views, cloud and network
credentials can be created and attached via an `HTTP POST` at this new
endpoint:
HTTP POST /api/v2/job_templates/N/extra_credentials/
HTTP POST /api/v2/job_templates/N/credentials/
{
'id': <cloud_credential_primary_key>,
'associate': True,
}
HTTP POST /api/v2/job_templates/N/extra_credentials/
HTTP POST /api/v2/job_templates/N/credentials/
{
'id': <network_credential_primary_key>,
'disassociate': True,
}
HTTP POST /api/v2/job_templates/N/extra_credentials/
HTTP POST /api/v2/job_templates/N/credentials/
{
'name': 'My Credential',