# 연결 목록 상세

`GET /account/api/v1/residential/lists/{id}`

## 권한 인증

`Authorization: Bearer YOUR_ARNPROXY_API_KEY`

`Accept: application/json`

필요한 권한: `read + optional credentials`

## 매개변수

| 이름 | 유형 | 필수 / 조건부 | 기본값 | 설명 |
|---|---|---|---|---|
| `id` (path) | integer | 필수 | — | 이 작업에 해당하는 본인 기록 ID, 1–2147483647. 표시 주문 번호나 공급자 ID가 아닙니다. |
| `include_credentials` (query) | string | 선택 | `"0"` | "0" 또는 "1", 기본은 "0". "1"에는 credentials 권한과 유효한 서비스가 필요합니다. |

## 요청 예제

### curl

```curl
printf 'Authorization: Bearer %s\n' "$ARNPROXY_API_KEY" |
  curl --silent --show-error --header @- \
    --header 'Accept: application/json' \
    --connect-timeout 10 --max-time 30 \
    'https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID'
```

### python

```python
import os, requests

headers = {"Authorization": "Bearer " + os.environ["ARNPROXY_API_KEY"]}
response = requests.get(
    "https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID",
    headers=headers,
    timeout=(10, 30), allow_redirects=False
)
print(response.status_code, response.text)
# No automatic write retry.
```

### javascript

```javascript
const headers = { Authorization: `Bearer ${process.env.ARNPROXY_API_KEY}` };
const response = await fetch("https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID", {
  method: 'GET', headers, redirect: 'error',
  signal: AbortSignal.timeout(30000)
});
console.log(response.status, await response.text());
// A write timeout is ambiguous; query its saved operation.
```

### php

```php
<?php
$headers = ['Accept: application/json',
    'Authorization: Bearer '.getenv('ARNPROXY_API_KEY')];
$ch = curl_init('https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => $headers,
    CURLOPT_FOLLOWLOCATION => false,
    CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2,
    CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30,
]);
$result = curl_exec($ch);
if ($result === false) {
    // Do not repeat a write; use the original operation key.
    throw new RuntimeException('Transport result unknown');
}
echo curl_getinfo($ch, CURLINFO_HTTP_CODE).PHP_EOL.$result;
curl_close($ch);
```

### go

```go
package main

import (
  "fmt"
  "io"
  "net/http"
  "os"
  "time"
)

func main() {
  client := &http.Client{Timeout: 30*time.Second,
    CheckRedirect: func(req *http.Request, via []*http.Request) error {
      return http.ErrUseLastResponse
    }}
  var body io.Reader
  req, err := http.NewRequest("GET", "https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID", body)
  if err != nil { panic(err) }
  req.Header.Set("Authorization", "Bearer "+os.Getenv("ARNPROXY_API_KEY"))
  res, err := client.Do(req); if err != nil { panic(err) }
  defer res.Body.Close()
  data, err := io.ReadAll(res.Body); if err != nil { panic(err) }
  fmt.Println(res.StatusCode, string(data))
}
```

### csharp

```csharp
using System;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;

using var handler = new HttpClientHandler { AllowAutoRedirect = false };
using var client = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(30) };
using var request = new HttpRequestMessage(HttpMethod.Get,
    "https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID");
request.Headers.Authorization = new AuthenticationHeaderValue(
    "Bearer", Environment.GetEnvironmentVariable("ARNPROXY_API_KEY"));
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
// Never automatically retry an ambiguous write.
```

### java

```java
import java.net.URI;
import java.net.http.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.*;

// Inside your application method:
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder(URI.create("https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID"))
    .header("Authorization", "Bearer " + System.getenv("ARNPROXY_API_KEY"))
    .header("Accept", "application/json")
    .GET()
    .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
```

## 응답 · HTTP 200

```json
{
  "ok": true,
  "data": {
    "id": 30001,
    "package_id": 20001,
    "order_id": 20001,
    "title": "Example connection list",
    "package_state": "active",
    "snapshot": {
      "source": "arnproxy_records",
      "observed_at": "2030-01-01T12:00:00+00:00",
      "fresh": true,
      "max_age_seconds": 3600,
      "reason": null
    },
    "connection": {
      "host": "res.arnproxy.com",
      "first_port": 10000,
      "port_count": 10
    },
    "authentication": "login_password",
    "target": {
      "country": "US",
      "region": "",
      "city": "",
      "isp": ""
    },
    "rotation": {
      "type": "interval",
      "seconds": 0
    },
    "credential_read_available": true,
    "management_available": true,
    "management_actions": [
      "rename",
      "rotation",
      "delete"
    ]
  },
  "meta": {
    "request_id": "000000000000000000000001",
    "phase": "public_v1",
    "source": "arnproxy_records"
  }
}
```

| 이름 | 유형 | 조건부 | 설명 |
|---|---|---|---|
| `ok` | boolean | — | 성공 여부. false이면 error.code를 확인하세요. |
| `data` | object | — | 작업별 결과이며 예제는 설명용 합성 데이터입니다. |
| `data.id` | integer | — | 관련 ARNPROXY 기록 ID. 공급자 내부 ID 대신 사용하세요. |
| `data.package_id` | integer | — | 관련 ARNPROXY 기록 ID. 공급자 내부 ID 대신 사용하세요. |
| `data.order_id` | integer | — | 관련 ARNPROXY 기록 ID. 공급자 내부 ID 대신 사용하세요. |
| `data.title` | string | — | title의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.package_state` | string | — | package state의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.snapshot` | object | — | 패키지 관측의 출처/시간/최신성. 오래된 스냅샷은 관리 권한을 주지 않습니다. |
| `data.snapshot.source` | string | — | 데이터 출처. 로컬 기록과 실시간 공급자 조회는 서로 다른 근거입니다. |
| `data.snapshot.observed_at` | string | — | API가 반환하는 형식의 타임스탬프. 예제 날짜는 합성값입니다. |
| `data.snapshot.fresh` | boolean | — | 관측이 최신성 허용 범위에 들어가는지 여부. |
| `data.snapshot.max_age_seconds` | integer | — | 최신 관측으로 인정하는 최대 경과 초. |
| `data.snapshot.reason` | string|null | — | 고정 사유 코드 또는 null이며 원본 공급자 오류 텍스트가 아닙니다. |
| `data.connection` | object | — | 목록 호스트, 첫 포트, 포트 수. 관측이 유효하지 않으면 null일 수 있습니다. |
| `data.connection.host` | string | — | host의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.connection.first_port` | integer | — | 연결 포트 범위의 시작 또는 크기. |
| `data.connection.port_count` | integer | — | 연결 포트 범위의 시작 또는 크기. |
| `data.authentication` | string | — | 연결 목록 인증 방식: login_password 또는 ip_auth. |
| `data.target` | object | — | target의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.target.country` | string | — | country의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.target.region` | string | — | region의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.target.city` | string | — | city의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.target.isp` | string | — | isp의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.rotation` | object | — | rotation의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.rotation.type` | string | — | type의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.rotation.seconds` | integer | — | 기록/요청된 회전 초. Rotating 패키지와 Residential 목록의 규칙은 다릅니다. |
| `data.credential_read_available` | boolean | — | credential read available의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.management_available` | boolean | — | 조건/권한에 따른 사용 가능 여부이며 재고나 공급자 보장은 아닙니다. |
| `data.management_actions` | array | — | management actions의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `data.management_actions[]` | string | — | management actions의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `meta` | object | — | 요청 추적 및 데이터 출처 메타데이터. |
| `meta.request_id` | string | — | 이 HTTP 요청의 추적 ID이며 작업 키나 주문 ID가 아닙니다. |
| `meta.phase` | string | — | phase의 작업별 값입니다. 반환된 유형을 유지하고 동작 설명을 확인하세요. |
| `meta.source` | string | — | 데이터 출처. 로컬 기록과 실시간 공급자 조회는 서로 다른 근거입니다. |
| `data.credentials` | object | 조건부 | include_credentials=1, credentials 권한, 활성 패키지 및 login_password 목록에서만 반환됩니다. |
| `data.credentials.username` | string | 조건부 | 연결 목록 사용자명. |
| `data.credentials.password` | string | 조건부 | 연결 목록 비밀번호. |
| `data.authorized_ips` | string[]|null | 조건부 | residential_management 권한이 있는 IP 인증 목록에서 반환될 수 있습니다. |

## 동작 및 주요 참고 사항

- 패키지와 목록 ID는 ARNPROXY 기록 ID이며 공급자 키가 아닙니다. 오래된 스냅샷은 접근을 허용하지 않습니다. 필요 시 residential_package_refresh를 사용하세요.
- 인증 정보가 포함된 출력에는 credentials 권한이 필요합니다. 연결 문자열, 비밀번호, Authorization 헤더를 로그에 남기거나 지원팀에 보내지 마세요.

인증 및 검증 단계에서 실행 전에 요청이 거부될 수 있습니다. 오류 문서를 확인하고 지원 문의용 request_id를 보관하세요. 키나 비밀번호를 보내지 마세요.

[오류 및 제한](https://docs.arnproxy.com/ko/api-v1/errors)
