Lattice Hub Docs
HTTP OpenAPIGovernance

Lossless

Lossless rules and releases.

Lossless rules and releases.

Default Base URL: http://127.0.0.1:8090. Management APIs require Authorization (token from login).

Lossless

Lossless: list, create/update, delete, and releases (publish / rollback / stopbeta). Bodies are rule arrays; fields follow specification.

GET/naming/v1/losslessAuth required

List lossless

Paginated lossless list.

  • Authorizationheader · stringrequired

    Token from login.

  • idquery · stringoptional

    Filter by ID.

  • namequery · stringoptional

    Filter by name.

  • namespacequery · stringoptional

    Filter by namespace.

  • servicequery · stringoptional

    Filter by service.

  • enablequery · booloptional

    Enabled filter.

  • offsetquery · integeroptional

    Offset, default 0.

  • limitquery · integeroptional

    Page size, often max 100.

Request
curl -sS 'http://127.0.0.1:8090/naming/v1/lossless?limit=20' \
  -H "Authorization: $TOKEN"
Response example
{
  "code": 200000,
  "info": "execute success",
  "data": [{ "id": "...", "name": "demo", "enable": true }]
}
GET/naming/v1/lossless/detailAuth required

Get lossless detail

Fetch one rule by id / filters.

  • Authorizationheader · stringrequired

    Token from login.

  • idquery · stringoptional

    Filter by ID.

  • namequery · stringoptional

    Filter by name.

  • namespacequery · stringoptional

    Filter by namespace.

  • servicequery · stringoptional

    Filter by service.

  • enablequery · booloptional

    Enabled filter.

  • offsetquery · integeroptional

    Offset, default 0.

  • limitquery · integeroptional

    Page size, often max 100.

Request
curl -sS 'http://127.0.0.1:8090/naming/v1/lossless/detail?id=<id>' \
  -H "Authorization: $TOKEN"
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
POST/naming/v1/losslessAuth required

Create lossless

Write bodies are usually protobuf message arrays; fields below are per-object (see specification).

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · LosslessRule[]required

    Request body is a JSON array of LosslessRule: [{...}, ...]. Fields below are the full per-item schema (including nested).

  • idbody · stringoptional

    rule id

  • lossless_onlinebody · LosslessOnlineoptional

    configuration for lossless online

    • delay_registerbody · DelayRegisteroptional

      configuration for delayRegister

      • enablebody · booloptional

        enable delay registry

      • strategybody · enum(DelayStrategy)optional

        delay register strategy enum: DELAY_BY_TIME | DELAY_BY_HEALTH_CHECK

      • interval_secondbody · int32optional

        delay register time by second, active when strategy == DELAY_BY_TIME

      • health_check_protocolbody · stringoptional

        protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_methodbody · stringoptional

        method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_pathbody · stringoptional

        path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_interval_secondbody · stringoptional

        health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK

    • warmupbody · Warmupoptional

      configuration for warmup

      • enablebody · booloptional

        enable warmup

      • interval_secondbody · int32optional

        total warmup interval by second

      • enable_overload_protectionbody · booloptional

        warmup stop when most of the instances in service are in warmup status

      • overload_protection_thresholdbody · int32optional

        the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100

      • curvaturebody · int32optional

        curvature for warmup register, default is 1

    • readinessbody · Readinessoptional

      configuration for readiness probe

      • enablebody · booloptional

        enable /readiness expose

  • lossless_offlinebody · LosslessOfflineoptional

    configuration for lossless offline

    • enablebody · booloptional

      enable /offline expose

  • metadatabody · map<string,string>optional

    metadata

  • namespacebody · stringrequired

    namespace identifies the environment that owns this rule.

  • codebody · uint32required

    Business code; success is usually 200000.

  • infobody · stringoptional

    Info message.

  • losslessRulebody · LosslessRuleoptional

    LosslessRule entity fields (batch APIs nest under responses[]).

    • idbody · stringoptional

      rule id

    • revisionbody · stringoptional

      revision routing version

    • ctimebody · stringoptional

      ctime create time of the rules

    • mtimebody · stringoptional

      mtime modify time of the rules

    • lossless_onlinebody · LosslessOnlineoptional

      configuration for lossless online

      • delay_registerbody · DelayRegisteroptional

        configuration for delayRegister

        • enablebody · booloptional

          enable delay registry

        • strategybody · enum(DelayStrategy)optional

          delay register strategy enum: DELAY_BY_TIME | DELAY_BY_HEALTH_CHECK

        • interval_secondbody · int32optional

          delay register time by second, active when strategy == DELAY_BY_TIME

        • health_check_protocolbody · stringoptional

          protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_methodbody · stringoptional

          method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_pathbody · stringoptional

          path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_interval_secondbody · stringoptional

          health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK

      • warmupbody · Warmupoptional

        configuration for warmup

        • enablebody · booloptional

          enable warmup

        • interval_secondbody · int32optional

          total warmup interval by second

        • enable_overload_protectionbody · booloptional

          warmup stop when most of the instances in service are in warmup status

        • overload_protection_thresholdbody · int32optional

          the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100

        • curvaturebody · int32optional

          curvature for warmup register, default is 1

      • readinessbody · Readinessoptional

        configuration for readiness probe

        • enablebody · booloptional

          enable /readiness expose

    • lossless_offlinebody · LosslessOfflineoptional

      configuration for lossless offline

      • enablebody · booloptional

        enable /offline expose

    • metadatabody · map<string,string>optional

      metadata

    • editablebody · booloptional

      操作标志位

    • deleteablebody · booloptional

      deleteable

    • namespacebody · stringoptional

      namespace identifies the environment that owns this rule.

Request
curl -sS -X POST 'http://127.0.0.1:8090/naming/v1/lossless' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[{"name":"demo-lossless","enable":true}]'
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
PUT/naming/v1/losslessAuth required

Update lossless

Update rules; body is an array.

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · LosslessRule[]required

    Request body is a JSON array of LosslessRule: [{...}, ...]. Fields below are the full per-item schema (including nested).

  • idbody · stringoptional

    rule id

  • lossless_onlinebody · LosslessOnlineoptional

    configuration for lossless online

    • delay_registerbody · DelayRegisteroptional

      configuration for delayRegister

      • enablebody · booloptional

        enable delay registry

      • strategybody · enum(DelayStrategy)optional

        delay register strategy enum: DELAY_BY_TIME | DELAY_BY_HEALTH_CHECK

      • interval_secondbody · int32optional

        delay register time by second, active when strategy == DELAY_BY_TIME

      • health_check_protocolbody · stringoptional

        protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_methodbody · stringoptional

        method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_pathbody · stringoptional

        path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_interval_secondbody · stringoptional

        health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK

    • warmupbody · Warmupoptional

      configuration for warmup

      • enablebody · booloptional

        enable warmup

      • interval_secondbody · int32optional

        total warmup interval by second

      • enable_overload_protectionbody · booloptional

        warmup stop when most of the instances in service are in warmup status

      • overload_protection_thresholdbody · int32optional

        the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100

      • curvaturebody · int32optional

        curvature for warmup register, default is 1

    • readinessbody · Readinessoptional

      configuration for readiness probe

      • enablebody · booloptional

        enable /readiness expose

  • lossless_offlinebody · LosslessOfflineoptional

    configuration for lossless offline

    • enablebody · booloptional

      enable /offline expose

  • metadatabody · map<string,string>optional

    metadata

  • namespacebody · stringoptional

    namespace identifies the environment that owns this rule.

  • codebody · uint32required

    Business code; success is usually 200000.

  • infobody · stringoptional

    Info message.

  • losslessRulebody · LosslessRuleoptional

    LosslessRule entity fields (batch APIs nest under responses[]).

    • idbody · stringoptional

      rule id

    • revisionbody · stringoptional

      revision routing version

    • ctimebody · stringoptional

      ctime create time of the rules

    • mtimebody · stringoptional

      mtime modify time of the rules

    • lossless_onlinebody · LosslessOnlineoptional

      configuration for lossless online

      • delay_registerbody · DelayRegisteroptional

        configuration for delayRegister

        • enablebody · booloptional

          enable delay registry

        • strategybody · enum(DelayStrategy)optional

          delay register strategy enum: DELAY_BY_TIME | DELAY_BY_HEALTH_CHECK

        • interval_secondbody · int32optional

          delay register time by second, active when strategy == DELAY_BY_TIME

        • health_check_protocolbody · stringoptional

          protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_methodbody · stringoptional

          method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_pathbody · stringoptional

          path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_interval_secondbody · stringoptional

          health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK

      • warmupbody · Warmupoptional

        configuration for warmup

        • enablebody · booloptional

          enable warmup

        • interval_secondbody · int32optional

          total warmup interval by second

        • enable_overload_protectionbody · booloptional

          warmup stop when most of the instances in service are in warmup status

        • overload_protection_thresholdbody · int32optional

          the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100

        • curvaturebody · int32optional

          curvature for warmup register, default is 1

      • readinessbody · Readinessoptional

        configuration for readiness probe

        • enablebody · booloptional

          enable /readiness expose

    • lossless_offlinebody · LosslessOfflineoptional

      configuration for lossless offline

      • enablebody · booloptional

        enable /offline expose

    • metadatabody · map<string,string>optional

      metadata

    • editablebody · booloptional

      操作标志位

    • deleteablebody · booloptional

      deleteable

    • namespacebody · stringoptional

      namespace identifies the environment that owns this rule.

Request
curl -sS -X PUT 'http://127.0.0.1:8090/naming/v1/lossless' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[{"name":"demo-lossless","enable":true}]'
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
POST/naming/v1/lossless/deleteAuth required

Delete lossless

Delete rules; body is an array with ids.

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · LosslessRule[]required

    Request body is a JSON array of LosslessRule: [{...}, ...]. Fields below are the full per-item schema (including nested).

  • idbody · stringoptional

    rule id

  • lossless_onlinebody · LosslessOnlineoptional

    configuration for lossless online

    • delay_registerbody · DelayRegisteroptional

      configuration for delayRegister

      • enablebody · booloptional

        enable delay registry

      • strategybody · enum(DelayStrategy)optional

        delay register strategy enum: DELAY_BY_TIME | DELAY_BY_HEALTH_CHECK

      • interval_secondbody · int32optional

        delay register time by second, active when strategy == DELAY_BY_TIME

      • health_check_protocolbody · stringoptional

        protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_methodbody · stringoptional

        method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_pathbody · stringoptional

        path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK

      • health_check_interval_secondbody · stringoptional

        health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK

    • warmupbody · Warmupoptional

      configuration for warmup

      • enablebody · booloptional

        enable warmup

      • interval_secondbody · int32optional

        total warmup interval by second

      • enable_overload_protectionbody · booloptional

        warmup stop when most of the instances in service are in warmup status

      • overload_protection_thresholdbody · int32optional

        the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100

      • curvaturebody · int32optional

        curvature for warmup register, default is 1

    • readinessbody · Readinessoptional

      configuration for readiness probe

      • enablebody · booloptional

        enable /readiness expose

  • lossless_offlinebody · LosslessOfflineoptional

    configuration for lossless offline

    • enablebody · booloptional

      enable /offline expose

  • metadatabody · map<string,string>optional

    metadata

  • namespacebody · stringoptional

    namespace identifies the environment that owns this rule.

  • codebody · uint32required

    Business code; success is usually 200000.

  • infobody · stringoptional

    Info message.

  • losslessRulebody · LosslessRuleoptional

    LosslessRule entity fields (batch APIs nest under responses[]).

    • idbody · stringoptional

      rule id

    • revisionbody · stringoptional

      revision routing version

    • ctimebody · stringoptional

      ctime create time of the rules

    • mtimebody · stringoptional

      mtime modify time of the rules

    • lossless_onlinebody · LosslessOnlineoptional

      configuration for lossless online

      • delay_registerbody · DelayRegisteroptional

        configuration for delayRegister

        • enablebody · booloptional

          enable delay registry

        • strategybody · enum(DelayStrategy)optional

          delay register strategy enum: DELAY_BY_TIME | DELAY_BY_HEALTH_CHECK

        • interval_secondbody · int32optional

          delay register time by second, active when strategy == DELAY_BY_TIME

        • health_check_protocolbody · stringoptional

          protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_methodbody · stringoptional

          method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_pathbody · stringoptional

          path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK

        • health_check_interval_secondbody · stringoptional

          health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK

      • warmupbody · Warmupoptional

        configuration for warmup

        • enablebody · booloptional

          enable warmup

        • interval_secondbody · int32optional

          total warmup interval by second

        • enable_overload_protectionbody · booloptional

          warmup stop when most of the instances in service are in warmup status

        • overload_protection_thresholdbody · int32optional

          the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100

        • curvaturebody · int32optional

          curvature for warmup register, default is 1

      • readinessbody · Readinessoptional

        configuration for readiness probe

        • enablebody · booloptional

          enable /readiness expose

    • lossless_offlinebody · LosslessOfflineoptional

      configuration for lossless offline

      • enablebody · booloptional

        enable /offline expose

    • metadatabody · map<string,string>optional

      metadata

    • editablebody · booloptional

      操作标志位

    • deleteablebody · booloptional

      deleteable

    • namespacebody · stringoptional

      namespace identifies the environment that owns this rule.

Request
curl -sS -X POST 'http://127.0.0.1:8090/naming/v1/lossless/delete' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[{"id":"<rule-id>"}]'
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
POST/naming/v1/lossless/releasesAuth required

Publish lossless

Publish a release so clients observe the active view.

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · RuleRelease[]required

    Request body is a JSON array of RuleRelease: [{...}, ...]. Fields below are the full per-item schema (including nested).

  • idbody · stringoptional

    id

  • rule_idbody · stringoptional

    rule_id

  • rule_namebody · stringoptional

    rule_name

  • release_namebody · stringoptional

    release_name

  • descriptionbody · stringoptional

    description

  • release_typebody · stringoptional

    release_type

  • client_labelsbody · ClientLabel[]optional

    client_labels

    • keybody · stringoptional

      key

    • valuebody · MatchStringoptional

      value

      • typebody · enum(MatchStringType)optional

        type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

      • valuebody · stringoptional

        value

      • value_typebody · enum(ValueType)optional

        value_type enum: TEXT | PARAMETER

  • versionbody · uint64optional

    version

  • resourcebody · enum(RuleType)optional

    resource enum:

  • codebody · uint32required

    Business code; success is usually 200000.

  • infobody · stringoptional

    Info message.

  • ruleReleasebody · RuleReleaseoptional

    RuleRelease entity fields (batch APIs nest under responses[]).

    • idbody · stringoptional

      id

    • rule_idbody · stringoptional

      rule_id

    • rule_namebody · stringoptional

      rule_name

    • release_namebody · stringoptional

      release_name

    • descriptionbody · stringoptional

      description

    • release_typebody · stringoptional

      release_type

    • client_labelsbody · ClientLabel[]optional

      client_labels

      • keybody · stringoptional

        key

      • valuebody · MatchStringoptional

        value

        • typebody · enum(MatchStringType)optional

          type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

        • valuebody · stringoptional

          value

        • value_typebody · enum(ValueType)optional

          value_type enum: TEXT | PARAMETER

    • versionbody · uint64optional

      version

    • resourcebody · enum(RuleType)optional

      resource enum:

    • activebody · booloptional

      active

    • ctimebody · stringoptional

      ctime

    • mtimebody · stringoptional

      mtime

Request
curl -sS -X POST 'http://127.0.0.1:8090/naming/v1/lossless/releases' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[{"id":"<rule-id>","release_type":"normal"}]'
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
GET/naming/v1/lossless/releasesAuth required

List lossless releases

List published releases.

  • Authorizationheader · stringrequired

    Token from login.

  • idquery · stringoptional

    Rule ID.

  • limitquery · integeroptional

    Page size.

Request
curl -sS 'http://127.0.0.1:8090/naming/v1/lossless/releases?limit=20' \
  -H "Authorization: $TOKEN"
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
PUT/naming/v1/lossless/releases/rollbackAuth required

Rollback lossless

Roll back to a release.

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · RuleRelease[]required

    Request body is a JSON array of RuleRelease: [{...}, ...]. Fields below are the full per-item schema (including nested).

  • idbody · stringoptional

    id

  • rule_idbody · stringoptional

    rule_id

  • rule_namebody · stringoptional

    rule_name

  • release_namebody · stringoptional

    release_name

  • descriptionbody · stringoptional

    description

  • release_typebody · stringoptional

    release_type

  • client_labelsbody · ClientLabel[]optional

    client_labels

    • keybody · stringoptional

      key

    • valuebody · MatchStringoptional

      value

      • typebody · enum(MatchStringType)optional

        type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

      • valuebody · stringoptional

        value

      • value_typebody · enum(ValueType)optional

        value_type enum: TEXT | PARAMETER

  • versionbody · uint64optional

    version

  • resourcebody · enum(RuleType)optional

    resource enum:

  • codebody · uint32required

    Business code; success is usually 200000.

  • infobody · stringoptional

    Info message.

  • ruleReleasebody · RuleReleaseoptional

    RuleRelease entity fields (batch APIs nest under responses[]).

    • idbody · stringoptional

      id

    • rule_idbody · stringoptional

      rule_id

    • rule_namebody · stringoptional

      rule_name

    • release_namebody · stringoptional

      release_name

    • descriptionbody · stringoptional

      description

    • release_typebody · stringoptional

      release_type

    • client_labelsbody · ClientLabel[]optional

      client_labels

      • keybody · stringoptional

        key

      • valuebody · MatchStringoptional

        value

        • typebody · enum(MatchStringType)optional

          type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

        • valuebody · stringoptional

          value

        • value_typebody · enum(ValueType)optional

          value_type enum: TEXT | PARAMETER

    • versionbody · uint64optional

      version

    • resourcebody · enum(RuleType)optional

      resource enum:

    • activebody · booloptional

      active

    • ctimebody · stringoptional

      ctime

    • mtimebody · stringoptional

      mtime

Request
curl -sS -X PUT 'http://127.0.0.1:8090/naming/v1/lossless/releases/rollback' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[{"id":"<rule-id>"}]'
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
PUT/naming/v1/lossless/releases/stopbetaAuth required

Stop lossless gray

Stop a gray release.

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · RuleRelease[]required

    Request body is a JSON array of RuleRelease: [{...}, ...]. Fields below are the full per-item schema (including nested).

  • idbody · stringoptional

    id

  • rule_idbody · stringoptional

    rule_id

  • rule_namebody · stringoptional

    rule_name

  • release_namebody · stringoptional

    release_name

  • descriptionbody · stringoptional

    description

  • release_typebody · stringoptional

    release_type

  • client_labelsbody · ClientLabel[]optional

    client_labels

    • keybody · stringoptional

      key

    • valuebody · MatchStringoptional

      value

      • typebody · enum(MatchStringType)optional

        type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

      • valuebody · stringoptional

        value

      • value_typebody · enum(ValueType)optional

        value_type enum: TEXT | PARAMETER

  • versionbody · uint64optional

    version

  • resourcebody · enum(RuleType)optional

    resource enum:

  • codebody · uint32required

    Business code; success is usually 200000.

  • infobody · stringoptional

    Info message.

  • ruleReleasebody · RuleReleaseoptional

    RuleRelease entity fields (batch APIs nest under responses[]).

    • idbody · stringoptional

      id

    • rule_idbody · stringoptional

      rule_id

    • rule_namebody · stringoptional

      rule_name

    • release_namebody · stringoptional

      release_name

    • descriptionbody · stringoptional

      description

    • release_typebody · stringoptional

      release_type

    • client_labelsbody · ClientLabel[]optional

      client_labels

      • keybody · stringoptional

        key

      • valuebody · MatchStringoptional

        value

        • typebody · enum(MatchStringType)optional

          type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

        • valuebody · stringoptional

          value

        • value_typebody · enum(ValueType)optional

          value_type enum: TEXT | PARAMETER

    • versionbody · uint64optional

      version

    • resourcebody · enum(RuleType)optional

      resource enum:

    • activebody · booloptional

      active

    • ctimebody · stringoptional

      ctime

    • mtimebody · stringoptional

      mtime

Request
curl -sS -X PUT 'http://127.0.0.1:8090/naming/v1/lossless/releases/stopbeta' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[{"id":"<rule-id>"}]'
Response example
{
  "code": 200000,
  "info": "execute success",
  "amount": 1
}
POST/naming/v1/lossless/releases/deleteAuth required

Delete releases

Delete releases.

  • Authorizationheader · stringrequired

    Token from login.

  • (body)body · RuleRelease[]required

    JSON array of RuleRelease; fields below are per-item.

  • idbody · stringoptional

    id

  • rule_idbody · stringoptional

    rule_id

  • rule_namebody · stringoptional

    rule_name

  • release_namebody · stringoptional

    release_name

  • descriptionbody · stringoptional

    description

  • release_typebody · stringoptional

    release_type

  • client_labelsbody · ClientLabel[]optional

    client_labels

    • keybody · stringoptional

      key

    • valuebody · MatchStringoptional

      value

      • typebody · enum(MatchStringType)optional

        type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

      • valuebody · stringoptional

        value

      • value_typebody · enum(ValueType)optional

        value_type enum: TEXT | PARAMETER

  • versionbody · uint64optional

    version

  • resourcebody · enum(RuleType)optional

    resource enum:

  • codebody · uint32required

    Business code.

  • infobody · stringoptional

    Info.

  • RuleReleasebody · RuleReleaseoptional

    Entity fields.

    • idbody · stringoptional

      id

    • rule_idbody · stringoptional

      rule_id

    • rule_namebody · stringoptional

      rule_name

    • release_namebody · stringoptional

      release_name

    • descriptionbody · stringoptional

      description

    • release_typebody · stringoptional

      release_type

    • client_labelsbody · ClientLabel[]optional

      client_labels

      • keybody · stringoptional

        key

      • valuebody · MatchStringoptional

        value

        • typebody · enum(MatchStringType)optional

          type enum: EXACT | REGEX | NOT_EQUALS | IN | NOT_IN | RANGE

        • valuebody · stringoptional

          value

        • value_typebody · enum(ValueType)optional

          value_type enum: TEXT | PARAMETER

    • versionbody · uint64optional

      version

    • resourcebody · enum(RuleType)optional

      resource enum:

    • activebody · booloptional

      active

    • ctimebody · stringoptional

      ctime

    • mtimebody · stringoptional

      mtime

Request
curl -sS -X POST 'http://127.0.0.1:8090/naming/v1/lossless/releases/delete' \
  -H "Authorization: $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '[]'
Response example
{
  "code": 200000,
  "info": "execute success"
}

On this page