{
"genMethod": 1,
"selected_positions": [
1
],
"numberOfPorts": 1,
"authMethod": 0,
"sharedEnabled": true,
"ipAuthenticationEntry": "",
"userAuthenticationEntry": "NTD89KDC:NTD89KDC",
"intervalRotation": 0,
"minIntervalRotation": 30,
"allowApiChangeRotation": true,
"minSecondRotate": 30,
"allowApiRotate": true,
"portType": 0,
"ipType": 1,
"genPort": 1,
"genPortStart": 20001,
"expiredDate": 1744362700675,
"whitelistLimitAccessEntry": "",
"blacklistLimitAccessEntry": "",
"counterUploadLimit": 0,
"counterUploadLimitBy": 1,
"counterUploadQuotaInMB": 100,
"counterDownloadLimit": 0,
"counterDownloadLimitBy": 1,
"counterDownloadQuotaInMB": 100,
"counterAllLimit": 0,
"counterAllLimitBy": 1,
"counterAllQuotaInMB": 100,
"bwLimitEnabled": 0,
"bwLimitRate": 0,
"tcpOS": "win1",
"customDNS": "",
"maxConnection": 200,
"maxConnectionPeriod": 60,
"memo": "Tom - 1 month",
"forceServerResolveDns": false,
"isAutoGenAuthentication": true,
"isAutoGenDifferenceEachPort": false
}
curl --location -g --request POST 'http://localhost/selling/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"genMethod": 1,
"selected_positions": [
1
],
"numberOfPorts": 1,
"authMethod": 0,
"sharedEnabled": true,
"ipAuthenticationEntry": "",
"userAuthenticationEntry": "NTD89KDC:NTD89KDC",
"intervalRotation": 0,
"minIntervalRotation": 30,
"allowApiChangeRotation": true,
"minSecondRotate": 30,
"allowApiRotate": true,
"portType": 0,
"ipType": 1,
"genPort": 1,
"genPortStart": 20001,
"expiredDate": 1744362700675,
"whitelistLimitAccessEntry": "",
"blacklistLimitAccessEntry": "",
"counterUploadLimit": 0,
"counterUploadLimitBy": 1,
"counterUploadQuotaInMB": 100,
"counterDownloadLimit": 0,
"counterDownloadLimitBy": 1,
"counterDownloadQuotaInMB": 100,
"counterAllLimit": 0,
"counterAllLimitBy": 1,
"counterAllQuotaInMB": 100,
"bwLimitEnabled": 0,
"bwLimitRate": 0,
"tcpOS": "win1",
"customDNS": "",
"maxConnection": 200,
"maxConnectionPeriod": 60,
"memo": "Tom - 1 month",
"forceServerResolveDns": false,
"isAutoGenAuthentication": true,
"isAutoGenDifferenceEachPort": false
}'
{
"status": true,
"data": [
{
"id": 0,
"shared_port": 0,
"gen_method": 1,
"position": 0,
"group_positions": [
0
],
"ip_type": "1",
"port_type": "0",
"auth_ip_list": "string",
"auth_user_list": "string",
"web_whitelist": "string",
"web_blacklist": "string",
"expired_at_unix": 0,
"enabled": true,
"memo": "string",
"custom_dns": "string",
"bw_limit_enabled": true,
"bw_limit_rate": 0,
"counter_dl_limit": "unlimited",
"counter_dl_limit_by": "DAILY",
"counter_dl_quota": 0,
"counter_ul_limit": "unlimited",
"counter_ul_limit_by": "DAILY",
"counter_ul_quota": 0,
"counter_all_limit": "unlimited",
"counter_all_limit_by": "DAILY",
"counter_all_quota": 0,
"max_connection": 0,
"max_connection_period": 60,
"tcp_os": "string",
"force_server_resolve_dns": true,
"interval_rotation": 0,
"min_interval_rotation": 0,
"allow_api_rotate": true,
"min_second_rotate": 0,
"allow_api_change_rotation": true,
"last_rotation": 0
}
]
}