Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.
- What's New
- Service Overview
- Getting Started
-
User Guide
- What Is GES?
- Product Advantages
- Applicable Scenarios
- Basic Concepts
- Constraints and Limitations
- Related Services
- GES Overview
- Permissions Management
- Importing Metadata
- Creating Graphs
- Managing Graphs
-
Accessing and Analyzing Graph Data
- Graph Editor
- Accessing the GES Graph Editor
- Dynamic Graphs
- Graph Exploration
- Multi-Graph Management (Database Edition)
- Adding Custom Operations
- Editing Schema
- Visual Query
- Gremlin Query
- Cypher Query
- DSL Query
- Analyzing Graphs Using Algorithms
- Analyzing Graphs on the Canvas
- Graph Display in 3D View
- Filter Criteria
- Editing Properties
- Statistics Display
- View Running Records
- Viewing Query Results
- Viewing Graph Tasks
- Configuring Permissions
-
Algorithms
- Algorithm List
- PageRank
- PersonalRank
- K-core
- K-hop
- Shortest Path
- All Shortest Paths
- Filtered Shortest Path
- SSSP
- Shortest Path of Vertex Sets
- n-Paths
- Closeness Centrality
- Label Propagation
- Louvain
- Link Prediction
- Node2vec
- Real-time Recommendation
- Common Neighbors
- Connected Component
- Degree Correlation
- Triangle Count
- Clustering Coefficient
- Betweenness Centrality
- Edge Betweenness Centrality
- Origin-Destination Betweenness Centrality
- Circle Detection with a Single Vertex
- Common Neighbors of Vertex Sets
- All Shortest Paths of Vertex Sets
- Filtered Circle Detection
- Subgraph Matching
- Filtered All Pairs Shortest Paths
- Filtered All Shortest Paths
- TopicRank
- Filtered n-Paths
- Temporal Paths
- Best Practices
- FAQs
-
API Reference
- Before You Start
- Calling APIs
- Management Plane APIs (V2)
-
Service Plane APIs
-
Memory Edition
-
Vertex Operation APIs
- Querying Vertices That Meet Filter Criteria
- Querying Vertex Details
- Adding a Vertex
- Deleting a Vertex
- Updating Vertex Properties
- Querying Vertex Data in Batches
- Adding Vertices in Batches
- Deleting Vertices in Batches
- Updating Vertex Properties in Batches
- Adding a Vertex Label
- Deleting a Vertex Label
- Exporting Filtered Vertices
- Deleting Filtered Vertices
- Edge Operation APIs
- Metadata Operation APIs
- Index Operation APIs
- Gremlin Operation APIs
-
Algorithm APIs
- Running Algorithms
-
Algorithm API Parameter References
- Common Algorithm Parameters
- PageRank
- PersonalRank
- K-core
- K-hop
- Common Neighbors
- Common Neighbors of Vertex Sets
- Link Prediction
- Shortest Path
- All Shortest Paths
- Filtered Shortest Path
- SSSP
- Shortest Path of Vertex Sets
- n-Paths
- Filtered n-Paths
- Filtered All Pairs Shortest Paths
- All Shortest Paths of Vertex Sets
- Filtered All Shortest Paths
- Connected Component
- Label Propagation
- Louvain
- Node2vec
- Real-time Recommendation
- Degree Correlation
- Triangle Count
- Cluster Coefficient
- Closeness Centrality
- Filtered Circle Detection
- Subgraph Matching
- Topicrank
- Temporal Graph APIs
- Path APIs
- Graph Statistics APIs
- Graph Operation APIs
- Subgraph Operation APIs
- Job Management APIs
- Custom Operations APIs
- Cypher Queries
- Filtered Query
- Filtered Query V2
- Updating Specified Properties of Vertices and Edges by Importing a File
- Deleting Vertices and Edges by Files
- Granular Permission Control APIs
-
Vertex Operation APIs
- Database Edition
-
Memory Edition
- GES Metrics
- Appendix
-
devg
- Overview
- Preparations
- Importing a Project
-
Using the Service Plane SDK
- Initializing the Client of the GES Service Plane
- Querying Vertices That Meet Filtering Conditions
- Querying Edges That Meet Filtering Conditions
- Querying Vertex Details
- Querying Edge Details
- Querying Graph Metadata Details
- Querying General Information About a Graph
- Executing Gremlin Queries
-
Running Algorithms
- PageRank
- PersonalRank
- K-hop
- K-core
- Shortest Path
- All Shortest Paths
- Filtered Shortest Path
- SSSP
- Shortest Path of Vertex Sets
- n Paths
- Closeness
- Label Propagation
- Louvain Algorithm
- Link Prediction
- Node2vec
- Real-time Recommendation
- Common Neighbors
- Connected Component
- Degree Correlation Algorithm
- Triangle Count
- Cluster Coefficient
- Filtered Circle Detection
- Subgraph Matching
- Filtered All Pairs Shortest Paths
- Filtered All Shortest Paths
- TopicRank
- Filtered n Paths
- Common Neighbors of Vertex Sets
- All Shortest Paths of Vertex Sets
- Querying Job Status
- Canceling a Job
- Adding a Vertex
- Deleting a Vertex
- Adding an Edge
- Deleting an Edge
- Adding an Index
- Deleting an Index
- Querying Indexes
- Exporting a Graph
- Removing a Graph
- Adding a Property
- Querying Path Details
- Incrementally Importing Data to Graphs
- Adding Vertices in Batches
- Deleting Vertices in Batches
- Adding Edges in Batches
- Deleting Edges in Batches
- Updating Vertex Properties in Batches
- Updating Edge Properties in Batches
-
Using the Management Plane SDK
- Initializing the Client of the GES Management Plane
- Querying Quotas
- Verifying Metadata Files
- Querying the Graph List
- Querying Graph Details
- Creating a Graph
- Closing a Graph
- Starting a Graph
- Deleting a Graph
- Querying Backups of All Graphs
- Querying the Backup List of a Graph
- Adding a New Backup
- Deleting a Backup
- Querying Job Status
- Using Cypher JDBC Driver to Access GES
- Relationships Between SDKs and REST APIs
-
FAQs
- Customer Consultation
-
API Use
- How Do I Import Data to GES?
- When Binding an EIP to an Existing Instance or an Instance Being Created, What Should I Do to Deal with Insufficient Permissions for Creating Agencies?
- When Binding an EIP to an Existing Instance or an Instance Being Created, What Should I Do to Deal with Insufficient Quotas for Creating Agencies?
- Can I Run Several Gremlin/Cypher Commands At a Time?
- If a Vertex Is Deleted, What Will Happen to Edges Formed Based on the Vertex?
- What Do I Do If an Error Message Indicating a Vertex Does Not Exist Is Displayed When Properties of the Vertex Whose ID Contains Chinese Characters Are Modified?
- GUI
- Others
Making a Service Plane API Request
This section describes the structure of a REST API on the service plane of GES.
Request URI
A request URI of a service plane API of GES is in the following format:
{URI-scheme} :// {SERVER_URL} / {resource-path} ? {query-string}
Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.
- URI-scheme: Protocol used to transmit requests. All APIs use HTTPS.
- SERVER_URL: Address for accessing a graph. For details about its value, see Using Service Plane APIs.
- resource-path: Access path of an API for performing a specified operation. Obtain the value from the URI module of the API, for example, ges/v1.0/{project_id}/graphs/{graph_name}/vertices/action?action_id=query.
- query-string: Query parameter, which is optional. Ensure that a question mark (?) is included before each query parameter that is in the format of "Parameter name=Parameter value". For example, ? limit=10 indicates that a maximum of 10 data records will be displayed.
Request Methods
The HTTP protocol defines the following request methods that can be used to send a request to the server:
- GET: requests the server to return specified resources.
- PUT: requests the server to update specified resources.
- POST: requests the server to add resources or perform special operations.
- DELETE: requests the server to delete specified resources, for example, an object.
- HEAD: same as GET except that the server must return only the response header.
- PATCH: requests the server to update partial content of a specified resource. If the resource does not exist, a new resource will be created.
Request Header
You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.
Parameter |
Mandatory |
Description |
Example |
---|---|---|---|
Content-Type |
Yes |
Specifies the request body type or format. This field is mandatory and its default value is application/json. Other values of this field will be provided for specific APIs if any. |
application/json |
X-Auth-Token |
Yes |
Specifies a user token only for token-based API authentication. |
- |
X-Language |
Yes |
Request language |
en-us |
Request Body
The body of a request is often sent in a structured format as specified in the Content-Type header field. The request body transfers content except the request header.
The request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.
For the API of obtaining a user token, obtain the request parameters and parameter description in the API request. The following provides an example request with a body included. Replace username, domianname, ******** (login password), and xxxxxxxxxxxxxxxxxx (project name) with the actual values.
If all data required for the API request is available, you can send the request to call the API through code. In the response to the API used to obtain a user token, x-subject-token is the desired user token. This token can then be used to authenticate the calling of other APIs.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.