swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector MetadataRoles API schemes: - https tags: - name: MetadataRoles paths: /metadataRoles: get: tags: - MetadataRoles description: Lists roles for Purview Account operationId: microsoftAzureMetadatarolesList produces: - application/json parameters: - $ref: '#/parameters/api-version' responses: '200': description: Success schema: $ref: '#/definitions/MetadataRoleList' default: description: An error response received from the Metadata Policy Service schema: $ref: '#/definitions/ErrorResponseModel' headers: x-ms-error-code: type: string description: The error code x-ms-pageable: nextLinkName: nextLink itemName: values x-ms-examples: MetadataRoles_List: $ref: ./examples/MetadataRoles_List.json summary: Microsoft Azure Get Metadataroles definitions: MetadataRole: type: object properties: id: description: The Id of role type: string name: description: The name of role type: string type: description: The type of role type: string properties: $ref: '#/definitions/MetadataRoleProperties' DnfCondition: description: The dnf Condition for a rule type: array items: type: array items: $ref: '#/definitions/AttributeMatcher' CnfCondition: description: The cnf Condition for a rule type: array items: type: array items: $ref: '#/definitions/AttributeMatcher' ErrorResponseModel: description: The error response model for metadata policy required: - error type: object properties: error: $ref: '#/definitions/ErrorModel' ErrorModel: description: The error model for metadata policy required: - code - message type: object properties: code: description: The error code type: string message: description: The error message type: string target: description: The error target type: string details: description: The error details type: array items: $ref: '#/definitions/ErrorModel' AttributeMatcher: description: Attribute matcher for a rule type: object properties: attributeName: description: AttributeName type: string attributeValueIncludes: description: Value for attribute type: string attributeValueIncludedIn: description: List of values for attribute type: array items: type: string attributeValueExcludes: description: Value excluded for attribute type: string attributeValueExcludedIn: description: List of values excluded for attribute type: array items: type: string MetadataRoleProperties: type: object properties: provisioningState: description: The provisioningState of role type: string roleType: description: The type of role type: string friendlyName: description: The friendly name of role type: string description: description: The description of role type: string cnfCondition: $ref: '#/definitions/CnfCondition' dnfCondition: $ref: '#/definitions/DnfCondition' version: format: int64 description: The version of role type: integer MetadataRoleList: description: List of Metadata roles required: - values type: object properties: values: type: array items: $ref: '#/definitions/MetadataRole' nextLink: type: string parameters: api-version: in: query name: api-version description: The api version to use. required: true type: string x-ms-client-name: ApiVersion x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'