Giter Club home page Giter Club logo

Comments (6)

chuntaojun avatar chuntaojun commented on August 26, 2024

image

from polaris-console.

chuntaojun avatar chuntaojun commented on August 26, 2024

Screenshot 2023-01-31 at 09 49 35

from polaris-console.

chuntaojun avatar chuntaojun commented on August 26, 2024

image

实例分组和实例标签的调整暂时不做处理

from polaris-console.

chuntaojun avatar chuntaojun commented on August 26, 2024

查询路由规则响应

{
 "code": 200000,
 "info": "execute success",
 "amount": 1,
 "size": 1,
 "namespaces": [
 ],
 "services": [
 ],
 "instances": [
 ],
 "routings": [
 ],
 "aliases": [
 ],
 "rateLimits": [
 ],
 "configWithServices": [
 ],
 "users": [
 ],
 "userGroups": [
 ],
 "authStrategies": [
 ],
 "clients": [
 ],
 "data": [
  {
   "@type": "type.googleapis.com/v1.RouteRule",
   "id": "aca7694a11984fb6890fa82c0ad4e435",
   "name": "demo",
   "namespace": "",
   "enable": true,
   "routing_policy": "RulePolicy",
   "routing_config": {
    "@type": "type.googleapis.com/v1.RuleRoutingConfig",
    "sources": [
    ],
    "destinations": [
    ],
    "rules": [
     {
      "name": "",
      "sources": [
       {
        "service": "echo",
        "namespace": "default",
        "arguments": [
         {
          "type": "CUSTOM",
          "key": "uid",
          "value": {
           "type": "EXACT",
           "value": "123",
           "valueType": "TEXT"
          }
         }
        ]
       }
      ],
      "destinations": [
      ]
     }
    ]
   },
   "revision": "v2-df43ef3508274b0b9a130dc0a83a2d52",
   "ctime": "2023-02-01 17:35:30",
   "mtime": "2023-02-01 17:35:30",
   "etime": "2023-02-01 17:35:30",
   "priority": 0,
   "description": "",
   "extendInfo": {
   }
  }
 ]
}

from polaris-console.

chuntaojun avatar chuntaojun commented on August 26, 2024

创建路由规则请求体

[
    {
        "name": "demo-123",
        "namespace": "",
        "enable": true,
        "routing_policy": "RulePolicy",
        "routing_config": {
            "@type": "type.googleapis.com/v2.RuleRoutingConfig",
            "rules": [
                {
                    "name": "规则一",
                    "sources": [
                        {
                            "service": "echo",
                            "namespace": "default",
                            "arguments": [
                                {
                                    "type": "CUSTOM",
                                    "key": "uid",
                                    "value": {
                                        "type": "EXACT",
                                        "value": "123",
                                        "value_type": "TEXT"
                                    }
                                }
                            ]
                        }
                    ],
                    "destinations": []
                }
            ]
        }
    }
]

from polaris-console.

chuntaojun avatar chuntaojun commented on August 26, 2024

实例分组的名称改为固定格式,分组${index}

from polaris-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.