Updated on 2024-07-04 GMT+08:00

Querying Publisher Details

Function

This API is used to query publisher details.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{domain_id}/publisher/detail

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Tenant ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

[items]

No

Array of strings

Publisher ID set.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

publisher_detail_map

Map<String,PublisherVO>

Publisher details.

Table 5 PublisherVO

Parameter

Type

Description

publisher_unique_id

String

Publisher ID.

user_id

String

User ID.

tenant_id

String

Tenant ID.

description

String

Description.

logo_url

String

Icon URL.

website

String

Web URL.

support_url

String

Address.

source_url

String

Address.

en_name

String

Name.

name

String

Name.

auth_status

String

Authorization status.

is_delete

Integer

Whether to delete.

last_update_user_name

String

Last updater.

last_update_user_id

String

Last updater ID.

last_update_time

String

Last update time.

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_msg

String

Error message.

error_code

String

Error code.

Example Requests

POST https://{endpoint}/v1/ce8df55870164338a72d7e828a966a2a/publisher/detail

[ "b9fc8fb6d9194536ac66dd74c2212126" ]

Example Responses

Status code: 200

OK

{
  "b9fc8fb6d9194536ac66dd74c2212126" : {
    "publisher_unique_id" : "b9fc8fb6d9194536ac66dd74c2212126",
    "user_id" : "847a5317086c41798469d0868535943a",
    "tenant_id" : "ce8df55870164338a72d7e828a966a2a",
    "description" : "This is the description",
    "logo_url" : "/api/v1/ce8df55870164338a72d7e828a966a2a/common/get-plugin-icon?object_key=default-cfb6036d13404631a04a5e7f3a5899b2-kubernetes.png-ce8df55870164338a72d7e828a966a2a&icon_type=publish",
    "website" : "https://demo.com/rp/team/ptnixbayoz",
    "support_url" : "5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555",
    "source_url" : "",
    "en_name" : "kejiyouxiangongsi",
    "name" : "Hangzhou XXX Technology Co., Ltd.",
    "auth_status" : "accept",
    "is_delete" : 0,
    "last_update_user_name" : "devcloud_devcloud_h00485561_01",
    "last_update_user_id" : "847a5317086c41798469d0868535943a",
    "last_update_time" : "2023-02-21T09:22:34.528"
  }
}

Status Codes

Status Code

Description

200

OK

400

Bad request

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.