swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ServicePrincipalPasswordCredentials API schemes: - https tags: - name: ServicePrincipalPasswordCredentials paths: /{tenantID}/servicePrincipals/{objectId}/passwordCredentials: get: tags: - ServicePrincipalPasswordCredentials operationId: microsoftAzureServiceprincipalsListpasswordcredentials description: Gets the passwordCredentials associated with a service principal. parameters: - name: objectId in: path required: true type: string description: The object ID of the service principal. - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/tenantIDInPath' responses: '200': description: OK. The operation was successful. schema: $ref: '#/definitions/PasswordCredentialListResult' 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 Passwordcredentials patch: tags: - ServicePrincipalPasswordCredentials operationId: microsoftAzureServiceprincipalsUpdatepasswordcredentials description: Updates the passwordCredentials associated with a service principal. parameters: - name: objectId in: path required: true type: string description: The object ID of the service principal. - name: parameters in: body required: true schema: $ref: '#/definitions/PasswordCredentialsUpdateParameters' description: Parameters to update the passwordCredentials 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 Passwordcredentials 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. PasswordCredentialListResult: type: object properties: value: type: array items: $ref: '#/definitions/PasswordCredential' description: A collection of PasswordCredentials. description: PasswordCredential list operation result. PasswordCredential: type: object properties: startDate: type: string format: date-time description: Start date. endDate: type: string format: date-time description: End date. keyId: type: string description: Key ID. value: type: string description: Key value. customKeyIdentifier: type: string format: byte description: Custom Key Identifier additionalProperties: type: object description: Active Directory Password Credential information. PasswordCredentialsUpdateParameters: type: object properties: value: type: array items: $ref: '#/definitions/PasswordCredential' description: A collection of PasswordCredentials. required: - value description: Request parameters for a PasswordCredentials update operation. 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'