diff --git a/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml b/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml index 17649320..448dfc4a 100644 --- a/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml +++ b/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml @@ -6,10 +6,5 @@ properties: oneOf: - $ref: DnsRecordLinkedHttpRouting.yml - type: "null" - variants: - type: - - array - - "null" - description: A set of weighted destinations that traffic to this record is distributed across. - items: - $ref: DnsRecordLinkedVariant.yml + traffic_splitting: + $ref: ./DnsRecordLinkedTrafficSplitting.yml diff --git a/components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml b/components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml new file mode 100644 index 00000000..87a59b83 --- /dev/null +++ b/components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml @@ -0,0 +1,16 @@ +title: DnsRecordLinkedTrafficSplitting +type: object +description: Settings for splitting traffic to this domain between two or more destinations. +required: + - sticky_sessions +properties: + variants: + type: + - array + - "null" + description: A set of weighted destinations that traffic to this record is distributed across. + items: + $ref: DnsRecordLinkedVariant.yml + sticky_sessions: + type: boolean + description: Utilize sticky sessions. When true, after the initial request, all traffic from that host will be routed to the same destination.