Aller au contenu principal

Cette page est disponible uniquement en anglais (This page is only available in English).

Patch AzureCredential

PATCH 

/api/v1/projects/:projectId/azure/credentials/:id

This operation allows to patch an AzureCredential

Request

Path Parameters

    id uuidrequired

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    credential Id

    projectId uuidrequired

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    project Id

Body

AzureCredential to patch

    namestring

    azure credential name

    descriptionstring

    azure credential description

    subscriptionIdstring

    subscription id on azure

    tenantIduuid

    tenant id on azure

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    clientIduuid

    client id on azure

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    clientSecretstring

    client secret on azure

    expirationDatedate

    expiration date of the azure credential

    Example: 2022-03-10

Responses

ok

Schema
    iduuid

    azure credential id

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    projectIduuid

    id of the project associated to the azure credential

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    namestring

    azure credential name

    cspstring

    csp of the credential

    descriptionstring

    azure credential description

    projectNamestring

    name of the project associated to the azure credential

    expirationDatedate

    expiration date of the azure credential

    Example: 2022-03-10

Authorization: http

name: SecuritySchemetype: httpdescription: Authenticationscheme: bearerbearerFormat: JWT
curl -L -X PATCH '/api/v1/projects/:projectId/azure/credentials/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"name": "string",
"description": "string",
"subscriptionId": "string",
"tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientSecret": "string",
"expirationDate": "2022-03-10"
}'
Request Collapse all
Base URL
/api/v1
Auth
Parameters
— pathrequired
— pathrequired
Body
{
  "name": "string",
  "description": "string",
  "subscriptionId": "string",
  "tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "clientSecret": "string",
  "expirationDate": "2022-03-10"
}