Deployment Service

Update a deployment adapter

PATCH
/projects/{projectId}/endpoints/{endpointId}/deployments/{deploymentId}/adapters/{id}

Updates the pinned revision of an attached adapter using its row-level etag for optimistic concurrency.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project identifier.

endpointId*string

Endpoint identifier.

deploymentId*string

Deployment identifier.

id*string

Adapter model identifier.

Request Body

application/json

Request body for updating an adapter.

adapterRevisionId*string

New adapter revision to pin.

etag*string

Row-level etag from a prior AddAdapter, UpdateAdapter, GetAdapter, or ListAdapters response.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/projects/string/endpoints/string/deployments/string/adapters/string" \  -H "Content-Type: application/json" \  -d '{    "adapterRevisionId": "string",    "etag": "string"  }'
{  "adapterModelId": "string",  "desiredRevisionId": "string",  "perCluster": [    {      "adapterModelId": "string",      "clusterId": "string",      "realizedRevisionId": "string",      "realizedEtag": "string",      "state": "ADAPTER_LOAD_STATE_PENDING",      "reason": "string",      "message": "string",      "readyPodCount": 0,      "failedPodCount": 0,      "totalPodCount": 0,      "loadedAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "adapterModel": "string",      "realizedRevision": "string"    }  ],  "etag": "string",  "adapterModel": "string",  "desiredRevision": "string"}