|
| 1 | +# AnalysesXRefsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.reveng.ai* |
| 4 | + |
| 5 | +| Method | HTTP request | Description | |
| 6 | +|------------- | ------------- | -------------| |
| 7 | +| [**getXrefByVaddr**](AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up an xref by virtual address | |
| 8 | + |
| 9 | + |
| 10 | +<a id="getXrefByVaddr"></a> |
| 11 | +# **getXrefByVaddr** |
| 12 | +> BaseResponseXRef getXrefByVaddr(analysisId, vaddr) |
| 13 | +
|
| 14 | +[Beta] Look up an xref by virtual address |
| 15 | + |
| 16 | +**This endpoint is in beta and may change without notice.** |
| 17 | + |
| 18 | +### Example |
| 19 | +```java |
| 20 | +// Import classes: |
| 21 | +import ai.reveng.invoker.ApiClient; |
| 22 | +import ai.reveng.invoker.ApiException; |
| 23 | +import ai.reveng.invoker.Configuration; |
| 24 | +import ai.reveng.invoker.auth.*; |
| 25 | +import ai.reveng.invoker.models.*; |
| 26 | +import ai.reveng.api.AnalysesXRefsApi; |
| 27 | + |
| 28 | +public class Example { |
| 29 | + public static void main(String[] args) { |
| 30 | + ApiClient defaultClient = Configuration.getDefaultApiClient(); |
| 31 | + defaultClient.setBasePath("https://api.reveng.ai"); |
| 32 | + |
| 33 | + // Configure API key authorization: APIKey |
| 34 | + ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey"); |
| 35 | + APIKey.setApiKey("YOUR API KEY"); |
| 36 | + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) |
| 37 | + //APIKey.setApiKeyPrefix("Token"); |
| 38 | + |
| 39 | + AnalysesXRefsApi apiInstance = new AnalysesXRefsApi(defaultClient); |
| 40 | + Integer analysisId = 56; // Integer | |
| 41 | + Integer vaddr = 56; // Integer | Virtual address to match against xref_to |
| 42 | + try { |
| 43 | + BaseResponseXRef result = apiInstance.getXrefByVaddr(analysisId, vaddr); |
| 44 | + System.out.println(result); |
| 45 | + } catch (ApiException e) { |
| 46 | + System.err.println("Exception when calling AnalysesXRefsApi#getXrefByVaddr"); |
| 47 | + System.err.println("Status code: " + e.getCode()); |
| 48 | + System.err.println("Reason: " + e.getResponseBody()); |
| 49 | + System.err.println("Response headers: " + e.getResponseHeaders()); |
| 50 | + e.printStackTrace(); |
| 51 | + } |
| 52 | + } |
| 53 | +} |
| 54 | +``` |
| 55 | + |
| 56 | +### Parameters |
| 57 | + |
| 58 | +| Name | Type | Description | Notes | |
| 59 | +|------------- | ------------- | ------------- | -------------| |
| 60 | +| **analysisId** | **Integer**| | | |
| 61 | +| **vaddr** | **Integer**| Virtual address to match against xref_to | | |
| 62 | + |
| 63 | +### Return type |
| 64 | + |
| 65 | +[**BaseResponseXRef**](BaseResponseXRef.md) |
| 66 | + |
| 67 | +### Authorization |
| 68 | + |
| 69 | +[APIKey](../README.md#APIKey) |
| 70 | + |
| 71 | +### HTTP request headers |
| 72 | + |
| 73 | + - **Content-Type**: Not defined |
| 74 | + - **Accept**: application/json |
| 75 | + |
| 76 | +### HTTP response details |
| 77 | +| Status code | Description | Response headers | |
| 78 | +|-------------|-------------|------------------| |
| 79 | +| **200** | Successful Response | - | |
| 80 | +| **422** | Invalid request parameters | - | |
| 81 | +| **404** | Xref or analysis cache not found | - | |
| 82 | + |
0 commit comments