gslb template csv

Configure a template for extracting geo-location data from an imported CSV file.

csv Specification

Type Collection
Object Key(s) csv-name
Collection Name csv-list
Collection URI /axapi/v3/gslb/template/csv/
Element Name csv
Element URI /axapi/v3/gslb/template/csv/{csv-name}
Element Attributes csv_attributes
Schema csv schema

Operations Allowed:

Operation Method URI Payload

Create Object

POST

/axapi/v3/gslb/template/csv/

csv Attributes

Create List

POST

/axapi/v3/gslb/template/csv/

csv Attributes

Get Object

GET

/axapi/v3/gslb/template/csv/{csv-name}

csv Attributes

Get List

GET

/axapi/v3/gslb/template/csv/

csv-list

Modify Object

POST

/axapi/v3/gslb/template/csv/{csv-name}

csv Attributes

Replace Object

PUT

/axapi/v3/gslb/template/csv/{csv-name}

csv Attributes

Replace List

PUT

/axapi/v3/gslb/template/csv/

csv-list

Delete Object

DELETE

/axapi/v3/gslb/template/csv/{csv-name}

csv Attributes

csv-list

csv-list is JSON List of csv Attributes

csv-list : [

csv Attributes

csv-name

Description: Specify the name of the CSV template.

Type: string

Required: Yes

delim-char

Description: Specifies the character used in the file to delimit fields. delim-num and delim-char are mutually exclusive, so you will only configure one or the other.

Type: string

Format: string-rlx

Default: ,

Mutual Exclusion: delim-char and delim-num are mutually exclusive

delim-num

Description: Specifies the ASCII code number used in the file to delimit fields. delim-num and delim-char are mutually exclusive, so you will only configure one or the other. The default number represents a comma.

Type: number

Range: 0-255

Default: 44

Mutual Exclusion: delim-num and delim-char are mutually exclusive

ipv6-enable

Description: Support IPv6 IP ranges.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

multiple-fields

Description: multiple-fields is a JSON List . Please see below for multiple-fields

Type: List

user-tag

Description: Customized tag

Type: string

Format: string-rlx

uuid

Description: uuid of the object

Type: string

multiple-fields

Specification
Type list
Block object keys

csv-type

Description: ‘ip-from’: Beginning address of IP range or subnet; ‘ip-to-mask’: Ending address of IP range or Mask; ‘continent’: Continent; ‘country’: Country; ‘state’: State or province; ‘city’: City;

Type: string

Supported Values: ip-from, ip-to-mask, continent, country, state, city

field

Description: Field index number (Index of Field)

Type: number

Range: 1-64