Class ResourcesService
Represents a collection of functions to interact with the API endpoints
Inheritance
Implements
Namespace: InfluxDB.Client.Api.Service
Assembly: InfluxDB.Client.dll
Syntax
public class ResourcesService : object, IResourcesService, IApiAccessor
Constructors
ResourcesService(Configuration)
Initializes a new instance of the Resources
Declaration
public ResourcesService(Configuration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
Influx |
configuration | An instance of Configuration |
ResourcesService(String)
Initializes a new instance of the Resources
Declaration
public ResourcesService(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
basePath |
Properties
Configuration
Gets or sets the configuration object
Declaration
public Configuration Configuration { get; set; }
Property Value
Type | Description |
---|---|
Influx |
An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
Influx |
Methods
AddDefaultHeader(String, String)
Add default header.
Declaration
public void AddDefaultHeader(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | Header field name. |
System. |
value | Header field value. |
DefaultHeader()
Gets the default header.
Declaration
public IDictionary<string, string> DefaultHeader()
Returns
Type | Description |
---|---|
IDictionary<System. |
Dictionary of HTTP header |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
System. |
The base path |
GetResources(String)
List all known resources
Declaration
public List<string> GetResources(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
List<System. |
List<string> |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesAsync(String, CancellationToken)
List all known resources
Declaration
public async System.Threading.Tasks.Task<List<string>> GetResourcesAsync(string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of List<string> |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesAsyncWithHttpInfo(String, CancellationToken)
List all known resources
Declaration
public async System.Threading.Tasks.Task<ApiResponse<List<string>>> GetResourcesAsyncWithHttpInfo(string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of ApiResponse (List<string>) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesAsyncWithIRestResponse(String, CancellationToken)
List all known resources
Declaration
public async System.Threading.Tasks.Task<RestResponse> GetResourcesAsyncWithIRestResponse(string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of RestResponse (List<string>) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesWithHttpInfo(String)
List all known resources
Declaration
public ApiResponse<List<string>> GetResourcesWithHttpInfo(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Influx |
ApiResponse of List<string> |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesWithIRestResponse(String)
List all known resources
Declaration
public RestResponse GetResourcesWithIRestResponse(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Rest |
ApiResponse of List<string> |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesWithIRestResponseAsync(String, CancellationToken)
List all known resources
Declaration
public async System.Threading.Tasks.Task<RestResponse> GetResourcesWithIRestResponseAsync(string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
ApiResponse of List<string> |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetResourcesWithRestRequest(String)
List all known resources
Declaration
public RestRequest GetResourcesWithRestRequest(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Rest |
ApiResponse of List<string> |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
SetBasePath(String)
Sets the base path of the API client.
Declaration
public void SetBasePath(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
basePath |