# Obtain DDoS Protection Service Configuration - GetNapServiceConfig

## Overview

Obtain DDoS Protection Service Configuration






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetNapServiceConfig`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.netlake.cn/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **AreaLine** | string | Region |No|
| **EngineRoom** | string | Data center of the purchased package |No|
| **LineType** | string | Line Type |No|
| **NapType** | int | DDoS Protection Type; 0: All, 1: Mainland DDoS Protection, 2: Overseas DDoS Protection |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **NapServiceConfig** | array[[*NapServiceConfigEntry*](#napserviceconfigentry)] | UDShield Configuration |**Yes**|

#### Data Model


#### NapServiceConfigEntry

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **AreaLine** | string | Region |No|
| **EngineRoom** | string | Data center of the purchased package |No|
| **LineType** | string | Line Type |No|
| **DR** | object | Disaster Recovery Configuration |No|
| **Domain** | object | Domain Configuration |No|
| **DomainSrc** | object | Can I configure domain name back-to-source? |No|
| **DynamicPay** | object | Pay-as-you-go Configuration |No|
| **DayPay** | object | Purchase Configuration Daily |No|
| **MonthPay** | object | Purchase Configuration Monthly |No|
| **YearPay** | object | Purchase configuration Yearly |No|
| **NapType** | int | High Defense Type, 1: Mainland High Defense, 2: Overseas High Defense |No|

## Example

### Request Example
    
```
https://api.netlake.cn/?Action=GetNapServiceConfig
&AreaLine=EastChina
&EngineRoom=Huzhou
&LineType=DUPLET
&NapType=UQnUagoI
```

### Response Example
    
```json
{
  "Action": "GetNapServiceConfigResponse",
  "NapServiceConfig": [
    {
      "AreaLine": "EastChina",
      "DR": null,
      "DayPay": null,
      "Domain": {
        "Enable": true
      },
      "DomainForward": {
        "Enable": false
      },
      "DomainSrc": {
        "Enable": true
      },
      "DynamicPay": null,
      "EngineRoom": "Huzhou",
      "LineType": "DUPLET",
      "MonthPay": null,
      "YearPay": null
    }
  ],
  "RetCode": 0
}
```





