docs
api
Cloud Delivery(UCDN)
GetAuthConfig

Obtain Authentication Information via Interface (Non-standard Usage) - GetAuthConfig

Overview

Obtaining authentication information through the interface (non-standard usage)

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetAuthConfig.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
DomainstringDesired domain name, if not passed, all will be obtainedNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
AuthConfigsarray[KwaiDomainAuthConfig]Authentication Configuration ListNo

Data Model

KwaiDomainAuthConfig

Field NameTypeDescription InformationRequired
DomainstringDomain NameYes
Configarray[KwaiAuthConfig]Yes

KwaiAuthConfig

Field NameTypeDescription InformationRequired
TypestringType pkey / ksc / typeAYes
Keysarray[KwaiAuthKv]No

KwaiAuthKv

Field NameTypeDescription InformationRequired
KeystringKey InformationYes
IvstringThe translation for 'iv信息' is not provided in the given examples. Could you please provide more context or a specific translation for this term?Yes

Example

Request Example

https://api.surfercloud.com/?Action=GetAuthConfig
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=DFzPRVqI
&Domain=HhTjSARl

Response Example

{
  "Action": "GetAuthConfigResponse",
  "AuthConfigs": [
    {
      "Config": [
        {
          "Keys": [
            {
              "Iv": "222",
              "Key": "111"
            }
          ],
          "Type": "pkey"
        },
        {
          "Keys": [
            {
              "Iv": "444",
              "Key": "333"
            },
            {
              "Iv": "666",
              "Key": "555"
            }
          ],
          "Type": "ksc"
        }
      ],
      "Domain": "www.xx.com"
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved