UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 19.1 kB
{"openapi":"3.0.0","info":{"description":"Azure Enterprise Knowledge Graph Service is a platform for creating knowledge graphs at scale.","title":"Azure Enterprise Knowledge Graph Service","version":"2018-12-03","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/EnterpriseKnowledgeGraphSwagger.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"EnterpriseKnowledgeGraph-EnterpriseKnowledgeGraphSwagger","x-tags":["Azure","Microsoft"]},"paths":{"/providers/Microsoft.EnterpriseKnowledgeGraph/operations":{"get":{"deprecated":false,"description":"Lists all the available EnterpriseKnowledgeGraph services operations.","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationEntityListResult"},"examples":{"Get Operations":{"$ref":"#/components/examples/Get_Operations"}}}}}},"tags":["Operations"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.EnterpriseKnowledgeGraph/services":{"get":{"description":"Returns all the resources of a particular type belonging to a subscription.","operationId":"EnterpriseKnowledgeGraph_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses. If a resource provider does not support paging, it should return the same body but leave nextLink empty for future compatibility.\nFor a detailed explanation of each field in the response body, please refer to the request body description in the PUT resource section. ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraphResponseList"},"examples":{"List EnterpriseKnowledgeGraph by Subscription":{"$ref":"#/components/examples/List_EnterpriseKnowledgeGraph_by_Subscription"}}}}},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["EnterpriseKnowledgeGraph"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EnterpriseKnowledgeGraph/services":{"get":{"description":"Returns all the resources of a particular type belonging to a resource group","operationId":"EnterpriseKnowledgeGraph_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses here. If a resource provider does not support paging, it should return the same body (JSON object with “value” property) but omit nextLink entirely (or set to null, *not* empty string) for future compatibility.\nThe nextLink should be implemented using following query parameters:\n· skipToken: opaque token that allows the resource provider to skip resources already enumerated. This value is defined and returned by the RP after first request via nextLink.\n· top: the optional client query parameter which defines the maximum number of records to be returned by the server.\nImplementation details:\n· NextLink may include all the query parameters (specifically OData $filter) used by the client in the first query. \n· Server may return less records than requested with nextLink. Returning zero records with NextLink is an acceptable response. \nClients must fetch records until the nextLink is not returned back / null. Clients should never rely on number of returned records to determinate if pagination is completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraphResponseList"},"examples":{"List EnterpriseKnowledgeGraph by Resource Group":{"$ref":"#/components/examples/List_EnterpriseKnowledgeGraph_by_Resource_Group"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["EnterpriseKnowledgeGraph"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EnterpriseKnowledgeGraph/services/{resourceName}":{"delete":{"description":"Deletes a EnterpriseKnowledgeGraph Service from the resource group. ","operationId":"EnterpriseKnowledgeGraph_Delete","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"$ref":"#/components/parameters/resourceNameParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"A 200 (OK) should be returned if the object exists and was deleted successfully;"},"204":{"description":"a 204 (NoContent) should be used if the resource does not exist and the request is well formed."},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["EnterpriseKnowledgeGraph"]},"get":{"description":"Returns a EnterpriseKnowledgeGraph service specified by the parameters.","operationId":"EnterpriseKnowledgeGraph_Get","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"$ref":"#/components/parameters/resourceNameParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"},"examples":{"Get EnterpriseKnowledgeGraph":{"$ref":"#/components/examples/Get_EnterpriseKnowledgeGraph"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["EnterpriseKnowledgeGraph"]},"patch":{"description":"Updates a EnterpriseKnowledgeGraph Service","operationId":"EnterpriseKnowledgeGraph_Update","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"$ref":"#/components/parameters/resourceNameParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"}}},"description":"The parameters to provide for the created EnterpriseKnowledgeGraph.","required":true,"x-ms-client-flatten":true},"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"}}}},"201":{"description":"If resource is updated successfully, the service should return 201 (Created). Execution to continue asynchronously.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"},"examples":{"Update EnterpriseKnowledgeGraph":{"$ref":"#/components/examples/Update_EnterpriseKnowledgeGraph"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["EnterpriseKnowledgeGraph"]},"put":{"description":"Creates a EnterpriseKnowledgeGraph Service. EnterpriseKnowledgeGraph Service is a resource group wide resource type.","operationId":"EnterpriseKnowledgeGraph_Create","parameters":[{"$ref":"#/components/parameters/resourceGroupNameParameter"},{"$ref":"#/components/parameters/resourceNameParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"}}},"description":"The parameters to provide for the created EnterpriseKnowledgeGraph.","required":true},"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"}}}},"201":{"description":"If resource is created successfully, the service should return 201 (Creating). Execution to continue asynchronously.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"},"examples":{"Create EnterpriseKnowledgeGraph":{"$ref":"#/components/examples/Create_EnterpriseKnowledgeGraph"}}}}},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["EnterpriseKnowledgeGraph"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_Operations":{"value":{"value":[{"display":{"description":"Read EnterpriseKnowledgeGraph resources","operation":"Read EnterpriseKnowledgeGraph resource","provider":"Microsoft EnterpriseKnowledgeGraph Service","resource":"EnterpriseKnowledgeGraph Service"},"name":"Microsoft.EnterpriseKnowledgeGraph/services/read","origin":"user,system"},{"display":{"description":"Writes EnterpriseKnowledgeGraph resources","operation":"Write EnterpriseKnowledgeGraph resource","provider":"Microsoft EnterpriseKnowledgeGraph Service","resource":"EnterpriseKnowledgeGraph Service"},"name":"Microsoft.EnterpriseKnowledgeGraph/services/write","origin":"user,system"},{"display":{"description":"Deletes EnterpriseKnowledgeGraph resources","operation":"Delete EnterpriseKnowledgeGraph resource","provider":"Microsoft EnterpriseKnowledgeGraph Service","resource":"EnterpriseKnowledgeGraph Service"},"name":"Microsoft.EnterpriseKnowledgeGraph/services/delete","origin":"user,system"},{"display":{"description":"Read the operations for all resource types.","operation":"Read resource provider operations","provider":"Microsoft EnterpriseKnowledgeGraph Service","resource":"Operations"},"name":"Microsoft.EnterpriseKnowledgeGraph/Operations/read","origin":"user,system"},{"display":{"description":"Read the status of an asynchronous operation.","operation":"Read Operation Result.","provider":"Microsoft EnterpriseKnowledgeGraph Service","resource":"Operation Result"},"name":"Microsoft.EnterpriseKnowledgeGraph/locations/operationresults/read","origin":"user,system"}]}},"List_EnterpriseKnowledgeGraph_by_Subscription":{"value":{"value":[{"id":"someid","name":"samplename","properties":{"provisioningState":"Succeeded"},"type":"sampletype"}]}},"List_EnterpriseKnowledgeGraph_by_Resource_Group":{"value":{"value":[{"id":"someid","name":"samplename","properties":{"provisioningState":"Succeeded"},"type":"sampletype"}]}},"Get_EnterpriseKnowledgeGraph":{"value":{"id":"someid","name":"samplename","properties":{"provisioningState":"Succeeded"},"type":"sampletype"}},"Update_EnterpriseKnowledgeGraph":{"value":{"id":"someid","name":"samplename","properties":{"provisioningState":"Creating"},"type":"sampletype"}},"Create_EnterpriseKnowledgeGraph":{"value":{"id":"someid","name":"samplename","properties":{"provisioningState":"Creating"},"type":"sampletype"}}},"parameters":{"apiVersionParameter":{"description":"Version of the API to be used with the client request.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get Operations":{"value":"2018-12-03"},"List EnterpriseKnowledgeGraph by Subscription":{"value":"2018-12-03"},"List EnterpriseKnowledgeGraph by Resource Group":{"value":"2018-12-03"},"Delete EnterpriseKnowledgeGraph":{"value":"2018-12-03"},"Get EnterpriseKnowledgeGraph":{"value":"2018-12-03"},"Update EnterpriseKnowledgeGraph":{"value":"2018-12-03"},"Create EnterpriseKnowledgeGraph":{"value":"2018-12-03"}}},"resourceGroupNameParameter":{"description":"The name of the EnterpriseKnowledgeGraph resource group in the user subscription.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"List EnterpriseKnowledgeGraph by Resource Group":{"value":"OneResourceGroupName"},"Delete EnterpriseKnowledgeGraph":{"value":"OneResourceGroupName"},"Get EnterpriseKnowledgeGraph":{"value":"OneResourceGroupName"},"Update EnterpriseKnowledgeGraph":{"value":"OneResourceGroupName"},"Create EnterpriseKnowledgeGraph":{"value":"OneResourceGroupName"}}},"resourceNameParameter":{"description":"The name of the EnterpriseKnowledgeGraph resource.","in":"path","name":"resourceName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Delete EnterpriseKnowledgeGraph":{"value":"sampleekgname"},"Get EnterpriseKnowledgeGraph":{"value":"sampleekgname"},"Update EnterpriseKnowledgeGraph":{"value":"sampleekgname"},"Create EnterpriseKnowledgeGraph":{"value":"sampleekgname"}}},"subscriptionIdParameter":{"description":"Azure Subscription ID.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List EnterpriseKnowledgeGraph by Subscription":{"value":"subscription-id"},"List EnterpriseKnowledgeGraph by Resource Group":{"value":"subscription-id"},"Delete EnterpriseKnowledgeGraph":{"value":"subscription-id"},"Get EnterpriseKnowledgeGraph":{"value":"subscription-id"},"Update EnterpriseKnowledgeGraph":{"value":"subscription-id"},"Create EnterpriseKnowledgeGraph":{"value":"subscription-id"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"EnterpriseKnowledgeGraph":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"EnterpriseKnowledgeGraph resource definition","properties":{"properties":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraphProperties"}}},"EnterpriseKnowledgeGraphProperties":{"description":"The parameters to provide for the EnterpriseKnowledgeGraph.","properties":{"description":{"description":"The description of the EnterpriseKnowledgeGraph","type":"string"},"metadata":{"description":"Specifies the metadata of the resource.","type":"object"},"provisioningState":{"description":"The state of EnterpriseKnowledgeGraph provisioning","enum":["Creating","Deleting","Failed","Succeeded"],"type":"string"}}},"EnterpriseKnowledgeGraphResponseList":{"description":"The list of EnterpriseKnowledgeGraph service operation response.","properties":{"nextLink":{"description":"The link used to get the next page of EnterpriseKnowledgeGraph service resources.","type":"string"},"value":{"description":"Gets the list of EnterpriseKnowledgeGraph service results and their properties.","items":{"$ref":"#/components/schemas/EnterpriseKnowledgeGraph"},"readOnly":true,"type":"array"}}},"Error":{"description":"EnterpriseKnowledgeGraph Service error object.","properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}}},"ErrorBody":{"description":"EnterpriseKnowledgeGraph Service error body.","properties":{"code":{"description":"error code","type":"string"},"message":{"description":"error message","type":"string"}},"required":["code","message"]},"OperationDisplayInfo":{"description":"The operation supported by EnterpriseKnowledgeGraph Service Management.","properties":{"description":{"description":"The description of the operation.","type":"string"},"operation":{"description":"The action that users can perform, based on their permission level.","type":"string"},"provider":{"description":"Service provider: Microsoft EnterpriseKnowledgeGraph Service.","type":"string"},"resource":{"description":"Resource on which the operation is performed.","type":"string"}},"type":"object"},"OperationEntity":{"description":"The operations supported by EnterpriseKnowledgeGraph Service Management.","properties":{"display":{"$ref":"#/components/schemas/OperationDisplayInfo"},"name":{"description":"Operation name: {provider}/{resource}/{operation}.","type":"string"},"origin":{"description":"The origin of the operation.","type":"string"},"properties":{"description":"Additional properties.","type":"object"}},"type":"object"},"OperationEntityListResult":{"description":"The list of EnterpriseKnowledgeGraph service operation response.","properties":{"nextLink":{"description":"The link used to get the next page of operations.","type":"string"},"value":{"description":"The list of operations.","items":{"$ref":"#/components/schemas/OperationEntity"},"type":"array"}},"type":"object"},"Resource":{"description":"Azure resource","properties":{"id":{"description":"Specifies the resource ID.","readOnly":true,"type":"string"},"location":{"description":"Specifies the location of the resource.","type":"string"},"name":{"description":"Specifies the name of the resource.","readOnly":true,"type":"string"},"sku":{"$ref":"#/components/schemas/Sku"},"tags":{"additionalProperties":{"type":"string"},"description":"Contains resource tags defined as key/value pairs.","type":"object"},"type":{"description":"Specifies the type of the resource.","readOnly":true,"type":"string"}},"x-ms-azure-resource":true},"Sku":{"description":"The SKU of the EnterpriseKnowledgeGraph service account.","properties":{"name":{"$ref":"#/components/schemas/SkuName"}},"required":["name"]},"SkuName":{"description":"The name of SKU.","enum":["F0","S1"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"SkuName"}}}}}