swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ServicePrincipalKeyCredentials API schemes: - https tags: - name: ServicePrincipalKeyCredentials paths: /{tenantID}/servicePrincipals/{objectId}/keyCredentials: get: tags: - ServicePrincipalKeyCredentials operationId: microsoftAzureServiceprincipalsListkeycredentials description: Get the keyCredentials associated with the specified service principal. parameters: - name: objectId in: path required: true type: string description: The object ID of the service principal for which to get keyCredentials. - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/tenantIDInPath' responses: '200': description: OK. The operation was successful. schema: $ref: '#/definitions/KeyCredentialListResult' default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/GraphError' x-ms-pageable: nextLinkName: null summary: Microsoft Azure Get Tenantid Serviceprincipals Objectid Keycredentials patch: tags: - ServicePrincipalKeyCredentials operationId: microsoftAzureServiceprincipalsUpdatekeycredentials description: Update the keyCredentials associated with a service principal. parameters: - name: objectId in: path required: true type: string description: The object ID for which to get service principal information. - name: parameters in: body required: true schema: $ref: '#/definitions/KeyCredentialsUpdateParameters' description: Parameters to update the keyCredentials of an existing service principal. - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/tenantIDInPath' responses: '204': description: No Content default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/GraphError' summary: Microsoft Azure Patch Tenantid Serviceprincipals Objectid Keycredentials definitions: ErrorMessage: type: object properties: value: type: string x-ms-client-name: message description: Error message value. description: Active Directory error message. GraphError: type: object properties: odata.error: type: object x-ms-client-flatten: true $ref: '#/definitions/OdataError' description: A Graph API error. description: Active Directory error information. KeyCredentialsUpdateParameters: type: object properties: value: type: array items: $ref: '#/definitions/KeyCredential' description: A collection of KeyCredentials. required: - value description: Request parameters for a KeyCredentials update operation KeyCredential: type: object properties: startDate: type: string format: date-time description: Start date. endDate: type: string format: date-time description: End date. value: type: string description: Key value. keyId: type: string description: Key ID. usage: type: string description: Usage. Acceptable values are 'Verify' and 'Sign'. type: type: string description: Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'. customKeyIdentifier: type: string description: Custom Key Identifier additionalProperties: type: object description: Active Directory Key Credential information. KeyCredentialListResult: type: object properties: value: type: array items: $ref: '#/definitions/KeyCredential' description: A collection of KeyCredentials. description: KeyCredential list operation result. OdataError: type: object properties: code: type: string description: Error code. message: type: object x-ms-client-flatten: true $ref: '#/definitions/ErrorMessage' description: Error Message. description: Active Directory OData error information. parameters: ApiVersionParameter: name: api-version in: query required: true type: string description: Client API version. tenantIDInPath: name: tenantID in: path required: true type: string description: The tenant ID. x-ms-parameter-location: client x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'