Get Cloud Proxy Manager Configuration versions

This article explains how to get Cloud Proxy Manager Configuration versions with an API command.

API endpoint: GET /lpm/conf_states
Query parameters:
lpm_token - {TOKEN|CUSTOMER_NAME}, required
limit - number of records, 0-100
Sample Response:
[{"id":"645cb4cc35cf6c2bc244f9fb","timestamp":"2023-05-11T09:26:36.764Z","changes":[{}]},
{"id":"645ba00ef485fcb263c980c5","timestamp":"2023-05-10T13:45:50.057Z","changes":[{}]},
{"id":"6453af27866cf2e93fd19769","timestamp":"2023-05-04T13:12:07.780Z","changes":[{"type":"create_proxy_port","area":24023,"preset":"session_long","zone":"","proxy_type":"persist","port":24023}]}]
Shell
curl -X GET "https://brightdata.com/lpm/conf_states?lpm_token=<PROXY_MANAGER_TOKEN>"

Node.js

#!/usr/bin/env node
require('request-promise')({
	url: 'https://brightdata.com/lpm/conf_states?lpm_token=<PROXY_MANAGER_TOKEN>'
}).then(function(data){ console.log(data); },
	function(err){ console.error(err); });

Java

package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
  public static void main(String[] args) throws Exception {
    String res = Executor.newInstance()
.execute(Request.Get("https://brightdata.com/lpm/conf_states?lpm_token=<PROXY_MANAGER_TOKEN>"))
.returnContent().asString(); System.out.println(res) }
}

C#

using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;

public class Program {
  public static async Task Main() {
    var client = new HttpClient();
    var requestMessage = new HttpRequestMessage {
      Method = HttpMethod.Get,
RequestUri = new Uri("https://brightdata.com/lpm/conf_states?lpm_token=<PROXY_MANAGER_TOKEN>") }; var response = await client.SendAsync(requestMessage); var responseString = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseString); } }

Python

#!/usr/bin/env python
print('If you get error "ImportError: No module named requests", please install it:\n$ sudo pip install requests');
import requests

r = requests.get('https://brightdata.com/lpm/conf_states?lpm_token=<PROXY_MANAGER_TOKEN>')
print(r.content)

Was this article helpful?