Hunk®(Legacy)

Hunk User Manual

Download manual as PDF

Download topic as PDF

Providers

Create and manage providers.


data/indexes

Provides services to create and manage data indexes.

GET data/vix-providers

Lists the recognized providers on the server.

Request

See Common GET request parameters.

Response

HTTP status codes

See HTTP status code table.

Example

Lists the indexes on this Splunk instance.


curl -k -u admin:pass https://localhost:8089/services/data/vix-providers

POST data/vix-providers

Creates a new provider with the given name.

Request

See Common GET request parameters.

HTTP status codes

See HTTP status code table.

Example

The following example creates a provider named Shadow.


curl -k -u admin:pass https://localhost:8089/servicesNS/admin/search/data/vix-providers \
	-d name=Shadow


data/vix-providers/{name}

DELETE data/indexes/{name}

Removes the index specified by {name} (not just the data contained in it).

Caution: This operation deletes the provider's data directories and removes the provider's stanza from indexes.conf.

Request

See Common GET request parameters.

Response

None

HTTP status codes

See HTTP status code table.

Example

Deletes the provider named shadow.

curl -k -u admin:pass --request DELETE https://localhost:8089/services/data/vix-providers/Shadow

GET data/vix-providers/{name}

Retrieves information about the named index.

Request

See Common GET request parameters.

Response

HTTP status codes

See HTTP status code table.

Example

Lists information about the Shadow index.


curl -k -u admin:pass https://localhost:8089/services/data/vix-providers

POST data/vix-providers/{name}

Updates the provider specified by {name} with information specified with index attributes.

Request

See Common GET request parameters.

Response

HTTP status codes

See HTTP status code table.

Example

The following example updates the maximum size of the index named "Shadow", setting the size at 400000 MB.

This index was created in the example for the POST operation for this endpoint.


curl -k -u admin:pass https://localhost:8089/services/data/vix-providers/Shadow -d vix.*=Shadow
/data/indexes/shadow
PREVIOUS
Required configuration variables for YARN
  NEXT
Indexes

This documentation applies to the following versions of Hunk®(Legacy): 6.1, 6.1.1, 6.1.2, 6.1.3, 6.2, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.2.5, 6.2.6, 6.2.7, 6.2.8, 6.2.9, 6.2.10, 6.2.11, 6.2.12, 6.2.13, 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.3.4, 6.3.5, 6.3.6, 6.3.7, 6.3.8, 6.3.9, 6.3.10, 6.3.11, 6.3.12, 6.3.13, 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6, 6.4.7, 6.4.8, 6.4.9, 6.4.10, 6.4.11


Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters