ApplicationsDnsRule.PUT.yaml 1.32 KB
Newer Older
1
description: This method activates, de-activates or updates a traffic rule. 
2
operationId: ApplicationsDnsRule_PUT
3
4
5
6
7
8
9
10
11
12
13
14
produces:
- application/json
parameters:
- $ref: '#/parameters/Body.DnsRule'

responses:
  200:
    description: It is used to indicate nonspecific success. The response body contains a representation of the resource.
    schema:
      type: object
      properties:
        DnsRule:
15
          $ref: '#/definitions/DnsRule'   
Shlomi Hadad's avatar
Shlomi Hadad committed
16
17
    examples:
      application/json:
18
        DnsRule:
19
20
21
22
          dnsRuleId: 'DnsRule1'
          domainName: 'www.example.com'
          ipAddressType: 'IP_V4'
          ipAddress: '146.241.7.3'
23
          ttl: 300
24
          state: 'ACTIVE'
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  400:
    description: Bad Request
    schema:
      type: object
      properties:
        ProblemDetails:
          $ref: '#/definitions/ProblemDetails'
  403:
    description: Forbidden
    schema:
      type: object
      required:
      - ProblemDetails
      properties:
        ProblemDetails:
          $ref: '#/definitions/ProblemDetails'
  404:
    description: Not Found
    schema:
      type: object
      properties:
        ProblemDetails:
          $ref: '#/definitions/ProblemDetails'
  412:
    description: Precondition Failed
    schema:
      type: object
      properties:
        ProblemDetails:
          $ref: '#/definitions/ProblemDetails'