ex_heroku_client v0.3.0 Heroku.InboundRuleset

Summary

Functions

Calls PUT /spaces/#{space_identity}/inbound-ruleset

Calls GET /spaces/#{space_identity}/inbound-ruleset

Calls GET /spaces/#{space_identity}/inbound-rulesets

Calls GET /spaces/#{space_identity}/inbound-rulesets/#{inbound_ruleset_identity}

Functions

create(space_identity, params \\ %{})

Calls PUT /spaces/#{space_identity}/inbound-ruleset

params is JSON encoded and passed as the request body.

params Schema

{
  "properties": {
    "rules": {
      "additionalItems": true,
      "items": {
        "description": "the combination of an IP address in CIDR notation and whether to allow or deny it's traffic.",
        "properties": {
          "action": {
            "description": "states whether the connection is allowed or denied",
            "enum": [
              "allow",
              "deny"
            ],
            "example": "allow",
            "readOnly": false,
            "type": [
              "string"
            ]
          },
          "source": {
            "description": "is the request’s source in CIDR notation",
            "example": "1.1.1.1/1",
            "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$",
            "readOnly": false,
            "type": [
              "string"
            ]
          }
        },
        "required": [
          "source",
          "action"
        ],
        "type": [
          "object"
        ]
      },
      "type": [
        "array"
      ]
    }
  },
  "type": [
    "object"
  ]
}
current_inbound_ruleset_for_a_space(space_identity)

Calls GET /spaces/#{space_identity}/inbound-ruleset

index(space_identity)

Calls GET /spaces/#{space_identity}/inbound-rulesets

info_on_an_existing_inbound_ruleset(space_identity, inbound_ruleset_identity)

Calls GET /spaces/#{space_identity}/inbound-rulesets/#{inbound_ruleset_identity}