ListServiceConfigs

Updated at:

Retrieves a list of services.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-greenweb:ListServiceConfigs

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ResourceType

string

No

The resource type. This parameter is required. If you do not specify this parameter, the service returns a 400 error.

Valid values:

  • voice :

    Audio.

  • image :

    Image.

  • file :

    Document.

  • text :

    Text.

  • video :

    Video.

text

RegionId

string

No

The region ID.

cn-shanghai

Classify

string

No

The category.

guard-scene

UseStatus

string

No

The usage status.

in

ProtectionType

string

No

The protection type. Valid values:

  • modelProtection: model protection

  • agentRealtimeProtection: real-time agent protection

  • agentBehaviorAudit: agent behavior audit

modelProtection

Response elements

Element

Type

Description

Example

object

The response body.

Data

array<object>

The returned data.

array<object>

The returned data.

Uid

string

The user UID.

1674*****0071291

ResourceType

string

The resource type.

text

ServiceCode

string

The service code.

nickname_detection

GmtModified

string

The modification time.

2023-07-11 15:40:04

CopyFrom

string

The primary service.

nickname_detection

CustomServiceConf

object

The service configuration.

KeywordFilterLibs

array

The ignored keyword libraries.

string

The ignored keyword libraries.

[]

KeywordHitLibs

array

The matched keyword libraries.

string

The matched keyword libraries.

[]

SimilarTextHitLibs

array

The matched similar text libraries.

string

The matched similar text libraries.

[]

ImageService

array

The image service.

string

The image service.

baselineCheck

AudioService

string

The audio service.

audio_media_detection

Rules

array<object>

The service rules.

array<object>

Index

integer

The sequence number.

1

ImageScanRule

object

The image moderation rule.

Services

array

The image service.

string

The image service.

baselineCheck

TextScanRule

object

The text moderation rule.

Services

array

The text services.

string

The text services.

nickname_detection

ServiceName

string

The service name.

Service name

ServiceDesc

string

The service description.

Service description

Option

object

The options.

{}

ServiceType

string

The service type.

plus

Classify

string

The category.

guard-scene

UseStatus

string

The usage status.

in

SceneType

string

The scene type. Valid values:

  • recommended_scene: recommended scene

  • all_scene: all scenes

all_scene

Success

boolean

Indicates whether the request is successful.

True

Code

integer

The error code.

400

Msg

string

The detailed description of the error code.

OK

RequestId

string

The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues.

AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****

Examples

Success response

JSON format

{
  "Data": [
    {
      "Uid": "1674*****0071291",
      "ResourceType": "text",
      "ServiceCode": "nickname_detection",
      "GmtModified": "2023-07-11 15:40:04",
      "CopyFrom": "nickname_detection",
      "CustomServiceConf": {
        "KeywordFilterLibs": [
          "[]"
        ],
        "KeywordHitLibs": [
          "[]"
        ],
        "SimilarTextHitLibs": [
          "[]"
        ],
        "ImageService": [
          "baselineCheck"
        ],
        "AudioService": "audio_media_detection",
        "Rules": [
          {
            "Index": 1,
            "ImageScanRule": {
              "Services": [
                "baselineCheck"
              ]
            },
            "TextScanRule": {
              "Services": [
                "nickname_detection"
              ]
            }
          }
        ]
      },
      "ServiceName": "Service name",
      "ServiceDesc": "Service description",
      "Option": {},
      "ServiceType": "plus",
      "Classify": "guard-scene",
      "UseStatus": "in",
      "SceneType": "all_scene"
    }
  ],
  "Success": true,
  "Code": 400,
  "Msg": "OK",
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.