swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector TeamsAvailableCapabilities API schemes: - https tags: - name: TeamsAvailableCapabilities paths: /accounts/{accountName}:getTeamsAvailableCapabilities: post: operationId: microsoftAzureAccountsGetteamsavailablecapabilities tags: - TeamsAvailableCapabilities summary: Microsoft Azure Get Teams Available Capabilities description: Get a list of Teams Available Capabilities on the specified account. parameters: - $ref: '#/parameters/Azure.Core.Foundations.ApiVersionParameter' - name: accountName in: path description: Name of the account. required: true type: string minLength: 1 maxLength: 100 pattern: ^([A-Za-z0-9_-]+)$ - $ref: '#/parameters/Azure.Core.RepeatabilityRequestHeaders.repeatabilityRequestId' - $ref: '#/parameters/Azure.Core.RepeatabilityRequestHeaders.repeatabilityFirstSent' - $ref: '#/parameters/Azure.Core.ClientRequestIdHeader' - name: body in: body required: true schema: $ref: '#/definitions/NumberIdentifiers' responses: '200': description: The request has succeeded. schema: $ref: '#/definitions/TeamsAvailableCapabilities' headers: Repeatability-Result: type: string description: Indicates whether the repeatable request was accepted or rejected. enum: - accepted - rejected x-ms-enum: name: RepeatabilityResult modelAsString: false values: - name: accepted value: accepted description: If the request was accepted and the server guarantees that the server state reflects a single execution of the operation. - name: rejected value: rejected description: 'If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid or because the Repeatability-First-Sent value was outside the range of values held by the server.' x-ms-client-request-id: type: string format: uuid description: An opaque, globally-unique, client-generated string identifier for the request. default: description: An unexpected error response. schema: $ref: '#/definitions/Azure.Core.Foundations.ErrorResponse' headers: x-ms-error-code: type: string description: String error code indicating what went wrong. x-ms-examples: Get the teams capabilities available to the numbers provided.: $ref: ./examples/PostGetAccountTeamsAvailableCapabilities.json definitions: Azure.Core.Foundations.ErrorResponse: type: object description: A response containing error details. properties: error: $ref: '#/definitions/Azure.Core.Foundations.Error' description: The error object. required: - error NumberIdentifiers: type: object description: A list identifiers for a Number resource. properties: numbers: type: array description: Array containing a list of identifiers for Number resources. items: $ref: '#/definitions/NumberIdentifier' x-ms-identifiers: [] x-ms-mutability: - read - update - create required: - numbers NumberIdentifier: type: object description: An identifier, used to identify a Number resource. properties: telephoneNumber: type: string description: Telephone number in E.164 format. minLength: 3 maxLength: 16 pattern: ^\+[1-9]\d+$ x-ms-mutability: - read - update - create required: - telephoneNumber Azure.Core.Foundations.InnerError: type: object description: An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. properties: code: type: string description: One of a server-defined set of error codes. innererror: $ref: '#/definitions/Azure.Core.Foundations.InnerError' description: Inner error. TeamsAvailableCapabilities: type: object description: The Teams capabilities available for numbers with Operator Connect or Teams Phone Mobile services enabled. properties: availableCapabilities: type: array description: The available capabilities for the numbers specified with Operator Connect or Teams Phone Mobile services enabled. items: type: string readOnly: true required: - availableCapabilities Azure.Core.Foundations.Error: type: object description: The error object. properties: code: type: string description: One of a server-defined set of error codes. message: type: string description: A human-readable representation of the error. target: type: string description: The target of the error. details: type: array description: An array of details about specific errors that led to this reported error. items: $ref: '#/definitions/Azure.Core.Foundations.Error' x-ms-identifiers: [] innererror: $ref: '#/definitions/Azure.Core.Foundations.InnerError' description: An object containing more specific information than the current object about the error. required: - code - message parameters: Azure.Core.RepeatabilityRequestHeaders.repeatabilityFirstSent: name: Repeatability-First-Sent in: header description: Specifies the date and time at which the request was first created. required: false type: string format: date-time x-ms-parameter-location: method x-ms-client-name: repeatabilityFirstSent Azure.Core.RepeatabilityRequestHeaders.repeatabilityRequestId: name: Repeatability-Request-ID in: header description: An opaque, globally-unique, client-generated string identifier for the request. required: false type: string x-ms-parameter-location: method x-ms-client-name: repeatabilityRequestId Azure.Core.ClientRequestIdHeader: name: x-ms-client-request-id in: header description: An opaque, globally-unique, client-generated string identifier for the request. required: false type: string format: uuid x-ms-parameter-location: method x-ms-client-name: clientRequestId Azure.Core.Foundations.ApiVersionParameter: name: api-version in: query description: The API version to use for this operation. required: true type: string minLength: 1 x-ms-parameter-location: method x-ms-client-name: apiVersion x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'