Updated on 2023-06-25 GMT+08:00

DependencyMicroService

Table 1 Parameters

Parameter

Type

Mandatory

Description

appId

String

Yes

Application ID, which must be unique.

The value must be 1 to 160 characters long.

Regular expression: ^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$

serviceName

String

Yes

Microservice name.

For a provider microservice, the value can be *, indicating all services of a tenant. If the value is *, both appId and version can be omitted.

For a consumer microservice, the value cannot be *.

The value must be 1 to 128 characters long.

Regular expression: ^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$

version

String

Yes

Microservice version.

For a provider microservice, the value can be the version+, fixed version, or latest version. For example, 1.0.1+ indicates version 1.0.1 or later.

For a consumer microservice, the value can only be a fixed version.

The value must be 1 to 64 characters long.

Regular expression: ^[0-9]*$|^[0-9]+(\.[0-9]+)*$

environment

String

No

Microservice environment. Options:

  • development
  • testing
  • acceptance
  • production