# Get a list of public login locations - ListUhostsecCommonLoginLocation

## Overview

Get a list of public login locations






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `ListUhostsecCommonLoginLocation`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.ckcloudai.com/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 |
|:---|:---|:---|:---|
| **ProjectId** | string | Project ID. Leaving this field blank will default to the project ID; it is required for sub-accounts. Please refer to the [GetProjectList API](/docs/api/summary/get_project_list) |**Yes**|

### 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|
| **Infos** | array[[*CommonLoginLocationInfo*](#commonloginlocationinfo)] | List of public login sites |No|

#### Data Model


#### CommonLoginLocationInfo

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Country** | string | Country |No|
| **Province** | string | Province |No|
| **City** | string | City |No|
| **Account** | string | Account |No|
| **CreateTime** | string | Creation/Modification Time |No|

## Example

### Request Example
    
```
https://api.ckcloudai.com/?Action=ListUhostsecCommonLoginLocation
&ProjectId=BbdTEbry
```

### Response Example
    
```json
{
  "Action": "ListUhostsecCommonLoginLocationResponse",
  "Infos": [
    {
      "City": "-",
      "Country": "中国",
      "Province": "香港"
    },
    {
      "City": "苏州",
      "Country": "中国",
      "Province": "江苏"
    },
    {
      "City": "-",
      "Country": "美国",
      "Province": "美国"
    },
    {
      "City": "广州",
      "Country": "中国",
      "Province": "广东"
    }
  ],
  "RetCode": 0
}
```





