GatewayRouteProps
Properties for defining a GatewayRoute.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mse-gatewayroute
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmse"
&alicloudroscdkmse.GatewayRouteProps {
DomainIdList: interface{},
GatewayUniqueId: interface{},
Name: interface{},
Description: interface{},
DestinationType: interface{},
DirectResponseJson: interface{},
DomainId: interface{},
Fallback: interface{},
FallbackServices: interface{},
GatewayId: interface{},
Policies: interface{},
Predicates: interface{},
RedirectJson: interface{},
RouteOrder: interface{},
RouteType: interface{},
Services: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
DomainIdList | interface{} | Property domainIdList: The list of domain IDs in JSON format. |
GatewayUniqueId | interface{} | Property gatewayUniqueId: The unique ID of the gateway. |
Name | interface{} | Property name: The name of the route. |
Description | interface{} | Property description: The description of the route. |
DestinationType | interface{} | Property destinationType: The type of destination service. |
DirectResponseJson | interface{} | Property directResponseJson: Configuration for mock response. |
DomainId | interface{} | Property domainId: The ID of the domain. |
Fallback | interface{} | Property fallback: Whether to enable fallback service. |
FallbackServices | interface{} | Property fallbackServices: The list of fallback services. |
GatewayId | interface{} | Property gatewayId: The ID of the gateway. |
Policies | interface{} | Property policies: The JSON string of route policies. |
Predicates | interface{} | Property predicates: Matching rules for the route. |
RedirectJson | interface{} | Property redirectJson: Configuration for redirect. |
RouteOrder | interface{} | Property routeOrder: The order of the route. |
RouteType | interface{} | Property routeType: The type of the route. |
Services | interface{} | Property services: The list of backend services. |
DomainIdListRequired
DomainIdList interface{}
- Type: interface{}
Property domainIdList: The list of domain IDs in JSON format.
GatewayUniqueIdRequired
GatewayUniqueId interface{}
- Type: interface{}
Property gatewayUniqueId: The unique ID of the gateway.
NameRequired
Name interface{}
- Type: interface{}
Property name: The name of the route.
DescriptionOptional
Description interface{}
- Type: interface{}
Property description: The description of the route.
DestinationTypeOptional
DestinationType interface{}
- Type: interface{}
Property destinationType: The type of destination service.
Valid values:
- Single: single service
- Multiple: multiple services
- VersionOriented: tag-based routing
- Mock: mock response
- Redirect: redirect
DirectResponseJsonOptional
DirectResponseJson interface{}
- Type: interface{}
Property directResponseJson: Configuration for mock response.
DomainIdOptional
DomainId interface{}
- Type: interface{}
Property domainId: The ID of the domain.
FallbackOptional
Fallback interface{}
- Type: interface{}
Property fallback: Whether to enable fallback service.
FallbackServicesOptional
FallbackServices interface{}
- Type: interface{}
Property fallbackServices: The list of fallback services.
GatewayIdOptional
GatewayId interface{}
- Type: interface{}
Property gatewayId: The ID of the gateway.
PoliciesOptional
Policies interface{}
- Type: interface{}
Property policies: The JSON string of route policies.
PredicatesOptional
Predicates interface{}
- Type: interface{}
Property predicates: Matching rules for the route.
RedirectJsonOptional
RedirectJson interface{}
- Type: interface{}
Property redirectJson: Configuration for redirect.
RouteOrderOptional
RouteOrder interface{}
- Type: interface{}
Property routeOrder: The order of the route.
Smaller values indicate higher priority.
RouteTypeOptional
RouteType interface{}
- Type: interface{}
Property routeType: The type of the route.
Valid value: Op (control route).
ServicesOptional
Services interface{}
- Type: interface{}
Property services: The list of backend services.
Required when DestinationType is Single, Multiple, or VersionOriented.