diff --git a/go.work.sum b/go.work.sum index e69de29bb..a8adae439 100644 --- a/go.work.sum +++ b/go.work.sum @@ -0,0 +1,20 @@ +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= diff --git a/network_ips.go b/network_ips.go index 5b86883e9..f872cdb0a 100644 --- a/network_ips.go +++ b/network_ips.go @@ -2,19 +2,8 @@ package linodego import ( "context" - "encoding/json" - "fmt" - "net/url" - - "github.com/go-resty/resty/v2" ) -// IPAddressesPagedResponse represents a paginated IPAddress API response -type IPAddressesPagedResponse struct { - *PageOptions - Data []InstanceIP `json:"data"` -} - // IPAddressUpdateOptions fields are those accepted by UpdateToken type IPAddressUpdateOptions struct { // The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if set to nil. @@ -52,84 +41,50 @@ func (i InstanceIP) GetUpdateOptions() (o IPAddressUpdateOptions) { return } -// endpoint gets the endpoint URL for IPAddress -func (IPAddressesPagedResponse) endpoint(_ ...any) string { - return "networking/ips" -} - -func (resp *IPAddressesPagedResponse) castResult(r *resty.Request, e string) (int, int, error) { - res, err := coupleAPIErrors(r.SetResult(IPAddressesPagedResponse{}).Get(e)) - if err != nil { - return 0, 0, err - } - castedRes := res.Result().(*IPAddressesPagedResponse) - resp.Data = append(resp.Data, castedRes.Data...) - return castedRes.Pages, castedRes.Results, nil -} - // ListIPAddresses lists IPAddresses func (c *Client) ListIPAddresses(ctx context.Context, opts *ListOptions) ([]InstanceIP, error) { - response := IPAddressesPagedResponse{} - err := c.listHelper(ctx, &response, opts) + response, err := getPaginatedResults[InstanceIP](ctx, c, "networking/ips", opts) if err != nil { return nil, err } - return response.Data, nil + + return response, nil } // GetIPAddress gets the template with the provided ID func (c *Client) GetIPAddress(ctx context.Context, id string) (*InstanceIP, error) { - id = url.PathEscape(id) - e := fmt.Sprintf("networking/ips/%s", id) - req := c.R(ctx).SetResult(&InstanceIP{}) - r, err := coupleAPIErrors(req.Get(e)) + e := formatAPIPath("networking/ips/%s", id) + response, err := doGETRequest[InstanceIP](ctx, c, e) if err != nil { return nil, err } - return r.Result().(*InstanceIP), nil + + return response, nil } // UpdateIPAddress updates the IPAddress with the specified id func (c *Client) UpdateIPAddress(ctx context.Context, id string, opts IPAddressUpdateOptions) (*InstanceIP, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("networking/ips/%s", id) + response, err := doPUTRequest[InstanceIP](ctx, c, e, opts) if err != nil { return nil, err } - id = url.PathEscape(id) - e := fmt.Sprintf("networking/ips/%s", id) - req := c.R(ctx).SetResult(&InstanceIP{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Put(e)) - if err != nil { - return nil, err - } - return r.Result().(*InstanceIP), nil + return response, nil } // InstancesAssignIPs assigns multiple IPv4 addresses and/or IPv6 ranges to multiple Linodes in one Region. // This allows swapping, shuffling, or otherwise reorganizing IPs to your Linodes. func (c *Client) InstancesAssignIPs(ctx context.Context, opts LinodesAssignIPsOptions) error { - body, err := json.Marshal(opts) - if err != nil { - return err - } - e := "networking/ips/assign" - req := c.R(ctx).SetBody(string(body)) - _, err = coupleAPIErrors(req.Post(e)) + _, err := doPOSTRequest[InstanceIP](ctx, c, e, opts) return err } // ShareIPAddresses allows IP address reassignment (also referred to as IP failover) // from one Linode to another if the primary Linode becomes unresponsive. func (c *Client) ShareIPAddresses(ctx context.Context, opts IPAddressesShareOptions) error { - body, err := json.Marshal(opts) - if err != nil { - return err - } - e := "networking/ips/share" - req := c.R(ctx).SetBody(string(body)) - _, err = coupleAPIErrors(req.Post(e)) + _, err := doPOSTRequest[InstanceIP](ctx, c, e, opts) return err } diff --git a/network_pools.go b/network_pools.go index 36f8b8f99..d5031a75f 100644 --- a/network_pools.go +++ b/network_pools.go @@ -2,51 +2,25 @@ package linodego import ( "context" - "fmt" - "net/url" - - "github.com/go-resty/resty/v2" ) -// IPv6PoolsPagedResponse represents a paginated IPv6Pool API response -type IPv6PoolsPagedResponse struct { - *PageOptions - Data []IPv6Range `json:"data"` -} - -// endpoint gets the endpoint URL for IPv6Pool -func (IPv6PoolsPagedResponse) endpoint(_ ...any) string { - return "networking/ipv6/pools" -} - -func (resp *IPv6PoolsPagedResponse) castResult(r *resty.Request, e string) (int, int, error) { - res, err := coupleAPIErrors(r.SetResult(IPv6PoolsPagedResponse{}).Get(e)) - if err != nil { - return 0, 0, err - } - castedRes := res.Result().(*IPv6PoolsPagedResponse) - resp.Data = append(resp.Data, castedRes.Data...) - return castedRes.Pages, castedRes.Results, nil -} - // ListIPv6Pools lists IPv6Pools func (c *Client) ListIPv6Pools(ctx context.Context, opts *ListOptions) ([]IPv6Range, error) { - response := IPv6PoolsPagedResponse{} - err := c.listHelper(ctx, &response, opts) + response, err := getPaginatedResults[IPv6Range](ctx, c, "networking/ipv6/pools", opts) if err != nil { return nil, err } - return response.Data, nil + + return response, nil } // GetIPv6Pool gets the template with the provided ID func (c *Client) GetIPv6Pool(ctx context.Context, id string) (*IPv6Range, error) { - id = url.PathEscape(id) - e := fmt.Sprintf("networking/ipv6/pools/%s", id) - req := c.R(ctx).SetResult(&IPv6Range{}) - r, err := coupleAPIErrors(req.Get(e)) + e := formatAPIPath("networking/ipv6/pools/%s", id) + response, err := doGETRequest[IPv6Range](ctx, c, e) if err != nil { return nil, err } - return r.Result().(*IPv6Range), nil + + return response, nil } diff --git a/network_ranges.go b/network_ranges.go index 6a0122372..554803d70 100644 --- a/network_ranges.go +++ b/network_ranges.go @@ -2,19 +2,8 @@ package linodego import ( "context" - "encoding/json" - "fmt" - "net/url" - - "github.com/go-resty/resty/v2" ) -// IPv6RangesPagedResponse represents a paginated IPv6Range API response -type IPv6RangesPagedResponse struct { - *PageOptions - Data []IPv6Range `json:"data"` -} - // IPv6RangeCreateOptions fields are those accepted by CreateIPv6Range type IPv6RangeCreateOptions struct { LinodeID int `json:"linode_id,omitempty"` @@ -22,63 +11,41 @@ type IPv6RangeCreateOptions struct { RouteTarget string `json:"route_target,omitempty"` } -// endpoint gets the endpoint URL for IPv6Range -func (IPv6RangesPagedResponse) endpoint(_ ...any) string { - return "networking/ipv6/ranges" -} - -func (resp *IPv6RangesPagedResponse) castResult(r *resty.Request, e string) (int, int, error) { - res, err := coupleAPIErrors(r.SetResult(IPv6RangesPagedResponse{}).Get(e)) - if err != nil { - return 0, 0, err - } - castedRes := res.Result().(*IPv6RangesPagedResponse) - resp.Data = append(resp.Data, castedRes.Data...) - return castedRes.Pages, castedRes.Results, nil -} - // ListIPv6Ranges lists IPv6Ranges func (c *Client) ListIPv6Ranges(ctx context.Context, opts *ListOptions) ([]IPv6Range, error) { - response := IPv6RangesPagedResponse{} - err := c.listHelper(ctx, &response, opts) + response, err := getPaginatedResults[IPv6Range](ctx, c, "networking/ipv6/ranges", opts) if err != nil { return nil, err } - return response.Data, nil + + return response, nil } // GetIPv6Range gets details about an IPv6 range func (c *Client) GetIPv6Range(ctx context.Context, ipRange string) (*IPv6Range, error) { - ipRange = url.PathEscape(ipRange) - e := fmt.Sprintf("networking/ipv6/ranges/%s", ipRange) - req := c.R(ctx).SetResult(&IPv6Range{}) - r, err := coupleAPIErrors(req.Get(e)) + e := formatAPIPath("networking/ipv6/ranges/%s", ipRange) + response, err := doGETRequest[IPv6Range](ctx, c, e) if err != nil { return nil, err } - return r.Result().(*IPv6Range), nil + + return response, nil } // CreateIPv6Range creates an IPv6 Range and assigns it based on the provided Linode or route target IPv6 SLAAC address. func (c *Client) CreateIPv6Range(ctx context.Context, opts IPv6RangeCreateOptions) (*IPv6Range, error) { - body, err := json.Marshal(opts) - if err != nil { - return nil, err - } - e := "networking/ipv6/ranges" - req := c.R(ctx).SetResult(&IPv6Range{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Post(e)) + response, err := doPOSTRequest[IPv6Range](ctx, c, e, opts) if err != nil { return nil, err } - return r.Result().(*IPv6Range), nil + + return response, nil } // DeleteIPv6Range deletes an IPv6 Range. func (c *Client) DeleteIPv6Range(ctx context.Context, ipRange string) error { - ipRange = url.PathEscape(ipRange) - e := fmt.Sprintf("networking/ipv6/ranges/%s", ipRange) - _, err := coupleAPIErrors(c.R(ctx).Delete(e)) + e := formatAPIPath("networking/ipv6/ranges/%s", ipRange) + err := doDELETERequest(ctx, c, e) return err } diff --git a/nodebalancer.go b/nodebalancer.go index f7ec8e275..068eda496 100644 --- a/nodebalancer.go +++ b/nodebalancer.go @@ -3,10 +3,8 @@ package linodego import ( "context" "encoding/json" - "fmt" "time" - "github.com/go-resty/resty/v2" "github.com/linode/linodego/internal/parseabletime" ) @@ -104,82 +102,52 @@ func (i NodeBalancer) GetUpdateOptions() NodeBalancerUpdateOptions { } } -// NodeBalancersPagedResponse represents a paginated NodeBalancer API response -type NodeBalancersPagedResponse struct { - *PageOptions - Data []NodeBalancer `json:"data"` -} - -func (*NodeBalancersPagedResponse) endpoint(_ ...any) string { - return "nodebalancers" -} - -func (resp *NodeBalancersPagedResponse) castResult(r *resty.Request, e string) (int, int, error) { - res, err := coupleAPIErrors(r.SetResult(NodeBalancersPagedResponse{}).Get(e)) - if err != nil { - return 0, 0, err - } - castedRes := res.Result().(*NodeBalancersPagedResponse) - resp.Data = append(resp.Data, castedRes.Data...) - return castedRes.Pages, castedRes.Results, nil -} - // ListNodeBalancers lists NodeBalancers func (c *Client) ListNodeBalancers(ctx context.Context, opts *ListOptions) ([]NodeBalancer, error) { - response := NodeBalancersPagedResponse{} - err := c.listHelper(ctx, &response, opts) + response, err := getPaginatedResults[NodeBalancer](ctx, c, "nodebalancers", opts) if err != nil { return nil, err } - return response.Data, nil + + return response, nil } // GetNodeBalancer gets the NodeBalancer with the provided ID func (c *Client) GetNodeBalancer(ctx context.Context, nodebalancerID int) (*NodeBalancer, error) { - e := fmt.Sprintf("nodebalancers/%d", nodebalancerID) - req := c.R(ctx).SetResult(&NodeBalancer{}) - r, err := coupleAPIErrors(req.Get(e)) + e := formatAPIPath("nodebalancers/%d", nodebalancerID) + response, err := doGETRequest[NodeBalancer](ctx, c, e) if err != nil { return nil, err } - return r.Result().(*NodeBalancer), nil + + return response, nil } // CreateNodeBalancer creates a NodeBalancer func (c *Client) CreateNodeBalancer(ctx context.Context, opts NodeBalancerCreateOptions) (*NodeBalancer, error) { - body, err := json.Marshal(opts) - if err != nil { - return nil, err - } - e := "nodebalancers" - req := c.R(ctx).SetResult(&NodeBalancer{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Post(e)) + response, err := doPOSTRequest[NodeBalancer](ctx, c, e, opts) if err != nil { return nil, err } - return r.Result().(*NodeBalancer), nil + + return response, nil } // UpdateNodeBalancer updates the NodeBalancer with the specified id func (c *Client) UpdateNodeBalancer(ctx context.Context, nodebalancerID int, opts NodeBalancerUpdateOptions) (*NodeBalancer, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("nodebalancers/%d", nodebalancerID) + response, err := doPUTRequest[NodeBalancer](ctx, c, e, opts) if err != nil { return nil, err } - e := fmt.Sprintf("nodebalancers/%d", nodebalancerID) - req := c.R(ctx).SetResult(&NodeBalancer{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Put(e)) - if err != nil { - return nil, err - } - return r.Result().(*NodeBalancer), nil + return response, nil } // DeleteNodeBalancer deletes the NodeBalancer with the specified id func (c *Client) DeleteNodeBalancer(ctx context.Context, nodebalancerID int) error { - e := fmt.Sprintf("nodebalancers/%d", nodebalancerID) - _, err := coupleAPIErrors(c.R(ctx).Delete(e)) + e := formatAPIPath("nodebalancers/%d", nodebalancerID) + err := doDELETERequest(ctx, c, e) return err } diff --git a/nodebalancer_config_nodes.go b/nodebalancer_config_nodes.go index 5befacd2d..b69e135cf 100644 --- a/nodebalancer_config_nodes.go +++ b/nodebalancer_config_nodes.go @@ -2,10 +2,6 @@ package linodego import ( "context" - "encoding/json" - "fmt" - - "github.com/go-resty/resty/v2" ) // NodeBalancerNode objects represent a backend that can accept traffic for a NodeBalancer Config @@ -73,85 +69,52 @@ func (i NodeBalancerNode) GetUpdateOptions() NodeBalancerNodeUpdateOptions { } } -// NodeBalancerNodesPagedResponse represents a paginated NodeBalancerNode API response -type NodeBalancerNodesPagedResponse struct { - *PageOptions - Data []NodeBalancerNode `json:"data"` -} - -// endpoint gets the endpoint URL for NodeBalancerNode -func (NodeBalancerNodesPagedResponse) endpoint(ids ...any) string { - nodebalancerID := ids[0].(int) - configID := ids[1].(int) - return fmt.Sprintf("nodebalancers/%d/configs/%d/nodes", nodebalancerID, configID) -} - -func (resp *NodeBalancerNodesPagedResponse) castResult(r *resty.Request, e string) (int, int, error) { - res, err := coupleAPIErrors(r.SetResult(NodeBalancerNodesPagedResponse{}).Get(e)) - if err != nil { - return 0, 0, err - } - castedRes := res.Result().(*NodeBalancerNodesPagedResponse) - resp.Data = append(resp.Data, castedRes.Data...) - return castedRes.Pages, castedRes.Results, nil -} - // ListNodeBalancerNodes lists NodeBalancerNodes func (c *Client) ListNodeBalancerNodes(ctx context.Context, nodebalancerID int, configID int, opts *ListOptions) ([]NodeBalancerNode, error) { - response := NodeBalancerNodesPagedResponse{} - err := c.listHelper(ctx, &response, opts, nodebalancerID, configID) + response, err := getPaginatedResults[NodeBalancerNode](ctx, c, formatAPIPath("nodebalancers/%d/configs/%d/nodes", nodebalancerID, configID), opts) if err != nil { return nil, err } - return response.Data, nil + + return response, nil } // GetNodeBalancerNode gets the template with the provided ID func (c *Client) GetNodeBalancerNode(ctx context.Context, nodebalancerID int, configID int, nodeID int) (*NodeBalancerNode, error) { - e := fmt.Sprintf("nodebalancers/%d/configs/%d/nodes/%d", nodebalancerID, configID, nodeID) - req := c.R(ctx).SetResult(&NodeBalancerNode{}) - r, err := coupleAPIErrors(req.Get(e)) + e := formatAPIPath("nodebalancers/%d/configs/%d/nodes/%d", nodebalancerID, configID, nodeID) + response, err := doGETRequest[NodeBalancerNode](ctx, c, e) if err != nil { return nil, err } - return r.Result().(*NodeBalancerNode), nil + + return response, nil } // CreateNodeBalancerNode creates a NodeBalancerNode func (c *Client) CreateNodeBalancerNode(ctx context.Context, nodebalancerID int, configID int, opts NodeBalancerNodeCreateOptions) (*NodeBalancerNode, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("nodebalancers/%d/configs/%d/nodes", nodebalancerID, configID) + response, err := doPOSTRequest[NodeBalancerNode](ctx, c, e, opts) if err != nil { return nil, err } - e := fmt.Sprintf("nodebalancers/%d/configs/%d/nodes", nodebalancerID, configID) - req := c.R(ctx).SetResult(&NodeBalancerNode{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Post(e)) - if err != nil { - return nil, err - } - return r.Result().(*NodeBalancerNode), nil + return response, nil } // UpdateNodeBalancerNode updates the NodeBalancerNode with the specified id func (c *Client) UpdateNodeBalancerNode(ctx context.Context, nodebalancerID int, configID int, nodeID int, opts NodeBalancerNodeUpdateOptions) (*NodeBalancerNode, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("nodebalancers/%d/configs/%d/nodes/%d", nodebalancerID, configID, nodeID) + response, err := doPUTRequest[NodeBalancerNode](ctx, c, e, opts) if err != nil { return nil, err } - e := fmt.Sprintf("nodebalancers/%d/configs/%d/nodes/%d", nodebalancerID, configID, nodeID) - req := c.R(ctx).SetResult(&NodeBalancerNode{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Put(e)) - if err != nil { - return nil, err - } - return r.Result().(*NodeBalancerNode), nil + return response, nil } // DeleteNodeBalancerNode deletes the NodeBalancerNode with the specified id func (c *Client) DeleteNodeBalancerNode(ctx context.Context, nodebalancerID int, configID int, nodeID int) error { - e := fmt.Sprintf("nodebalancers/%d/configs/%d/nodes/%d", nodebalancerID, configID, nodeID) - _, err := coupleAPIErrors(c.R(ctx).Delete(e)) + e := formatAPIPath("nodebalancers/%d/configs/%d/nodes/%d", nodebalancerID, configID, nodeID) + err := doDELETERequest(ctx, c, e) return err } diff --git a/nodebalancer_configs.go b/nodebalancer_configs.go index 462c8d67f..28caac707 100644 --- a/nodebalancer_configs.go +++ b/nodebalancer_configs.go @@ -2,10 +2,6 @@ package linodego import ( "context" - "encoding/json" - "fmt" - - "github.com/go-resty/resty/v2" ) // NodeBalancerConfig objects allow a NodeBalancer to accept traffic on a new port @@ -213,100 +209,63 @@ func (i NodeBalancerConfig) GetRebuildOptions() NodeBalancerConfigRebuildOptions } } -// NodeBalancerConfigsPagedResponse represents a paginated NodeBalancerConfig API response -type NodeBalancerConfigsPagedResponse struct { - *PageOptions - Data []NodeBalancerConfig `json:"data"` -} - -// endpoint gets the endpoint URL for NodeBalancerConfig -func (NodeBalancerConfigsPagedResponse) endpoint(ids ...any) string { - id := ids[0].(int) - return fmt.Sprintf("nodebalancers/%d/configs", id) -} - -func (resp *NodeBalancerConfigsPagedResponse) castResult(r *resty.Request, e string) (int, int, error) { - res, err := coupleAPIErrors(r.SetResult(NodeBalancerConfigsPagedResponse{}).Get(e)) - if err != nil { - return 0, 0, err - } - castedRes := res.Result().(*NodeBalancerConfigsPagedResponse) - resp.Data = append(resp.Data, castedRes.Data...) - return castedRes.Pages, castedRes.Results, nil -} - // ListNodeBalancerConfigs lists NodeBalancerConfigs func (c *Client) ListNodeBalancerConfigs(ctx context.Context, nodebalancerID int, opts *ListOptions) ([]NodeBalancerConfig, error) { - response := NodeBalancerConfigsPagedResponse{} - err := c.listHelper(ctx, &response, opts, nodebalancerID) + response, err := getPaginatedResults[NodeBalancerConfig](ctx, c, formatAPIPath("nodebalancers/%d/configs", nodebalancerID), opts) if err != nil { return nil, err } - return response.Data, nil + + return response, nil } // GetNodeBalancerConfig gets the template with the provided ID func (c *Client) GetNodeBalancerConfig(ctx context.Context, nodebalancerID int, configID int) (*NodeBalancerConfig, error) { - e := fmt.Sprintf("nodebalancers/%d/configs/%d", nodebalancerID, configID) - req := c.R(ctx).SetResult(&NodeBalancerConfig{}) - r, err := coupleAPIErrors(req.Get(e)) + e := formatAPIPath("nodebalancers/%d/configs/%d", nodebalancerID, configID) + response, err := doGETRequest[NodeBalancerConfig](ctx, c, e) if err != nil { return nil, err } - return r.Result().(*NodeBalancerConfig), nil + + return response, nil } // CreateNodeBalancerConfig creates a NodeBalancerConfig func (c *Client) CreateNodeBalancerConfig(ctx context.Context, nodebalancerID int, opts NodeBalancerConfigCreateOptions) (*NodeBalancerConfig, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("nodebalancers/%d/configs", nodebalancerID) + response, err := doPOSTRequest[NodeBalancerConfig](ctx, c, e, opts) if err != nil { return nil, err } - e := fmt.Sprintf("nodebalancers/%d/configs", nodebalancerID) - req := c.R(ctx).SetResult(&NodeBalancerConfig{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Post(e)) - if err != nil { - return nil, err - } - return r.Result().(*NodeBalancerConfig), nil + return response, nil } // UpdateNodeBalancerConfig updates the NodeBalancerConfig with the specified id func (c *Client) UpdateNodeBalancerConfig(ctx context.Context, nodebalancerID int, configID int, opts NodeBalancerConfigUpdateOptions) (*NodeBalancerConfig, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("nodebalancers/%d/configs/%d", nodebalancerID, configID) + response, err := doPUTRequest[NodeBalancerConfig](ctx, c, e, opts) if err != nil { return nil, err } - e := fmt.Sprintf("nodebalancers/%d/configs/%d", nodebalancerID, configID) - req := c.R(ctx).SetResult(&NodeBalancerConfig{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Put(e)) - if err != nil { - return nil, err - } - return r.Result().(*NodeBalancerConfig), nil + return response, nil } // DeleteNodeBalancerConfig deletes the NodeBalancerConfig with the specified id func (c *Client) DeleteNodeBalancerConfig(ctx context.Context, nodebalancerID int, configID int) error { - e := fmt.Sprintf("nodebalancers/%d/configs/%d", nodebalancerID, configID) - _, err := coupleAPIErrors(c.R(ctx).Delete(e)) + e := formatAPIPath("nodebalancers/%d/configs/%d", nodebalancerID, configID) + err := doDELETERequest(ctx, c, e) return err } // RebuildNodeBalancerConfig updates the NodeBalancer with the specified id func (c *Client) RebuildNodeBalancerConfig(ctx context.Context, nodeBalancerID int, configID int, opts NodeBalancerConfigRebuildOptions) (*NodeBalancerConfig, error) { - body, err := json.Marshal(opts) + e := formatAPIPath("nodebalancers/%d/configs/%d/rebuild", nodeBalancerID, configID) + response, err := doPOSTRequest[NodeBalancerConfig](ctx, c, e, opts) if err != nil { return nil, err } - e := fmt.Sprintf("nodebalancers/%d/configs/%d/rebuild", nodeBalancerID, configID) - req := c.R(ctx).SetResult(&NodeBalancerConfig{}).SetBody(string(body)) - r, err := coupleAPIErrors(req.Post(e)) - if err != nil { - return nil, err - } - return r.Result().(*NodeBalancerConfig), nil + return response, nil } diff --git a/paged_response_structs.go b/paged_response_structs.go index fc44a5bde..644d39f5f 100644 --- a/paged_response_structs.go +++ b/paged_response_structs.go @@ -45,12 +45,30 @@ type InvoiceItemsPagedResponse legacyPagedResponse[InvoiceItem] // Deprecated: InvoicesPagedResponse exists for historical compatibility and should not be used. type InvoicesPagedResponse legacyPagedResponse[Invoice] +// Deprecated: IPAddressesPagedResponse exists for historical compatibility and should not be used. +type IPAddressesPagedResponse legacyPagedResponse[InstanceIP] + +// Deprecated: IPv6PoolsPagedResponse exists for historical compatibility and should not be used. +type IPv6PoolsPagedResponse legacyPagedResponse[IPv6Range] + +// Deprecated: IPv6RangesPagedResponse exists for historical compatibility and should not be used. +type IPv6RangesPagedResponse legacyPagedResponse[IPv6Range] + // Deprecated: LinodeKernelsPagedResponse exists for historical compatibility and should not be used. type LinodeKernelsPagedResponse legacyPagedResponse[LinodeKernel] // Deprecated: LoginsPagedResponse exists for historical compatibility and should not be used. type LoginsPagedResponse legacyPagedResponse[Login] +// Deprecated: NodeBalancersPagedResponse exists for historical compatibility and should not be used. +type NodeBalancersPagedResponse legacyPagedResponse[NodeBalancer] + +// Deprecated: NodeBalancerConfigsPagedResponse exists for historical compatibility and should not be used. +type NodeBalancerConfigsPagedResponse legacyPagedResponse[NodeBalancerConfig] + +// Deprecated: NodeBalancerNodesPagedResponse exists for historical compatibility and should not be used. +type NodeBalancerNodesPagedResponse legacyPagedResponse[NodeBalancerNode] + // Deprecated: NotificationsPagedResponse exists for historical compatibility and should not be used. type NotificationsPagedResponse legacyPagedResponse[Notification] diff --git a/test/integration/fixtures/ExampleCreateNodeBalancer.yaml b/test/integration/fixtures/ExampleCreateNodeBalancer.yaml index 9a4832e12..c678986ab 100644 --- a/test/integration/fixtures/ExampleCreateNodeBalancer.yaml +++ b/test/integration/fixtures/ExampleCreateNodeBalancer.yaml @@ -14,10 +14,11 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694136, "label": "balancer694136", "region": "us-southeast", "hostname": - "45-79-245-145.ip.linodeusercontent.com", "ipv4": "45.79.245.145", "ipv6": "1234::5678", - "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": - 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' + body: '{"id": 767903, "label": "balancer767903", "region": "us-southeast", "hostname": + "139-144-164-228.ip.linodeusercontent.com", "ipv4": "139.144.164.228", "ipv6": + "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, + "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -34,13 +35,13 @@ interactions: Connection: - keep-alive Content-Length: - - "342" + - "346" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:37 GMT + - Mon, 08 Jul 2024 13:57:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -55,10 +56,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -76,13 +74,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694136 + url: https://api.linode.com/v4beta/nodebalancers/767903 method: GET response: - body: '{"id": 694136, "label": "balancer694136", "region": "us-southeast", "hostname": - "45-79-245-145.ip.linodeusercontent.com", "ipv4": "45.79.245.145", "ipv6": "1234::5678", - "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": - 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' + body: '{"id": 767903, "label": "balancer767903", "region": "us-southeast", "hostname": + "139-144-164-228.ip.linodeusercontent.com", "ipv4": "139.144.164.228", "ipv6": + "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, + "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -99,13 +98,13 @@ interactions: Connection: - keep-alive Content-Length: - - "342" + - "346" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:37 GMT + - Mon, 08 Jul 2024 13:57:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -121,10 +120,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -133,7 +129,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"balancer694136_renamed","client_conn_throttle":20,"tags":[]}' + body: '{"label":"balancer767903_renamed","client_conn_throttle":20,"tags":[]}' form: {} headers: Accept: @@ -142,11 +138,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694136 + url: https://api.linode.com/v4beta/nodebalancers/767903 method: PUT response: - body: '{"id": 694136, "label": "balancer694136_renamed", "region": "us-southeast", - "hostname": "45-79-245-145.ip.linodeusercontent.com", "ipv4": "45.79.245.145", + body: '{"id": 767903, "label": "balancer767903_renamed", "region": "us-southeast", + "hostname": "139-144-164-228.ip.linodeusercontent.com", "ipv4": "139.144.164.228", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -166,13 +162,13 @@ interactions: Connection: - keep-alive Content-Length: - - "350" + - "354" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:38 GMT + - Mon, 08 Jul 2024 13:57:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -187,10 +183,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -208,7 +201,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694136 + url: https://api.linode.com/v4beta/nodebalancers/767903 method: DELETE response: body: '{}' @@ -234,7 +227,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:38 GMT + - Mon, 08 Jul 2024 13:57:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -249,10 +242,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/ExampleCreateNodeBalancerConfig.yaml b/test/integration/fixtures/ExampleCreateNodeBalancerConfig.yaml index 07a9010dd..a7e5a67d9 100644 --- a/test/integration/fixtures/ExampleCreateNodeBalancerConfig.yaml +++ b/test/integration/fixtures/ExampleCreateNodeBalancerConfig.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"region":"us-southeast","client_conn_throttle":20,"tags":null,"firewall_id":501321}' + body: '{"region":"us-southeast","client_conn_throttle":20,"tags":null,"firewall_id":640319}' form: {} headers: Accept: @@ -14,8 +14,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694137, "label": "balancer694137", "region": "us-southeast", "hostname": - "45-79-244-189.ip.linodeusercontent.com", "ipv4": "45.79.244.189", "ipv6": "1234::5678", + body: '{"id": 767904, "label": "balancer767904", "region": "us-southeast", "hostname": + "66-228-63-221.ip.linodeusercontent.com", "ipv4": "66.228.63.221", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: @@ -40,7 +40,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:39 GMT + - Mon, 08 Jul 2024 13:57:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -55,10 +55,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -76,14 +73,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694137/configs + url: https://api.linode.com/v4beta/nodebalancers/767904/configs method: POST response: - body: '{"id": 1134667, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266953, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 30, "check_timeout": 5, "check_attempts": 5, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694137, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767904, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -107,7 +104,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:39 GMT + - Mon, 08 Jul 2024 13:57:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,10 +119,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -143,14 +137,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694137/configs/1134667 + url: https://api.linode.com/v4beta/nodebalancers/767904/configs/1266953 method: PUT response: - body: '{"id": 1134667, "port": 8080, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266953, "port": 8080, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 30, "check_timeout": 5, "check_attempts": 5, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694137, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767904, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -174,7 +168,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:39 GMT + - Mon, 08 Jul 2024 13:57:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -189,10 +183,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -210,14 +201,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694137/configs + url: https://api.linode.com/v4beta/nodebalancers/767904/configs?page=1 method: GET response: - body: '{"data": [{"id": 1134667, "port": 8080, "protocol": "http", "algorithm": + body: '{"data": [{"id": 1266953, "port": 8080, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 30, "check_timeout": 5, "check_attempts": 5, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694137, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767904, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}], "page": 1, "pages": 1, "results": 1}' headers: @@ -242,7 +233,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:39 GMT + - Mon, 08 Jul 2024 13:57:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -258,10 +249,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -279,14 +267,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694137/configs/1134667 + url: https://api.linode.com/v4beta/nodebalancers/767904/configs/1266953 method: GET response: - body: '{"id": 1134667, "port": 8080, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266953, "port": 8080, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 30, "check_timeout": 5, "check_attempts": 5, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694137, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767904, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -310,7 +298,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:39 GMT + - Mon, 08 Jul 2024 13:57:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -326,10 +314,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -347,7 +332,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694137/configs/1134667 + url: https://api.linode.com/v4beta/nodebalancers/767904/configs/1266953 method: DELETE response: body: '{}' @@ -373,7 +358,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:39 GMT + - Mon, 08 Jul 2024 13:57:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -388,10 +373,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -409,7 +391,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694137 + url: https://api.linode.com/v4beta/nodebalancers/767904 method: DELETE response: body: '{}' @@ -435,7 +417,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:40 GMT + - Mon, 08 Jul 2024 13:57:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -450,10 +432,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/ExampleCreateNodeBalancerNode.yaml b/test/integration/fixtures/ExampleCreateNodeBalancerNode.yaml index 8ebe51f3d..f084fe23c 100644 --- a/test/integration/fixtures/ExampleCreateNodeBalancerNode.yaml +++ b/test/integration/fixtures/ExampleCreateNodeBalancerNode.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"region":"us-southeast","client_conn_throttle":20,"tags":null,"firewall_id":501321}' + body: '{"region":"us-southeast","client_conn_throttle":20,"tags":null,"firewall_id":640319}' form: {} headers: Accept: @@ -14,8 +14,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694138, "label": "balancer694138", "region": "us-southeast", "hostname": - "45-79-245-36.ip.linodeusercontent.com", "ipv4": "45.79.245.36", "ipv6": "1234::5678", + body: '{"id": 767905, "label": "balancer767905", "region": "us-southeast", "hostname": + "45-79-244-22.ip.linodeusercontent.com", "ipv4": "45.79.244.22", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: @@ -40,7 +40,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:40 GMT + - Mon, 08 Jul 2024 13:57:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -55,10 +55,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -76,14 +73,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs + url: https://api.linode.com/v4beta/nodebalancers/767905/configs method: POST response: - body: '{"id": 1134668, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266954, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 31, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694138, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767905, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -107,7 +104,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:40 GMT + - Mon, 08 Jul 2024 13:57:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,10 +119,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -134,7 +128,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"us-southeast","type":"g6-nanode-1","label":"nodebalancer-example-instance","root_pass":"WfnG{3;b2h?HBfyr,9IF8a[2-\u003cU92(L3^EG1m^K505EY2h''1;:eQfgG/k`L30m=o","image":"linode/debian9","firewall_id":501321,"booted":false}' + body: '{"region":"us-southeast","type":"g6-nanode-1","label":"nodebalancer-example-instance","root_pass":"o\u003cF.F29=e\u003c2:{U28l5z2[w96()3TM\\bxaxjAUV*FhAfk2[-2YrC43E^H\u0026I8Hb}r0","image":"linode/debian9","firewall_id":640319,"booted":false}' form: {} headers: Accept: @@ -146,16 +140,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59541321, "label": "nodebalancer-example-instance", "group": "", + body: '{"id": 61170530, "label": "nodebalancer-example-instance", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["45.79.253.187"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.159.61"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "us-southeast", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, - "tags": [], "host_uuid": "7055b8bfa2c784e5bd2213e1b482e4ba18ffe5eb", "has_user_data": - false, "placement_group": null}' + "tags": [], "host_uuid": "69f0154caa24252c418222748af95908224f0aeb", "has_user_data": + false, "placement_group": null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -172,13 +166,13 @@ interactions: Connection: - keep-alive Content-Length: - - "775" + - "800" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:41 GMT + - Mon, 08 Jul 2024 13:57:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -193,10 +187,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -214,11 +205,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59541321/ips + url: https://api.linode.com/v4beta/linode/instances/61170530/ips method: POST response: - body: '{"address": "192.168.215.219", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59541321, + body: '{"address": "192.168.230.18", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61170530, "region": "us-southeast", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -236,13 +227,13 @@ interactions: Connection: - keep-alive Content-Length: - - "210" + - "209" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:41 GMT + - Mon, 08 Jul 2024 13:57:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -257,10 +248,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -269,7 +257,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.215.219:80","label":"node-192.168.215.219"}' + body: '{"address":"192.168.230.18:80","label":"node-192.168.230.18"}' form: {} headers: Accept: @@ -278,12 +266,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs/1134668/nodes + url: https://api.linode.com/v4beta/nodebalancers/767905/configs/1266954/nodes method: POST response: - body: '{"id": 2047156376, "address": "192.168.215.219:80", "label": "node-192.168.215.219", - "status": "Unknown", "weight": 50, "mode": "accept", "config_id": 1134668, "nodebalancer_id": - 694138}' + body: '{"id": 2051559125, "address": "192.168.230.18:80", "label": "node-192.168.230.18", + "status": "Unknown", "weight": 50, "mode": "accept", "config_id": 1266954, "nodebalancer_id": + 767905}' headers: Access-Control-Allow-Credentials: - "true" @@ -300,13 +288,13 @@ interactions: Connection: - keep-alive Content-Length: - - "186" + - "184" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:41 GMT + - Mon, 08 Jul 2024 13:57:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -321,10 +309,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -333,7 +318,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.215.219:8080","label":"node-192.168.215.219","weight":50,"mode":"accept"}' + body: '{"address":"192.168.230.18:8080","label":"node-192.168.230.18","weight":50,"mode":"accept"}' form: {} headers: Accept: @@ -342,12 +327,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs/1134668/nodes/2047156376 + url: https://api.linode.com/v4beta/nodebalancers/767905/configs/1266954/nodes/2051559125 method: PUT response: - body: '{"id": 2047156376, "address": "192.168.215.219:8080", "label": "node-192.168.215.219", - "status": "Unknown", "weight": 50, "mode": "accept", "config_id": 1134668, "nodebalancer_id": - 694138}' + body: '{"id": 2051559125, "address": "192.168.230.18:8080", "label": "node-192.168.230.18", + "status": "Unknown", "weight": 50, "mode": "accept", "config_id": 1266954, "nodebalancer_id": + 767905}' headers: Access-Control-Allow-Credentials: - "true" @@ -364,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "188" + - "186" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:41 GMT + - Mon, 08 Jul 2024 13:57:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -385,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -406,12 +388,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs/1134668/nodes + url: https://api.linode.com/v4beta/nodebalancers/767905/configs/1266954/nodes?page=1 method: GET response: - body: '{"data": [{"id": 2047156376, "address": "192.168.215.219:8080", "label": - "node-192.168.215.219", "status": "Unknown", "weight": 50, "mode": "accept", - "config_id": 1134668, "nodebalancer_id": 694138}], "page": 1, "pages": 1, "results": + body: '{"data": [{"id": 2051559125, "address": "192.168.230.18:8080", "label": + "node-192.168.230.18", "status": "Unknown", "weight": 50, "mode": "accept", + "config_id": 1266954, "nodebalancer_id": 767905}], "page": 1, "pages": 1, "results": 1}' headers: Access-Control-Allow-Credentials: @@ -429,13 +411,13 @@ interactions: Connection: - keep-alive Content-Length: - - "237" + - "235" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:42 GMT + - Mon, 08 Jul 2024 13:57:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -451,10 +433,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -472,12 +451,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs/1134668/nodes/2047156376 + url: https://api.linode.com/v4beta/nodebalancers/767905/configs/1266954/nodes/2051559125 method: GET response: - body: '{"id": 2047156376, "address": "192.168.215.219:8080", "label": "node-192.168.215.219", - "status": "Unknown", "weight": 50, "mode": "accept", "config_id": 1134668, "nodebalancer_id": - 694138}' + body: '{"id": 2051559125, "address": "192.168.230.18:8080", "label": "node-192.168.230.18", + "status": "Unknown", "weight": 50, "mode": "accept", "config_id": 1266954, "nodebalancer_id": + 767905}' headers: Access-Control-Allow-Credentials: - "true" @@ -494,13 +473,13 @@ interactions: Connection: - keep-alive Content-Length: - - "188" + - "186" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:42 GMT + - Mon, 08 Jul 2024 13:57:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -516,10 +495,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -537,7 +513,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs/1134668/nodes/2047156376 + url: https://api.linode.com/v4beta/nodebalancers/767905/configs/1266954/nodes/2051559125 method: DELETE response: body: '{}' @@ -563,7 +539,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:42 GMT + - Mon, 08 Jul 2024 13:57:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -578,10 +554,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -599,7 +572,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138/configs/1134668 + url: https://api.linode.com/v4beta/nodebalancers/767905/configs/1266954 method: DELETE response: body: '{}' @@ -625,7 +598,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:42 GMT + - Mon, 08 Jul 2024 13:57:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -640,10 +613,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -661,7 +631,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694138 + url: https://api.linode.com/v4beta/nodebalancers/767905 method: DELETE response: body: '{}' @@ -687,7 +657,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:42 GMT + - Mon, 08 Jul 2024 13:57:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -702,10 +672,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -723,7 +690,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59541321 + url: https://api.linode.com/v4beta/linode/instances/61170530 method: DELETE response: body: '{}' @@ -749,7 +716,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:04:43 GMT + - Mon, 08 Jul 2024 13:57:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -764,10 +731,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestIPAddress_GetFound.yaml b/test/integration/fixtures/TestIPAddress_GetFound.yaml index baa114fbf..5ab750eee 100644 --- a/test/integration/fixtures/TestIPAddress_GetFound.yaml +++ b/test/integration/fixtures/TestIPAddress_GetFound.yaml @@ -14,56 +14,263 @@ interactions: url: https://api.linode.com/v4beta/regions method: GET response: - body: '{"data": [{"id": "ap-west", "country": "in", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "172.105.34.5,172.105.35.5,172.105.36.5,172.105.37.5,172.105.38.5,172.105.39.5,172.105.40.5,172.105.41.5,172.105.42.5,172.105.43.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ca-central", "country": "ca", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.0.5,172.105.3.5,172.105.4.5,172.105.5.5,172.105.6.5,172.105.7.5,172.105.8.5,172.105.9.5,172.105.10.5,172.105.11.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-southeast", "country": "au", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.166.5,172.105.169.5,172.105.168.5,172.105.172.5,172.105.162.5,172.105.170.5,172.105.167.5,172.105.171.5,172.105.181.5,172.105.161.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-central", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "72.14.179.5,72.14.188.5,173.255.199.5,66.228.53.5,96.126.122.5,96.126.124.5,96.126.127.5,198.58.107.5,198.58.111.5,23.239.24.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-west", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "173.230.145.5,173.230.147.5,173.230.155.5,173.255.212.5,173.255.219.5,173.255.241.5,173.255.243.5,173.255.244.5,74.207.241.5,74.207.242.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-southeast", "country": "us", "capabilities": ["Linodes", "NodeBalancers", + body: '{"data": [{"id": "ap-west", "label": "Mumbai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", + "Metadata"], "status": "ok", "resolvers": {"ipv4": "172.105.34.5, 172.105.35.5, + 172.105.36.5, 172.105.37.5, 172.105.38.5, 172.105.39.5, 172.105.40.5, 172.105.41.5, + 172.105.42.5, 172.105.43.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ca-central", "label": "Toronto, CA", "country": "ca", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.0.5, 172.105.3.5, 172.105.4.5, + 172.105.5.5, 172.105.6.5, 172.105.7.5, 172.105.8.5, 172.105.9.5, 172.105.10.5, + 172.105.11.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ap-southeast", "label": "Sydney, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.166.5, 172.105.169.5, 172.105.168.5, + 172.105.172.5, 172.105.162.5, 172.105.170.5, 172.105.167.5, 172.105.171.5, 172.105.181.5, + 172.105.161.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium + Plans"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62, 139.144.192.60, + 139.144.192.61, 139.144.192.53, 139.144.192.54, 139.144.192.67, 139.144.192.69, + 139.144.192.66, 139.144.192.52, 139.144.192.68", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "fr-par", "label": + "Paris, FR", "country": "fr", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "74.207.231.5,173.230.128.5,173.230.129.5,173.230.136.5,173.230.140.5,66.228.59.5,66.228.62.5,50.116.35.5,50.116.41.5,23.239.18.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-east", "country": "us", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans"], "status": + "ok", "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, + 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-sea", "label": + "Seattle, WA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Bare Metal", "Block Storage Migrations", "Managed Databases"], "status": "ok", - "resolvers": {"ipv4": "66.228.42.5,96.126.106.5,50.116.53.5,50.116.58.5,50.116.61.5,50.116.62.5,66.175.211.5,97.107.133.4,207.192.69.4,207.192.69.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-west", "country": "uk", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "178.79.182.5,176.58.107.5,176.58.116.5,176.58.121.5,151.236.220.5,212.71.252.5,212.71.253.5,109.74.192.20,109.74.193.20,109.74.194.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-south", "country": "sg", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.232.160.19, 172.232.160.21, 172.232.160.17, 172.232.160.15, 172.232.160.18, + 172.232.160.8, 172.232.160.12, 172.232.160.11, 172.232.160.14, 172.232.160.16", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "br-gru", "label": + "Sao Paulo, BR", "country": "br", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.0.4, 172.233.0.9, 172.233.0.7, 172.233.0.12, 172.233.0.5, 172.233.0.13, + 172.233.0.10, 172.233.0.6, 172.233.0.8, 172.233.0.11", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "nl-ams", "label": "Amsterdam, NL", "country": + "nl", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.33.36, 172.233.33.38, + 172.233.33.35, 172.233.33.39, 172.233.33.34, 172.233.33.33, 172.233.33.31, 172.233.33.30, + 172.233.33.37, 172.233.33.32", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "se-sto", "label": "Stockholm, SE", "country": "se", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, 172.232.128.20, 172.232.128.22, + 172.232.128.25, 172.232.128.19, 172.232.128.23, 172.232.128.18, 172.232.128.21, + 172.232.128.27", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "es-mad", "label": "Madrid, ES", "country": "es", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21, 172.233.111.25, + 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16, 172.233.111.18, + 172.233.111.9", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, + 172.232.96.25, 172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "jp-osa", "label": + "Osaka, JP", "country": "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.11.5,139.162.13.5,139.162.14.5,139.162.15.5,139.162.16.5,139.162.21.5,139.162.27.5,103.3.60.18,103.3.60.19,103.3.60.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-central", "country": "de", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46, + 172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "it-mil", "label": + "Milan, IT", "country": "it", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.192.19, 172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, + 172.232.192.21, 172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": + "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "id-cgk", "label": + "Jakarta, ID", "country": "id", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.224.23, 172.232.224.32, 172.232.224.26, 172.232.224.27, 172.232.224.21, + 172.232.224.24, 172.232.224.22, 172.232.224.20, 172.232.224.31, 172.232.224.28", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-lax", "label": + "Los Angeles, CA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.128.45, 172.233.128.38, 172.233.128.53, 172.233.128.37, 172.233.128.34, + 172.233.128.36, 172.233.128.33, 172.233.128.39, 172.233.128.43, 172.233.128.44", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", + "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "72.14.179.5, 72.14.188.5, 173.255.199.5, 66.228.53.5, 96.126.122.5, + 96.126.124.5, 96.126.127.5, 198.58.107.5, 198.58.111.5, 23.239.24.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-west", "label": "Fremont, CA", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, + 173.255.212.5, 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, + 74.207.242.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-southeast", "label": "Atlanta, GA", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "74.207.231.5, 173.230.128.5, 173.230.129.5, 173.230.136.5, 173.230.140.5, + 66.228.59.5, 66.228.62.5, 50.116.35.5, 50.116.41.5, 23.239.18.5", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-east", "label": + "Newark, NJ", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.130.5,139.162.131.5,139.162.132.5,139.162.133.5,139.162.134.5,139.162.135.5,139.162.136.5,139.162.137.5,139.162.138.5,139.162.139.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-northeast", "country": "jp", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.66.5,139.162.67.5,139.162.68.5,139.162.69.5,139.162.70.5,139.162.71.5,139.162.72.5,139.162.73.5,139.162.74.5,139.162.75.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}], - "page": 1, "pages": 1, "results": 11}' + "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], "status": + "ok", "resolvers": {"ipv4": "66.228.42.5, 96.126.106.5, 50.116.53.5, 50.116.58.5, + 50.116.61.5, 50.116.62.5, 66.175.211.5, 97.107.133.4, 207.192.69.4, 207.192.69.5", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-west", "label": "London, UK", "country": "gb", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "178.79.182.5, 176.58.107.5, 176.58.116.5, + 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, 109.74.192.20, 109.74.193.20, + 109.74.194.20", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-south", "label": "Singapore, SG", "country": + "sg", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.11.5, 139.162.13.5, 139.162.14.5, 139.162.15.5, 139.162.16.5, + 139.162.21.5, 139.162.27.5, 103.3.60.18, 103.3.60.19, 103.3.60.20", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU + Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5, + 139.162.131.5, 139.162.132.5, 139.162.133.5, 139.162.134.5, 139.162.135.5, 139.162.136.5, + 139.162.137.5, 139.162.138.5, 139.162.139.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "ap-northeast", + "label": "Tokyo, JP", "country": "jp", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.66.5, 139.162.67.5, 139.162.68.5, 139.162.69.5, 139.162.70.5, + 139.162.71.5, 139.162.72.5, 139.162.73.5, 139.162.74.5, 139.162.75.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -76,19 +283,23 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=900 - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:44 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: - Authorization, X-Filter - Authorization, X-Filter + - Accept-Encoding X-Accepted-Oauth-Scopes: - '*' X-Content-Type-Options: @@ -99,14 +310,14 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-hbq64at7q751","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-g4i782rea04u","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -118,14 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 39426826, "label": "go-test-ins-wo-disk-hbq64at7q751", "group": + body: '{"id": 61169660, "label": "go-test-ins-wo-disk-g4i782rea04u", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["194.195.113.99"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.47"], "ipv6": "1234::5678/128", "image": null, "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "schedule": {"day": null, "window": null}, "last_successful": null}, - "hypervisor": "kvm", "watchdog_enabled": true, "tags": []}' + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": + "aeb2357ce09e1cb483d94ee0d025f3b254c93dfc", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -138,15 +351,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "637" + - "785" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:44 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -168,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-471mf0gvi37r","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-ww37y7em7j73","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -177,10 +394,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426826/configs + url: https://api.linode.com/v4beta/linode/instances/61169660/configs method: POST response: - body: '{"id": 41972305, "label": "go-test-conf-471mf0gvi37r", "helpers": {"updatedb_disabled": + body: '{"id": 64385514, "label": "go-test-conf-ww37y7em7j73", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -199,15 +416,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "539" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:45 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -222,7 +443,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -238,12 +459,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/networking/ips/194.195.113.99 + url: https://api.linode.com/v4beta/networking/ips/172.105.55.47 method: GET response: - body: '{"address": "194.195.113.99", "gateway": "194.195.113.1", "subnet_mask": - "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "194-195-113-99.ip.linodeusercontent.com", - "linode_id": 39426826, "region": "ap-west"}' + body: '{"address": "172.105.55.47", "gateway": "172.105.55.1", "subnet_mask": + "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-105-55-47.ip.linodeusercontent.com", + "linode_id": 61169660, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -256,16 +477,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=0, s-maxage=0, no-cache, no-store - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "230" + - "248" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:45 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -281,7 +505,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -297,7 +521,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426826 + url: https://api.linode.com/v4beta/linode/instances/61169660 method: DELETE response: body: '{}' @@ -313,15 +537,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:45 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -336,7 +564,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/test/integration/fixtures/TestIPAddress_GetMissing.yaml b/test/integration/fixtures/TestIPAddress_GetMissing.yaml index f02b5dd7c..f428f3b0d 100644 --- a/test/integration/fixtures/TestIPAddress_GetMissing.yaml +++ b/test/integration/fixtures/TestIPAddress_GetMissing.yaml @@ -23,13 +23,17 @@ interactions: Access-Control-Allow-Origin: - '*' Cache-Control: - - private, max-age=0, s-maxage=0, no-cache, no-store + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "37" Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:44 GMT + Pragma: + - no-cache Vary: - Authorization, X-Filter X-Accepted-Oauth-Scopes: @@ -39,7 +43,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" status: 404 Not Found code: 404 duration: "" diff --git a/test/integration/fixtures/TestIPAddress_Instance_Assign.yaml b/test/integration/fixtures/TestIPAddress_Instance_Assign.yaml index 39cab00bc..dfcba5e54 100644 --- a/test/integration/fixtures/TestIPAddress_Instance_Assign.yaml +++ b/test/integration/fixtures/TestIPAddress_Instance_Assign.yaml @@ -15,73 +15,262 @@ interactions: method: GET response: body: '{"data": [{"id": "ap-west", "label": "Mumbai, IN", "country": "in", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", "Cloud - Firewall", "Vlans", "Block Storage Migrations", "Managed Databases"], "status": - "ok", "resolvers": {"ipv4": "172.105.34.5,172.105.35.5,172.105.36.5,172.105.37.5,172.105.38.5,172.105.39.5,172.105.40.5,172.105.41.5,172.105.42.5,172.105.43.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ca-central", "label": "Toronto, CA", "country": "ca", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "172.105.0.5,172.105.3.5,172.105.4.5,172.105.5.5,172.105.6.5,172.105.7.5,172.105.8.5,172.105.9.5,172.105.10.5,172.105.11.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-southeast", "label": "Sydney, AU", "country": "au", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "172.105.166.5,172.105.169.5,172.105.168.5,172.105.172.5,172.105.162.5,172.105.170.5,172.105.167.5,172.105.171.5,172.105.181.5,172.105.161.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", - "Cloud Firewall", "Vlans", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.144.192.62,139.144.192.60,139.144.192.61,139.144.192.53,139.144.192.54,139.144.192.67,139.144.192.69,139.144.192.66,139.144.192.52,139.144.192.68", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "fr-par", "label": "Paris, FR", "country": "fr", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", - "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "se-sto", "label": "Stockholm, SE", "country": "se", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Managed Databases"], "status": - "ok", "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, 172.232.128.20, 172.232.128.22, 172.232.128.25, 172.232.128.19, 172.232.128.23, 172.232.128.18, 172.232.128.21, 172.232.128.27", - "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", - "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "72.14.179.5,72.14.188.5,173.255.199.5,66.228.53.5,96.126.122.5,96.126.124.5,96.126.127.5,198.58.107.5,198.58.111.5,23.239.24.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-west", "label": "Fremont, CA", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage - Migrations", "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "173.230.145.5,173.230.147.5,173.230.155.5,173.255.212.5,173.255.219.5,173.255.241.5,173.255.243.5,173.255.244.5,74.207.241.5,74.207.242.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-southeast", "label": "Atlanta, GA", "country": "us", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", - "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "74.207.231.5,173.230.128.5,173.230.129.5,173.230.136.5,173.230.140.5,66.228.59.5,66.228.62.5,50.116.35.5,50.116.41.5,23.239.18.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-east", "label": "Newark, NJ", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", - "Cloud Firewall", "Bare Metal", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "66.228.42.5,96.126.106.5,50.116.53.5,50.116.58.5,50.116.61.5,50.116.62.5,66.175.211.5,97.107.133.4,207.192.69.4,207.192.69.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-west", "label": "London, UK", "country": "uk", "capabilities": ["Linodes", + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", + "Metadata"], "status": "ok", "resolvers": {"ipv4": "172.105.34.5, 172.105.35.5, + 172.105.36.5, 172.105.37.5, 172.105.38.5, 172.105.39.5, 172.105.40.5, 172.105.41.5, + 172.105.42.5, 172.105.43.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ca-central", "label": "Toronto, CA", "country": "ca", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.0.5, 172.105.3.5, 172.105.4.5, + 172.105.5.5, 172.105.6.5, 172.105.7.5, 172.105.8.5, 172.105.9.5, 172.105.10.5, + 172.105.11.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ap-southeast", "label": "Sydney, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.166.5, 172.105.169.5, 172.105.168.5, + 172.105.172.5, 172.105.162.5, 172.105.170.5, 172.105.167.5, 172.105.171.5, 172.105.181.5, + 172.105.161.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium + Plans"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62, 139.144.192.60, + 139.144.192.61, 139.144.192.53, 139.144.192.54, 139.144.192.67, 139.144.192.69, + 139.144.192.66, 139.144.192.52, 139.144.192.68", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "fr-par", "label": + "Paris, FR", "country": "fr", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans"], "status": + "ok", "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, + 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-sea", "label": + "Seattle, WA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.232.160.19, 172.232.160.21, 172.232.160.17, 172.232.160.15, 172.232.160.18, + 172.232.160.8, 172.232.160.12, 172.232.160.11, 172.232.160.14, 172.232.160.16", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "br-gru", "label": + "Sao Paulo, BR", "country": "br", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.0.4, 172.233.0.9, 172.233.0.7, 172.233.0.12, 172.233.0.5, 172.233.0.13, + 172.233.0.10, 172.233.0.6, 172.233.0.8, 172.233.0.11", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "nl-ams", "label": "Amsterdam, NL", "country": + "nl", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.33.36, 172.233.33.38, + 172.233.33.35, 172.233.33.39, 172.233.33.34, 172.233.33.33, 172.233.33.31, 172.233.33.30, + 172.233.33.37, 172.233.33.32", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "se-sto", "label": "Stockholm, SE", "country": "se", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, 172.232.128.20, 172.232.128.22, + 172.232.128.25, 172.232.128.19, 172.232.128.23, 172.232.128.18, 172.232.128.21, + 172.232.128.27", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "es-mad", "label": "Madrid, ES", "country": "es", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21, 172.233.111.25, + 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16, 172.233.111.18, + 172.233.111.9", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, + 172.232.96.25, 172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "jp-osa", "label": + "Osaka, JP", "country": "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46, + 172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "it-mil", "label": + "Milan, IT", "country": "it", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.192.19, 172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, + 172.232.192.21, 172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": + "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "id-cgk", "label": + "Jakarta, ID", "country": "id", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.224.23, 172.232.224.32, 172.232.224.26, 172.232.224.27, 172.232.224.21, + 172.232.224.24, 172.232.224.22, 172.232.224.20, 172.232.224.31, 172.232.224.28", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-lax", "label": + "Los Angeles, CA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.128.45, 172.233.128.38, 172.233.128.53, 172.233.128.37, 172.233.128.34, + 172.233.128.36, 172.233.128.33, 172.233.128.39, 172.233.128.43, 172.233.128.44", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", + "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block - Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": {"ipv4": - "178.79.182.5,176.58.107.5,176.58.116.5,176.58.121.5,151.236.220.5,212.71.252.5,212.71.253.5,109.74.192.20,109.74.193.20,109.74.194.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-south", "label": "Singapore, SG", "country": "sg", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", - "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.11.5,139.162.13.5,139.162.14.5,139.162.15.5,139.162.16.5,139.162.21.5,139.162.27.5,103.3.60.18,103.3.60.19,103.3.60.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", - "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5,139.162.131.5,139.162.132.5,139.162.133.5,139.162.134.5,139.162.135.5,139.162.136.5,139.162.137.5,139.162.138.5,139.162.139.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-northeast", "label": "Tokyo, JP", "country": "jp", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", - "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.66.5,139.162.67.5,139.162.68.5,139.162.69.5,139.162.70.5,139.162.71.5,139.162.72.5,139.162.73.5,139.162.74.5,139.162.75.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}], - "page": 1, "pages": 1, "results": 14}' + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "72.14.179.5, 72.14.188.5, 173.255.199.5, 66.228.53.5, 96.126.122.5, + 96.126.124.5, 96.126.127.5, 198.58.107.5, 198.58.111.5, 23.239.24.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-west", "label": "Fremont, CA", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, + 173.255.212.5, 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, + 74.207.242.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-southeast", "label": "Atlanta, GA", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "74.207.231.5, 173.230.128.5, 173.230.129.5, 173.230.136.5, 173.230.140.5, + 66.228.59.5, 66.228.62.5, 50.116.35.5, 50.116.41.5, 23.239.18.5", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-east", "label": + "Newark, NJ", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], "status": + "ok", "resolvers": {"ipv4": "66.228.42.5, 96.126.106.5, 50.116.53.5, 50.116.58.5, + 50.116.61.5, 50.116.62.5, 66.175.211.5, 97.107.133.4, 207.192.69.4, 207.192.69.5", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-west", "label": "London, UK", "country": "gb", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "178.79.182.5, 176.58.107.5, 176.58.116.5, + 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, 109.74.192.20, 109.74.193.20, + 109.74.194.20", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-south", "label": "Singapore, SG", "country": + "sg", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.11.5, 139.162.13.5, 139.162.14.5, 139.162.15.5, 139.162.16.5, + 139.162.21.5, 139.162.27.5, 103.3.60.18, 103.3.60.19, 103.3.60.20", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU + Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5, + 139.162.131.5, 139.162.132.5, 139.162.133.5, 139.162.134.5, 139.162.135.5, 139.162.136.5, + 139.162.137.5, 139.162.138.5, 139.162.139.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "ap-northeast", + "label": "Tokyo, JP", "country": "jp", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.66.5, 139.162.67.5, 139.162.68.5, 139.162.69.5, 139.162.70.5, + 139.162.71.5, 139.162.72.5, 139.162.73.5, 139.162.74.5, 139.162.75.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -94,19 +283,23 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=900 - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:54 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: - Authorization, X-Filter - Authorization, X-Filter + - Accept-Encoding X-Accepted-Oauth-Scopes: - '*' X-Content-Type-Options: @@ -117,14 +310,56 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-39pa62gh8ys0","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-915nlu024uos","firewall_id":640265,"booted":false}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/linode/instances + method: POST + response: + body: '{"errors": [{"reason": "Too many requests"}]}' + headers: + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Content-Length: + - "45" + Content-Type: + - application/json + Expires: + - Mon, 08 Jul 2024 13:31:54 GMT + Pragma: + - no-cache + X-Accepted-Oauth-Scopes: + - linodes:read_write + X-Frame-Options: + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "5" + status: 429 Too Many Requests + code: 429 + duration: "" +- request: + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-915nlu024uos","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -136,15 +371,58 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 46937852, "label": "go-test-ins-wo-disk-39pa62gh8ys0", "group": + body: '{"errors": [{"reason": "Too many requests"}]}' + headers: + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Content-Length: + - "45" + Content-Type: + - application/json + Expires: + - Mon, 08 Jul 2024 13:31:57 GMT + Pragma: + - no-cache + X-Accepted-Oauth-Scopes: + - linodes:read_write + X-Frame-Options: + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "5" + status: 429 Too Many Requests + code: 429 + duration: "" +- request: + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-915nlu024uos","firewall_id":640265,"booted":false}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/linode/instances + method: POST + response: + body: '{"id": 61169671, "label": "go-test-ins-wo-disk-915nlu024uos", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.105.58.203"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.46"], "ipv6": "1234::5678/128", "image": null, "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "1a12d3d7c0a6cee83c7699d2c92ade2ede5b8e67"}' + "aeb2357ce09e1cb483d94ee0d025f3b254c93dfc", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -157,15 +435,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "714" + - "785" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:03 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -187,7 +469,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-v4c2d76mt14v","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-lw741q6c1u2q","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -196,10 +478,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/46937852/configs + url: https://api.linode.com/v4beta/linode/instances/61169671/configs method: POST response: - body: '{"id": 49793373, "label": "go-test-conf-v4c2d76mt14v", "helpers": {"updatedb_disabled": + body: '{"id": 64385533, "label": "go-test-conf-lw741q6c1u2q", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -218,15 +500,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "539" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:03 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -241,14 +527,14 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-ins-test-assign","root_pass":"R34lBAdP455LONGLONGLONGLONG","image":"linode/debian9","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-ins-test-assign","root_pass":"\u003cCE(U\u0026(m9jC9guMJ795L0,cW^x4U*26T3#9`b-5*Gx[S3aIp-3\u003ew5zrHRt,On6?f","image":"linode/debian9","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -260,15 +546,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 46937854, "label": "go-ins-test-assign", "group": "", "status": + body: '{"id": 61169673, "label": "go-ins-test-assign", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.105.58.206"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.151"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "915afd6c961c0333afa335a52a655d656beae128"}' + "8bb24924c0b481c3ae3a41bf5819194b366c512d", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -281,15 +568,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "712" + - "784" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:04 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -311,7 +602,7 @@ interactions: code: 200 duration: "" - request: - body: '{"linode_id":46937854,"prefix_length":64}' + body: '{"linode_id":61169673,"prefix_length":64}' form: {} headers: Accept: @@ -336,15 +627,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "86" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:04 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -359,14 +654,14 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"region":"ap-west","assignments":[{"address":"1234::5678/64","linode_id":46937852}]}' + body: '{"region":"ap-west","assignments":[{"address":"1234::5678/64","linode_id":61169671}]}' form: {} headers: Accept: @@ -391,15 +686,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:04 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -414,7 +713,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -430,20 +729,21 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/46937852/ips + url: https://api.linode.com/v4beta/linode/instances/61169671/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "172.105.58.203", "gateway": "172.105.58.1", + body: '{"ipv4": {"public": [{"address": "172.105.55.46", "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "172-105-58-203.ip.linodeusercontent.com", "linode_id": 46937852, "region": - "ap-west"}], "private": [], "shared": [], "reserved": []}, "ipv6": {"slaac": - {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": - "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": - 46937852, "region": "ap-west", "public": true}, "link_local": {"address": "1234::5678", + "rdns": "172-105-55-46.ip.linodeusercontent.com", "linode_id": 61169671, "region": + "ap-west", "vpc_nat_1_1": null}], "private": [], "shared": [], "reserved": [], + "vpc": []}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, - "type": "ipv6", "rdns": null, "linode_id": 46937852, "region": "ap-west", "public": - false}, "global": [{"range": "1234::5678", "prefix": 64, "region": - "ap-west", "route_target": "1234::5678"}]}}' + "type": "ipv6", "rdns": null, "linode_id": 61169671, "region": "ap-west", "public": + true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", + "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": + null, "linode_id": 61169671, "region": "ap-west", "public": false}, "global": + [{"range": "1234::5678", "prefix": 64, "region": "ap-west", "route_target": + "1234::5678"}]}}' headers: Access-Control-Allow-Credentials: - "true" @@ -456,21 +756,23 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=0, s-maxage=0, no-cache, no-store - - private, max-age=60, s-maxage=60 - Content-Length: - - "885" + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:04 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: - Authorization, X-Filter - Authorization, X-Filter + - Accept-Encoding X-Accepted-Oauth-Scopes: - linodes:read_only X-Content-Type-Options: @@ -481,7 +783,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -497,7 +799,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/46937854 + url: https://api.linode.com/v4beta/linode/instances/61169673 method: DELETE response: body: '{}' @@ -513,15 +815,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:04 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -536,7 +842,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -552,7 +858,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/46937852 + url: https://api.linode.com/v4beta/linode/instances/61169671 method: DELETE response: body: '{}' @@ -568,15 +874,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:32:05 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -591,7 +901,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/test/integration/fixtures/TestIPAddress_Instance_Delete.yaml b/test/integration/fixtures/TestIPAddress_Instance_Delete.yaml index 53598a671..5214e6304 100644 --- a/test/integration/fixtures/TestIPAddress_Instance_Delete.yaml +++ b/test/integration/fixtures/TestIPAddress_Instance_Delete.yaml @@ -14,56 +14,263 @@ interactions: url: https://api.linode.com/v4beta/regions method: GET response: - body: '{"data": [{"id": "ap-west", "country": "in", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "172.105.34.5,172.105.35.5,172.105.36.5,172.105.37.5,172.105.38.5,172.105.39.5,172.105.40.5,172.105.41.5,172.105.42.5,172.105.43.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ca-central", "country": "ca", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.0.5,172.105.3.5,172.105.4.5,172.105.5.5,172.105.6.5,172.105.7.5,172.105.8.5,172.105.9.5,172.105.10.5,172.105.11.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-southeast", "country": "au", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.166.5,172.105.169.5,172.105.168.5,172.105.172.5,172.105.162.5,172.105.170.5,172.105.167.5,172.105.171.5,172.105.181.5,172.105.161.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-central", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "72.14.179.5,72.14.188.5,173.255.199.5,66.228.53.5,96.126.122.5,96.126.124.5,96.126.127.5,198.58.107.5,198.58.111.5,23.239.24.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-west", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "173.230.145.5,173.230.147.5,173.230.155.5,173.255.212.5,173.255.219.5,173.255.241.5,173.255.243.5,173.255.244.5,74.207.241.5,74.207.242.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-southeast", "country": "us", "capabilities": ["Linodes", "NodeBalancers", + body: '{"data": [{"id": "ap-west", "label": "Mumbai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", + "Metadata"], "status": "ok", "resolvers": {"ipv4": "172.105.34.5, 172.105.35.5, + 172.105.36.5, 172.105.37.5, 172.105.38.5, 172.105.39.5, 172.105.40.5, 172.105.41.5, + 172.105.42.5, 172.105.43.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ca-central", "label": "Toronto, CA", "country": "ca", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.0.5, 172.105.3.5, 172.105.4.5, + 172.105.5.5, 172.105.6.5, 172.105.7.5, 172.105.8.5, 172.105.9.5, 172.105.10.5, + 172.105.11.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ap-southeast", "label": "Sydney, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.166.5, 172.105.169.5, 172.105.168.5, + 172.105.172.5, 172.105.162.5, 172.105.170.5, 172.105.167.5, 172.105.171.5, 172.105.181.5, + 172.105.161.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium + Plans"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62, 139.144.192.60, + 139.144.192.61, 139.144.192.53, 139.144.192.54, 139.144.192.67, 139.144.192.69, + 139.144.192.66, 139.144.192.52, 139.144.192.68", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "fr-par", "label": + "Paris, FR", "country": "fr", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "74.207.231.5,173.230.128.5,173.230.129.5,173.230.136.5,173.230.140.5,66.228.59.5,66.228.62.5,50.116.35.5,50.116.41.5,23.239.18.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-east", "country": "us", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans"], "status": + "ok", "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, + 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-sea", "label": + "Seattle, WA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Bare Metal", "Block Storage Migrations", "Managed Databases"], "status": "ok", - "resolvers": {"ipv4": "66.228.42.5,96.126.106.5,50.116.53.5,50.116.58.5,50.116.61.5,50.116.62.5,66.175.211.5,97.107.133.4,207.192.69.4,207.192.69.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-west", "country": "uk", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "178.79.182.5,176.58.107.5,176.58.116.5,176.58.121.5,151.236.220.5,212.71.252.5,212.71.253.5,109.74.192.20,109.74.193.20,109.74.194.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-south", "country": "sg", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.232.160.19, 172.232.160.21, 172.232.160.17, 172.232.160.15, 172.232.160.18, + 172.232.160.8, 172.232.160.12, 172.232.160.11, 172.232.160.14, 172.232.160.16", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "br-gru", "label": + "Sao Paulo, BR", "country": "br", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.0.4, 172.233.0.9, 172.233.0.7, 172.233.0.12, 172.233.0.5, 172.233.0.13, + 172.233.0.10, 172.233.0.6, 172.233.0.8, 172.233.0.11", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "nl-ams", "label": "Amsterdam, NL", "country": + "nl", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.33.36, 172.233.33.38, + 172.233.33.35, 172.233.33.39, 172.233.33.34, 172.233.33.33, 172.233.33.31, 172.233.33.30, + 172.233.33.37, 172.233.33.32", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "se-sto", "label": "Stockholm, SE", "country": "se", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, 172.232.128.20, 172.232.128.22, + 172.232.128.25, 172.232.128.19, 172.232.128.23, 172.232.128.18, 172.232.128.21, + 172.232.128.27", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "es-mad", "label": "Madrid, ES", "country": "es", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21, 172.233.111.25, + 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16, 172.233.111.18, + 172.233.111.9", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, + 172.232.96.25, 172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "jp-osa", "label": + "Osaka, JP", "country": "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.11.5,139.162.13.5,139.162.14.5,139.162.15.5,139.162.16.5,139.162.21.5,139.162.27.5,103.3.60.18,103.3.60.19,103.3.60.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-central", "country": "de", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46, + 172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "it-mil", "label": + "Milan, IT", "country": "it", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.192.19, 172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, + 172.232.192.21, 172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": + "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "id-cgk", "label": + "Jakarta, ID", "country": "id", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.224.23, 172.232.224.32, 172.232.224.26, 172.232.224.27, 172.232.224.21, + 172.232.224.24, 172.232.224.22, 172.232.224.20, 172.232.224.31, 172.232.224.28", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-lax", "label": + "Los Angeles, CA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.128.45, 172.233.128.38, 172.233.128.53, 172.233.128.37, 172.233.128.34, + 172.233.128.36, 172.233.128.33, 172.233.128.39, 172.233.128.43, 172.233.128.44", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", + "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "72.14.179.5, 72.14.188.5, 173.255.199.5, 66.228.53.5, 96.126.122.5, + 96.126.124.5, 96.126.127.5, 198.58.107.5, 198.58.111.5, 23.239.24.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-west", "label": "Fremont, CA", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, + 173.255.212.5, 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, + 74.207.242.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-southeast", "label": "Atlanta, GA", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "74.207.231.5, 173.230.128.5, 173.230.129.5, 173.230.136.5, 173.230.140.5, + 66.228.59.5, 66.228.62.5, 50.116.35.5, 50.116.41.5, 23.239.18.5", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-east", "label": + "Newark, NJ", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.130.5,139.162.131.5,139.162.132.5,139.162.133.5,139.162.134.5,139.162.135.5,139.162.136.5,139.162.137.5,139.162.138.5,139.162.139.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-northeast", "country": "jp", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.66.5,139.162.67.5,139.162.68.5,139.162.69.5,139.162.70.5,139.162.71.5,139.162.72.5,139.162.73.5,139.162.74.5,139.162.75.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}], - "page": 1, "pages": 1, "results": 11}' + "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], "status": + "ok", "resolvers": {"ipv4": "66.228.42.5, 96.126.106.5, 50.116.53.5, 50.116.58.5, + 50.116.61.5, 50.116.62.5, 66.175.211.5, 97.107.133.4, 207.192.69.4, 207.192.69.5", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-west", "label": "London, UK", "country": "gb", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "178.79.182.5, 176.58.107.5, 176.58.116.5, + 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, 109.74.192.20, 109.74.193.20, + 109.74.194.20", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-south", "label": "Singapore, SG", "country": + "sg", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.11.5, 139.162.13.5, 139.162.14.5, 139.162.15.5, 139.162.16.5, + 139.162.21.5, 139.162.27.5, 103.3.60.18, 103.3.60.19, 103.3.60.20", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU + Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5, + 139.162.131.5, 139.162.132.5, 139.162.133.5, 139.162.134.5, 139.162.135.5, 139.162.136.5, + 139.162.137.5, 139.162.138.5, 139.162.139.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "ap-northeast", + "label": "Tokyo, JP", "country": "jp", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.66.5, 139.162.67.5, 139.162.68.5, 139.162.69.5, 139.162.70.5, + 139.162.71.5, 139.162.72.5, 139.162.73.5, 139.162.74.5, 139.162.75.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -76,19 +283,23 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=900 - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:52 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: - Authorization, X-Filter - Authorization, X-Filter + - Accept-Encoding X-Accepted-Oauth-Scopes: - '*' X-Content-Type-Options: @@ -99,14 +310,14 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-66nbg4c2vu45","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-57sydhr2g796","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -118,14 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 39426832, "label": "go-test-ins-wo-disk-66nbg4c2vu45", "group": + body: '{"id": 61169670, "label": "go-test-ins-wo-disk-57sydhr2g796", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["194.195.113.107"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.118"], "ipv6": "1234::5678/128", "image": null, "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "schedule": {"day": null, "window": null}, "last_successful": null}, - "hypervisor": "kvm", "watchdog_enabled": true, "tags": []}' + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": + "aeb2357ce09e1cb483d94ee0d025f3b254c93dfc", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -138,15 +351,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "638" + - "786" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:52 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -168,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-o2cwg7j7q439","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-3f15v6kx8e2m","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -177,10 +394,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426832/configs + url: https://api.linode.com/v4beta/linode/instances/61169670/configs method: POST response: - body: '{"id": 41972313, "label": "go-test-conf-o2cwg7j7q439", "helpers": {"updatedb_disabled": + body: '{"id": 64385524, "label": "go-test-conf-3f15v6kx8e2m", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -199,15 +416,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "539" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:52 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -222,7 +443,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -238,12 +459,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426832/ips + url: https://api.linode.com/v4beta/linode/instances/61169670/ips method: POST response: - body: '{"address": "194.195.113.110", "gateway": "194.195.113.1", "subnet_mask": - "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "194-195-113-110.ip.linodeusercontent.com", - "linode_id": 39426832, "region": "ap-west"}' + body: '{"address": "172.105.55.46", "gateway": "172.105.55.1", "subnet_mask": + "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-105-55-46.ip.linodeusercontent.com", + "linode_id": 61169670, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -256,15 +477,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "232" + - "248" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:52 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -279,7 +504,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -295,21 +520,23 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426832/ips + url: https://api.linode.com/v4beta/linode/instances/61169670/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "194.195.113.107", "gateway": "194.195.113.1", + body: '{"ipv4": {"public": [{"address": "172.105.55.46", "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "194-195-113-107.ip.linodeusercontent.com", "linode_id": 39426832, "region": - "ap-west"}, {"address": "194.195.113.110", "gateway": "194.195.113.1", "subnet_mask": - "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "194-195-113-110.ip.linodeusercontent.com", - "linode_id": 39426832, "region": "ap-west"}], "private": [], "shared": [], "reserved": - []}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": - "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", - "rdns": null, "linode_id": 39426832, "region": "ap-west", "public": true}, "link_local": - {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": - "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": - 39426832, "region": "ap-west", "public": false}, "global": []}}' + "rdns": "172-105-55-46.ip.linodeusercontent.com", "linode_id": 61169670, "region": + "ap-west", "vpc_nat_1_1": null}, {"address": "172.105.55.118", "gateway": "172.105.55.1", + "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, + "rdns": "172-105-55-118.ip.linodeusercontent.com", "linode_id": 61169670, "region": + "ap-west", "vpc_nat_1_1": null}], "private": [], "shared": [], "reserved": [], + "vpc": []}, "ipv6": {"slaac": {"address": "1234::5678", + "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, + "type": "ipv6", "rdns": null, "linode_id": 61169670, "region": "ap-west", "public": + true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", + "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": + null, "linode_id": 61169670, "region": "ap-west", "public": false}, "global": + []}}' headers: Access-Control-Allow-Credentials: - "true" @@ -322,21 +549,23 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=0, s-maxage=0, no-cache, no-store - - private, max-age=60, s-maxage=60 - Content-Length: - - "1004" + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:53 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: - Authorization, X-Filter - Authorization, X-Filter + - Accept-Encoding X-Accepted-Oauth-Scopes: - linodes:read_only X-Content-Type-Options: @@ -347,7 +576,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -363,7 +592,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426832/ips/194.195.113.110 + url: https://api.linode.com/v4beta/linode/instances/61169670/ips/172.105.55.46 method: DELETE response: body: '{}' @@ -379,15 +608,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:53 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -402,7 +635,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -418,19 +651,20 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426832/ips + url: https://api.linode.com/v4beta/linode/instances/61169670/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "194.195.113.107", "gateway": "194.195.113.1", + body: '{"ipv4": {"public": [{"address": "172.105.55.118", "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "194-195-113-107.ip.linodeusercontent.com", "linode_id": 39426832, "region": - "ap-west"}], "private": [], "shared": [], "reserved": []}, "ipv6": {"slaac": - {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": - "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": - 39426832, "region": "ap-west", "public": true}, "link_local": {"address": "1234::5678", + "rdns": "172-105-55-118.ip.linodeusercontent.com", "linode_id": 61169670, "region": + "ap-west", "vpc_nat_1_1": null}], "private": [], "shared": [], "reserved": [], + "vpc": []}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, - "type": "ipv6", "rdns": null, "linode_id": 39426832, "region": "ap-west", "public": - false}, "global": []}}' + "type": "ipv6", "rdns": null, "linode_id": 61169670, "region": "ap-west", "public": + true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", + "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": + null, "linode_id": 61169670, "region": "ap-west", "public": false}, "global": + []}}' headers: Access-Control-Allow-Credentials: - "true" @@ -443,16 +677,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=0, s-maxage=0, no-cache, no-store - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "770" + - "799" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:53 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -468,7 +705,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -484,7 +721,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426832 + url: https://api.linode.com/v4beta/linode/instances/61169670 method: DELETE response: body: '{}' @@ -500,15 +737,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:53 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -523,7 +764,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/test/integration/fixtures/TestIPAddress_Instance_Share.yaml b/test/integration/fixtures/TestIPAddress_Instance_Share.yaml index b558ba454..cc77a0de1 100644 --- a/test/integration/fixtures/TestIPAddress_Instance_Share.yaml +++ b/test/integration/fixtures/TestIPAddress_Instance_Share.yaml @@ -15,186 +15,262 @@ interactions: method: GET response: body: '{"data": [{"id": "ap-west", "label": "Mumbai, IN", "country": "in", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", "Cloud - Firewall", "Vlans", "Block Storage Migrations", "Managed Databases"], "status": - "ok", "resolvers": {"ipv4": "172.105.34.5, 172.105.35.5, 172.105.36.5, 172.105.37.5, - 172.105.38.5, 172.105.39.5, 172.105.40.5, 172.105.41.5, 172.105.42.5, 172.105.43.5", - "ipv6": "1234::5678, 1234::5678, 1234::5678, + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", + "Metadata"], "status": "ok", "resolvers": {"ipv4": "172.105.34.5, 172.105.35.5, + 172.105.36.5, 172.105.37.5, 172.105.38.5, 172.105.39.5, 172.105.40.5, 172.105.41.5, + 172.105.42.5, 172.105.43.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "ca-central", "label": "Toronto, CA", - "country": "ca", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", - "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.0.5, 172.105.3.5, - 172.105.4.5, 172.105.5.5, 172.105.6.5, 172.105.7.5, 172.105.8.5, 172.105.9.5, - 172.105.10.5, 172.105.11.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ca-central", "label": "Toronto, CA", "country": "ca", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.0.5, 172.105.3.5, 172.105.4.5, + 172.105.5.5, 172.105.6.5, 172.105.7.5, 172.105.8.5, 172.105.9.5, 172.105.10.5, + 172.105.11.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678"}}, {"id": "ap-southeast", - "label": "Sydney, AU", "country": "au", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.166.5, - 172.105.169.5, 172.105.168.5, 172.105.172.5, 172.105.162.5, 172.105.170.5, 172.105.167.5, - 172.105.171.5, 172.105.181.5, 172.105.161.5", "ipv6": "1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ap-southeast", "label": "Sydney, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.166.5, 172.105.169.5, 172.105.168.5, + 172.105.172.5, 172.105.162.5, 172.105.170.5, 172.105.167.5, 172.105.171.5, 172.105.181.5, + 172.105.161.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium - Plans"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62, 139.144.192.60, 139.144.192.61, 139.144.192.53, 139.144.192.54, 139.144.192.67, 139.144.192.69, 139.144.192.66, 139.144.192.52, 139.144.192.68", - "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", + Plans"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62, 139.144.192.60, + 139.144.192.61, 139.144.192.53, 139.144.192.54, 139.144.192.67, 139.144.192.69, + 139.144.192.66, 139.144.192.52, 139.144.192.68", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "fr-par", "label": + "Paris, FR", "country": "fr", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans"], "status": - "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", - "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "fr-par", "label": "Paris, FR", "country": "fr", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", - "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", - "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-sea", "label": "Seattle, WA", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", + "ok", "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, + 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-sea", "label": + "Seattle, WA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.160.19, 172.232.160.21, 172.232.160.17, 172.232.160.15, 172.232.160.18, 172.232.160.8, 172.232.160.12, 172.232.160.11, 172.232.160.14, 172.232.160.16", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "br-gru", "label": "Sao Paulo, BR", - "country": "br", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", - "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", - "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.0.4, 172.233.0.9, - 172.233.0.7, 172.233.0.12, 172.233.0.5, 172.233.0.13, 172.233.0.10, 172.233.0.6, - 172.233.0.8, 172.233.0.11", "ipv6": "1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678"}}, {"id": "nl-ams", - "label": "Amsterdam, NL", "country": "nl", "capabilities": ["Linodes", "NodeBalancers", + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "br-gru", "label": + "Sao Paulo, BR", "country": "br", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.33.36, 172.233.33.38, 172.233.33.35, 172.233.33.39, 172.233.33.34, - 172.233.33.33, 172.233.33.31, 172.233.33.30, 172.233.33.37, 172.233.33.32", - "ipv6": "1234::5678, 1234::5678, 1234::5678, + "172.233.0.4, 172.233.0.9, 172.233.0.7, 172.233.0.12, 172.233.0.5, 172.233.0.13, + 172.233.0.10, 172.233.0.6, 172.233.0.8, 172.233.0.11", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "se-sto", "label": "Stockholm, SE", - "country": "se", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "nl-ams", "label": "Amsterdam, NL", "country": + "nl", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", - "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, - 172.232.128.20, 172.232.128.22, 172.232.128.25, 172.232.128.19, 172.232.128.23, - 172.232.128.18, 172.232.128.21, 172.232.128.27", "ipv6": "1234::5678, + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.33.36, 172.233.33.38, + 172.233.33.35, 172.233.33.39, 172.233.33.34, 172.233.33.33, 172.233.33.31, 172.233.33.30, + 172.233.33.37, 172.233.33.32", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "es-mad", "label": "Madrid, ES", "country": "es", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21, 172.233.111.25, 172.233.111.19, - 172.233.111.12, 172.233.111.26, 172.233.111.16, 172.233.111.18, 172.233.111.9", - "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "se-sto", "label": "Stockholm, SE", "country": "se", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, 172.232.128.20, 172.232.128.22, + 172.232.128.25, 172.232.128.19, 172.232.128.23, 172.232.128.18, 172.232.128.21, + 172.232.128.27", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "in-maa", "label": "Chennai, IN", - "country": "in", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", - "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", - "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.96.17, 172.232.96.26, - 172.232.96.19, 172.232.96.20, 172.232.96.25, 172.232.96.21, 172.232.96.18, 172.232.96.22, - 172.232.96.23, 172.232.96.24", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "es-mad", "label": "Madrid, ES", "country": "es", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21, 172.233.111.25, + 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16, 172.233.111.18, + 172.233.111.9", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678"}}, {"id": "jp-osa", - "label": "Osaka, JP", "country": "jp", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, + 172.232.96.25, 172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "jp-osa", "label": + "Osaka, JP", "country": "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46, 172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "it-mil", "label": "Milan, IT", "country": - "it", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object - Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium - Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.192.19, 172.232.192.18, - 172.232.192.16, 172.232.192.20, 172.232.192.24, 172.232.192.21, 172.232.192.22, - 172.232.192.17, 172.232.192.15, 172.232.192.23", "ipv6": "1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "it-mil", "label": + "Milan, IT", "country": "it", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.192.19, 172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, + 172.232.192.21, 172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": + "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "id-cgk", "label": "Jakarta, ID", - "country": "id", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", - "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", - "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.224.23, 172.232.224.32, - 172.232.224.26, 172.232.224.27, 172.232.224.21, 172.232.224.24, 172.232.224.22, - 172.232.224.20, 172.232.224.31, 172.232.224.28", "ipv6": "1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "id-cgk", "label": + "Jakarta, ID", "country": "id", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.224.23, 172.232.224.32, 172.232.224.26, 172.232.224.27, 172.232.224.21, + 172.232.224.24, 172.232.224.22, 172.232.224.20, 172.232.224.31, 172.232.224.28", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-lax", "label": "Los Angeles, CA", "country": "us", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", - "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", - "resolvers": {"ipv4": "172.233.128.45, 172.233.128.38, 172.233.128.53, 172.233.128.37, - 172.233.128.34, 172.233.128.36, 172.233.128.33, 172.233.128.39, 172.233.128.43, - 172.233.128.44", "ipv6": "1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-lax", "label": + "Los Angeles, CA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.128.45, 172.233.128.38, 172.233.128.53, 172.233.128.37, 172.233.128.34, + 172.233.128.36, 172.233.128.33, 172.233.128.39, 172.233.128.43, 172.233.128.44", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678"}}, {"id": "us-central", - "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "72.14.179.5, 72.14.188.5, - 173.255.199.5, 66.228.53.5, 96.126.122.5, 96.126.124.5, 96.126.127.5, 198.58.107.5, - 198.58.111.5, 23.239.24.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", + "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "72.14.179.5, 72.14.188.5, 173.255.199.5, 66.228.53.5, 96.126.122.5, + 96.126.124.5, 96.126.127.5, 198.58.107.5, 198.58.111.5, 23.239.24.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-west", "label": "Fremont, CA", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, + 173.255.212.5, 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, + 74.207.242.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-southeast", "label": "Atlanta, GA", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "74.207.231.5, 173.230.128.5, 173.230.129.5, 173.230.136.5, 173.230.140.5, + 66.228.59.5, 66.228.62.5, 50.116.35.5, 50.116.41.5, 23.239.18.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "us-west", "label": "Fremont, CA", "country": "us", - "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Kubernetes", - "Cloud Firewall", "Block Storage Migrations", "Managed Databases"], "status": - "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, 173.255.212.5, - 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, 74.207.242.5", + 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-east", "label": + "Newark, NJ", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], "status": + "ok", "resolvers": {"ipv4": "66.228.42.5, 96.126.106.5, 50.116.53.5, 50.116.58.5, + 50.116.61.5, 50.116.62.5, 66.175.211.5, 97.107.133.4, 207.192.69.4, 207.192.69.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, {"id": - "us-southeast", "label": "Atlanta, GA", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", - "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases"], - "status": "ok", "resolvers": {"ipv4": "74.207.231.5, 173.230.128.5, 173.230.129.5, - 173.230.136.5, 173.230.140.5, 66.228.59.5, 66.228.62.5, 50.116.35.5, 50.116.41.5, - 23.239.18.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "us-east", "label": "Newark, NJ", "country": "us", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", - "Cloud Firewall", "Bare Metal", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "66.228.42.5, 96.126.106.5, - 50.116.53.5, 50.116.58.5, 50.116.61.5, 50.116.62.5, 66.175.211.5, 97.107.133.4, - 207.192.69.4, 207.192.69.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "eu-west", "label": "London, UK", "country": "gb", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "178.79.182.5, 176.58.107.5, 176.58.116.5, 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, 109.74.192.20, 109.74.193.20, 109.74.194.20", - "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}}, - {"id": "ap-south", "label": "Singapore, SG", "country": "sg", "capabilities": - ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", - "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed - Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.11.5, 139.162.13.5, - 139.162.14.5, 139.162.15.5, 139.162.16.5, 139.162.21.5, 139.162.27.5, 103.3.60.18, - 103.3.60.19, 103.3.60.20", "ipv6": "1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678"}}, {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", - "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object Storage", - "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-west", "label": "London, UK", "country": "gb", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "178.79.182.5, 176.58.107.5, 176.58.116.5, + 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, 109.74.192.20, 109.74.193.20, + 109.74.194.20", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-south", "label": "Singapore, SG", "country": + "sg", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.11.5, 139.162.13.5, 139.162.14.5, 139.162.15.5, 139.162.16.5, + 139.162.21.5, 139.162.27.5, 103.3.60.18, 103.3.60.19, 103.3.60.20", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU + Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5, 139.162.131.5, 139.162.132.5, 139.162.133.5, 139.162.134.5, 139.162.135.5, 139.162.136.5, 139.162.137.5, 139.162.138.5, 139.162.139.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, - 1234::5678, 1234::5678"}}], "page": 1, "pages": 1, "results": 24}' + 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "ap-northeast", + "label": "Tokyo, JP", "country": "jp", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.66.5, 139.162.67.5, 139.162.68.5, 139.162.69.5, 139.162.70.5, + 139.162.71.5, 139.162.72.5, 139.162.73.5, 139.162.74.5, 139.162.75.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -215,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:36 GMT + - Mon, 08 Jul 2024 13:32:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -241,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"us-ord","type":"g6-nanode-1","label":"go-test-ins-wo-disk-r4kt55l2u6g0","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-g7y142iokx36","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -253,15 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 52922712, "label": "go-test-ins-wo-disk-r4kt55l2u6g0", "group": + body: '{"id": 61169674, "label": "go-test-ins-wo-disk-g7y142iokx36", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.234.196.163"], "ipv6": "1234::5678/128", - "image": null, "region": "us-ord", "specs": {"disk": 25600, "memory": 1024, + "type": "g6-nanode-1", "ipv4": ["172.105.55.223"], "ipv6": "1234::5678/128", + "image": null, "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "dac50e38b22cb2a3f78706af00a10cf65b0bcbd5", "has_user_data": false}' + "aeb2357ce09e1cb483d94ee0d025f3b254c93dfc", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -278,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "738" + - "786" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:37 GMT + - Mon, 08 Jul 2024 13:32:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -308,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-w327g97mogn2","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-8a29mmr62y5r","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -317,10 +394,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/52922712/configs + url: https://api.linode.com/v4beta/linode/instances/61169674/configs method: POST response: - body: '{"id": 55953786, "label": "go-test-conf-w327g97mogn2", "helpers": {"updatedb_disabled": + body: '{"id": 64385536, "label": "go-test-conf-8a29mmr62y5r", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -349,7 +426,7 @@ interactions: Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:37 GMT + - Mon, 08 Jul 2024 13:32:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -373,7 +450,133 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"us-ord","type":"g6-nanode-1","label":"go-ins-test-share","root_pass":"1{\\#t4CUY!SoDI4tjl,aGJT6GL(~1ab3E\u003ce5@wT9a\\nYx33!5Vt6\u0026=y0R7j|^33\\","image":"linode/debian9","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-ins-test-share","root_pass":"4h@G\u0026##)$#56/u8peR@4P7M-PcM7LAHJ*^5lS!\u003eO3o6J1!9q2~6WaidxtFKihe40","image":"linode/debian9","firewall_id":640265,"booted":false}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/linode/instances + method: POST + response: + body: '{"errors": [{"reason": "Too many requests"}]}' + headers: + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Content-Length: + - "45" + Content-Type: + - application/json + Expires: + - Mon, 08 Jul 2024 13:32:06 GMT + Pragma: + - no-cache + X-Accepted-Oauth-Scopes: + - linodes:read_write + X-Frame-Options: + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "10" + status: 429 Too Many Requests + code: 429 + duration: "" +- request: + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-ins-test-share","root_pass":"4h@G\u0026##)$#56/u8peR@4P7M-PcM7LAHJ*^5lS!\u003eO3o6J1!9q2~6WaidxtFKihe40","image":"linode/debian9","firewall_id":640265,"booted":false}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/linode/instances + method: POST + response: + body: '{"errors": [{"reason": "Too many requests"}]}' + headers: + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Content-Length: + - "45" + Content-Type: + - application/json + Expires: + - Mon, 08 Jul 2024 13:32:09 GMT + Pragma: + - no-cache + X-Accepted-Oauth-Scopes: + - linodes:read_write + X-Frame-Options: + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "10" + status: 429 Too Many Requests + code: 429 + duration: "" +- request: + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-ins-test-share","root_pass":"4h@G\u0026##)$#56/u8peR@4P7M-PcM7LAHJ*^5lS!\u003eO3o6J1!9q2~6WaidxtFKihe40","image":"linode/debian9","firewall_id":640265,"booted":false}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/linode/instances + method: POST + response: + body: '{"errors": [{"reason": "Too many requests"}]}' + headers: + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Content-Length: + - "45" + Content-Type: + - application/json + Expires: + - Mon, 08 Jul 2024 13:32:13 GMT + Pragma: + - no-cache + X-Accepted-Oauth-Scopes: + - linodes:read_write + X-Frame-Options: + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "10" + status: 429 Too Many Requests + code: 429 + duration: "" +- request: + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-ins-test-share","root_pass":"4h@G\u0026##)$#56/u8peR@4P7M-PcM7LAHJ*^5lS!\u003eO3o6J1!9q2~6WaidxtFKihe40","image":"linode/debian9","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -385,15 +588,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 52922713, "label": "go-ins-test-share", "group": "", "status": "provisioning", + body: '{"id": 61169687, "label": "go-ins-test-share", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "type": - "g6-nanode-1", "ipv4": ["172.234.196.173"], "ipv6": "1234::5678/128", - "image": "linode/debian9", "region": "us-ord", "specs": {"disk": 25600, "memory": + "g6-nanode-1", "ipv4": ["172.105.55.24"], "ipv6": "1234::5678/128", + "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "5d7095e2e3d052a2dbc952de1bb54fae20939b03", "has_user_data": false}' + "8bb24924c0b481c3ae3a41bf5819194b366c512d", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -410,13 +614,13 @@ interactions: Connection: - keep-alive Content-Length: - - "735" + - "782" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:38 GMT + - Mon, 08 Jul 2024 13:32:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -449,12 +653,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/52922713/ips + url: https://api.linode.com/v4beta/linode/instances/61169687/ips method: POST response: - body: '{"address": "172.234.196.182", "gateway": "172.234.196.1", "subnet_mask": - "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-234-196-182.ip.linodeusercontent.com", - "linode_id": 52922713, "region": "us-ord", "vpc_nat_1_1": null}' + body: '{"address": "172.105.55.147", "gateway": "172.105.55.1", "subnet_mask": + "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-105-55-147.ip.linodeusercontent.com", + "linode_id": 61169687, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -471,13 +675,13 @@ interactions: Connection: - keep-alive Content-Length: - - "252" + - "250" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:39 GMT + - Mon, 08 Jul 2024 13:32:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -501,7 +705,7 @@ interactions: code: 200 duration: "" - request: - body: '{"ips":["172.234.196.182"],"linode_id":52922712}' + body: '{"ips":["172.105.55.147"],"linode_id":61169674}' form: {} headers: Accept: @@ -536,7 +740,7 @@ interactions: Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:39 GMT + - Mon, 08 Jul 2024 13:32:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -569,22 +773,22 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/52922712/ips + url: https://api.linode.com/v4beta/linode/instances/61169674/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "172.234.196.163", "gateway": "172.234.196.1", + body: '{"ipv4": {"public": [{"address": "172.105.55.223", "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "172-234-196-163.ip.linodeusercontent.com", "linode_id": 52922712, "region": - "us-ord", "vpc_nat_1_1": null}], "private": [], "shared": [{"address": "172.234.196.182", - "gateway": "172.234.196.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": - "ipv4", "public": true, "rdns": "172-234-196-182.ip.linodeusercontent.com", - "linode_id": 52922713, "region": "us-ord", "vpc_nat_1_1": null}], "reserved": + "rdns": "172-105-55-223.ip.linodeusercontent.com", "linode_id": 61169674, "region": + "ap-west", "vpc_nat_1_1": null}], "private": [], "shared": [{"address": "172.105.55.147", + "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": + "ipv4", "public": true, "rdns": "172-105-55-147.ip.linodeusercontent.com", "linode_id": + 61169687, "region": "ap-west", "vpc_nat_1_1": null}], "reserved": [], "vpc": []}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", - "rdns": null, "linode_id": 52922712, "region": "us-ord", "public": true}, "link_local": + "rdns": null, "linode_id": 61169674, "region": "ap-west", "public": true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": - 52922712, "region": "us-ord", "public": false}, "global": []}}' + 61169674, "region": "ap-west", "public": false}, "global": []}}' headers: Access-Control-Allow-Credentials: - "true" @@ -605,7 +809,7 @@ interactions: Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:39 GMT + - Mon, 08 Jul 2024 13:32:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -640,7 +844,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/52922713 + url: https://api.linode.com/v4beta/linode/instances/61169687 method: DELETE response: body: '{}' @@ -666,7 +870,7 @@ interactions: Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:40 GMT + - Mon, 08 Jul 2024 13:32:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -699,7 +903,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/52922712 + url: https://api.linode.com/v4beta/linode/instances/61169674 method: DELETE response: body: '{}' @@ -725,7 +929,7 @@ interactions: Content-Type: - application/json Expires: - - Mon, 11 Dec 2023 22:38:41 GMT + - Mon, 08 Jul 2024 13:32:24 GMT Pragma: - no-cache Strict-Transport-Security: diff --git a/test/integration/fixtures/TestIPAddress_Update.yaml b/test/integration/fixtures/TestIPAddress_Update.yaml index 70c886948..32f25d22a 100644 --- a/test/integration/fixtures/TestIPAddress_Update.yaml +++ b/test/integration/fixtures/TestIPAddress_Update.yaml @@ -14,56 +14,263 @@ interactions: url: https://api.linode.com/v4beta/regions method: GET response: - body: '{"data": [{"id": "ap-west", "country": "in", "capabilities": ["Linodes", - "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "172.105.34.5,172.105.35.5,172.105.36.5,172.105.37.5,172.105.38.5,172.105.39.5,172.105.40.5,172.105.41.5,172.105.42.5,172.105.43.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ca-central", "country": "ca", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.0.5,172.105.3.5,172.105.4.5,172.105.5.5,172.105.6.5,172.105.7.5,172.105.8.5,172.105.9.5,172.105.10.5,172.105.11.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-southeast", "country": "au", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "172.105.166.5,172.105.169.5,172.105.168.5,172.105.172.5,172.105.162.5,172.105.170.5,172.105.167.5,172.105.171.5,172.105.181.5,172.105.161.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-central", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "72.14.179.5,72.14.188.5,173.255.199.5,66.228.53.5,96.126.122.5,96.126.124.5,96.126.127.5,198.58.107.5,198.58.111.5,23.239.24.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-west", "country": "us", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "173.230.145.5,173.230.147.5,173.230.155.5,173.255.212.5,173.255.219.5,173.255.241.5,173.255.243.5,173.255.244.5,74.207.241.5,74.207.242.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-southeast", "country": "us", "capabilities": ["Linodes", "NodeBalancers", + body: '{"data": [{"id": "ap-west", "label": "Mumbai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", + "Metadata"], "status": "ok", "resolvers": {"ipv4": "172.105.34.5, 172.105.35.5, + 172.105.36.5, 172.105.37.5, 172.105.38.5, 172.105.39.5, 172.105.40.5, 172.105.41.5, + 172.105.42.5, 172.105.43.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ca-central", "label": "Toronto, CA", "country": "ca", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.0.5, 172.105.3.5, 172.105.4.5, + 172.105.5.5, 172.105.6.5, 172.105.7.5, 172.105.8.5, 172.105.9.5, 172.105.10.5, + 172.105.11.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "ap-southeast", "label": "Sydney, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "172.105.166.5, 172.105.169.5, 172.105.168.5, + 172.105.172.5, 172.105.162.5, 172.105.170.5, 172.105.167.5, 172.105.171.5, 172.105.181.5, + 172.105.161.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-iad", "label": "Washington, DC", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium + Plans"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62, 139.144.192.60, + 139.144.192.61, 139.144.192.53, 139.144.192.54, 139.144.192.67, 139.144.192.69, + 139.144.192.66, 139.144.192.52, 139.144.192.68", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "fr-par", "label": + "Paris, FR", "country": "fr", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "74.207.231.5,173.230.128.5,173.230.129.5,173.230.136.5,173.230.140.5,66.228.59.5,66.228.62.5,50.116.35.5,50.116.41.5,23.239.18.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "us-east", "country": "us", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans"], "status": + "ok", "resolvers": {"ipv4": "172.232.32.21, 172.232.32.23, 172.232.32.17, 172.232.32.18, + 172.232.32.16, 172.232.32.22, 172.232.32.20, 172.232.32.14, 172.232.32.11, 172.232.32.12", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-sea", "label": + "Seattle, WA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Bare Metal", "Block Storage Migrations", "Managed Databases"], "status": "ok", - "resolvers": {"ipv4": "66.228.42.5,96.126.106.5,50.116.53.5,50.116.58.5,50.116.61.5,50.116.62.5,66.175.211.5,97.107.133.4,207.192.69.4,207.192.69.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-west", "country": "uk", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "178.79.182.5,176.58.107.5,176.58.116.5,176.58.121.5,151.236.220.5,212.71.252.5,212.71.253.5,109.74.192.20,109.74.193.20,109.74.194.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-south", "country": "sg", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.232.160.19, 172.232.160.21, 172.232.160.17, 172.232.160.15, 172.232.160.18, + 172.232.160.8, 172.232.160.12, 172.232.160.11, 172.232.160.14, 172.232.160.16", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "br-gru", "label": + "Sao Paulo, BR", "country": "br", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.0.4, 172.233.0.9, 172.233.0.7, 172.233.0.12, 172.233.0.5, 172.233.0.13, + 172.233.0.10, 172.233.0.6, 172.233.0.8, 172.233.0.11", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "nl-ams", "label": "Amsterdam, NL", "country": + "nl", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.33.36, 172.233.33.38, + 172.233.33.35, 172.233.33.39, 172.233.33.34, 172.233.33.33, 172.233.33.31, 172.233.33.30, + 172.233.33.37, 172.233.33.32", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "se-sto", "label": "Stockholm, SE", "country": "se", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.128.24, 172.232.128.26, 172.232.128.20, 172.232.128.22, + 172.232.128.25, 172.232.128.19, 172.232.128.23, 172.232.128.18, 172.232.128.21, + 172.232.128.27", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "es-mad", "label": "Madrid, ES", "country": "es", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21, 172.233.111.25, + 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16, 172.233.111.18, + 172.233.111.9", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", + "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", + "resolvers": {"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, + 172.232.96.25, 172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "jp-osa", "label": + "Osaka, JP", "country": "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.11.5,139.162.13.5,139.162.14.5,139.162.15.5,139.162.16.5,139.162.21.5,139.162.27.5,103.3.60.18,103.3.60.19,103.3.60.20", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "eu-central", "country": "de", "capabilities": ["Linodes", "NodeBalancers", + "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46, + 172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "it-mil", "label": + "Milan, IT", "country": "it", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.192.19, 172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, + 172.232.192.21, 172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": + "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "id-cgk", "label": + "Jakarta, ID", "country": "id", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.232.224.23, 172.232.224.32, 172.232.224.26, 172.232.224.27, 172.232.224.21, + 172.232.224.24, 172.232.224.22, 172.232.224.20, 172.232.224.31, 172.232.224.28", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-lax", "label": + "Los Angeles, CA", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": + "172.233.128.45, 172.233.128.38, 172.233.128.53, 172.233.128.37, 172.233.128.34, + 172.233.128.36, 172.233.128.33, 172.233.128.39, 172.233.128.43, 172.233.128.44", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", + "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "72.14.179.5, 72.14.188.5, 173.255.199.5, 66.228.53.5, 96.126.122.5, + 96.126.124.5, 96.126.127.5, 198.58.107.5, 198.58.111.5, 23.239.24.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-west", "label": "Fremont, CA", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, + 173.255.212.5, 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, + 74.207.242.5", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-southeast", "label": "Atlanta, GA", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "74.207.231.5, 173.230.128.5, 173.230.129.5, 173.230.136.5, 173.230.140.5, + 66.228.59.5, 66.228.62.5, 50.116.35.5, 50.116.41.5, 23.239.18.5", "ipv6": "1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-east", "label": + "Newark, NJ", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", - "Vlans", "Block Storage Migrations", "Managed Databases"], "status": "ok", "resolvers": - {"ipv4": "139.162.130.5,139.162.131.5,139.162.132.5,139.162.133.5,139.162.134.5,139.162.135.5,139.162.136.5,139.162.137.5,139.162.138.5,139.162.139.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}, - {"id": "ap-northeast", "country": "jp", "capabilities": ["Linodes", "NodeBalancers", - "Block Storage", "Kubernetes", "Cloud Firewall", "Block Storage Migrations", - "Managed Databases"], "status": "ok", "resolvers": {"ipv4": "139.162.66.5,139.162.67.5,139.162.68.5,139.162.69.5,139.162.70.5,139.162.71.5,139.162.72.5,139.162.73.5,139.162.74.5,139.162.75.5", - "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}}], - "page": 1, "pages": 1, "results": 11}' + "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], "status": + "ok", "resolvers": {"ipv4": "66.228.42.5, 96.126.106.5, 50.116.53.5, 50.116.58.5, + 50.116.61.5, 50.116.62.5, 66.175.211.5, 97.107.133.4, 207.192.69.4, 207.192.69.5", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-west", "label": "London, UK", "country": "gb", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", "Metadata"], + "status": "ok", "resolvers": {"ipv4": "178.79.182.5, 176.58.107.5, 176.58.116.5, + 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, 109.74.192.20, 109.74.193.20, + 109.74.194.20", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-south", "label": "Singapore, SG", "country": + "sg", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.11.5, 139.162.13.5, 139.162.14.5, 139.162.15.5, 139.162.16.5, + 139.162.21.5, 139.162.27.5, 103.3.60.18, 103.3.60.19, 103.3.60.20", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "eu-central", "label": "Frankfurt, DE", "country": "de", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU + Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata"], "status": "ok", "resolvers": {"ipv4": "139.162.130.5, + 139.162.131.5, 139.162.132.5, 139.162.133.5, 139.162.134.5, 139.162.135.5, 139.162.136.5, + 139.162.137.5, 139.162.138.5, 139.162.139.5", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "ap-northeast", + "label": "Tokyo, JP", "country": "jp", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata"], "status": "ok", "resolvers": + {"ipv4": "139.162.66.5, 139.162.67.5, 139.162.68.5, 139.162.69.5, 139.162.70.5, + 139.162.71.5, 139.162.72.5, 139.162.73.5, 139.162.74.5, 139.162.75.5", "ipv6": + "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -76,19 +283,23 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=900 - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:50 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: - Authorization, X-Filter - Authorization, X-Filter + - Accept-Encoding X-Accepted-Oauth-Scopes: - '*' X-Content-Type-Options: @@ -99,14 +310,14 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-y652lup03ao2","booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-9ry433z3jee3","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -118,14 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 39426831, "label": "go-test-ins-wo-disk-y652lup03ao2", "group": + body: '{"id": 61169669, "label": "go-test-ins-wo-disk-9ry433z3jee3", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["194.195.113.106"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.85"], "ipv6": "1234::5678/128", "image": null, "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": - false, "schedule": {"day": null, "window": null}, "last_successful": null}, - "hypervisor": "kvm", "watchdog_enabled": true, "tags": []}' + true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": + null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": + "aeb2357ce09e1cb483d94ee0d025f3b254c93dfc", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -138,15 +351,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "638" + - "785" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:50 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -168,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-7w3q04vfcr33","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-0q81y862eien","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -177,10 +394,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426831/configs + url: https://api.linode.com/v4beta/linode/instances/61169669/configs method: POST response: - body: '{"id": 41972311, "label": "go-test-conf-7w3q04vfcr33", "helpers": {"updatedb_disabled": + body: '{"id": 64385522, "label": "go-test-conf-0q81y862eien", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -199,15 +416,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "539" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:51 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -222,7 +443,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -238,19 +459,20 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426831/ips + url: https://api.linode.com/v4beta/linode/instances/61169669/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "194.195.113.106", "gateway": "194.195.113.1", + body: '{"ipv4": {"public": [{"address": "172.105.55.85", "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "194-195-113-106.ip.linodeusercontent.com", "linode_id": 39426831, "region": - "ap-west"}], "private": [], "shared": [], "reserved": []}, "ipv6": {"slaac": - {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": - "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": - 39426831, "region": "ap-west", "public": true}, "link_local": {"address": "1234::5678", + "rdns": "172-105-55-85.ip.linodeusercontent.com", "linode_id": 61169669, "region": + "ap-west", "vpc_nat_1_1": null}], "private": [], "shared": [], "reserved": [], + "vpc": []}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, - "type": "ipv6", "rdns": null, "linode_id": 39426831, "region": "ap-west", "public": - false}, "global": []}}' + "type": "ipv6", "rdns": null, "linode_id": 61169669, "region": "ap-west", "public": + true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", + "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": + null, "linode_id": 61169669, "region": "ap-west", "public": false}, "global": + []}}' headers: Access-Control-Allow-Credentials: - "true" @@ -263,16 +485,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=0, s-maxage=0, no-cache, no-store - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "770" + - "797" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:51 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -288,14 +513,14 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"rdns":"194-195-113-106.ip.linodeusercontent.com"}' + body: '{"rdns":"172-105-55-85.ip.linodeusercontent.com"}' form: {} headers: Accept: @@ -304,12 +529,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/networking/ips/194.195.113.106 + url: https://api.linode.com/v4beta/networking/ips/172.105.55.85 method: PUT response: - body: '{"address": "194.195.113.106", "gateway": "194.195.113.1", "subnet_mask": - "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "194-195-113-106.ip.linodeusercontent.com", - "linode_id": 39426831, "region": "ap-west"}' + body: '{"address": "172.105.55.85", "gateway": "172.105.55.1", "subnet_mask": + "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-105-55-85.ip.linodeusercontent.com", + "linode_id": 61169669, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -322,15 +547,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - - "232" + - "248" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:51 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -345,7 +574,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK @@ -361,7 +590,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/39426831 + url: https://api.linode.com/v4beta/linode/instances/61169669 method: DELETE response: body: '{}' @@ -377,15 +606,19 @@ interactions: Access-Control-Expose-Headers: - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status Cache-Control: - - private, max-age=60, s-maxage=60 + - max-age=0, no-cache, no-store + Connection: + - keep-alive Content-Length: - "2" Content-Security-Policy: - default-src 'none' Content-Type: - application/json - Server: - - nginx + Expires: + - Mon, 08 Jul 2024 13:31:51 GMT + Pragma: + - no-cache Strict-Transport-Security: - max-age=31536000 Vary: @@ -400,7 +633,7 @@ interactions: X-Oauth-Scopes: - '*' X-Ratelimit-Limit: - - "800" + - "400" X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/test/integration/fixtures/TestIPAddresses_Instance_Get.yaml b/test/integration/fixtures/TestIPAddresses_Instance_Get.yaml index 756cce0be..95e81b6d1 100644 --- a/test/integration/fixtures/TestIPAddresses_Instance_Get.yaml +++ b/test/integration/fixtures/TestIPAddresses_Instance_Get.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:15 GMT + - Mon, 08 Jul 2024 13:31:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"us-iad","type":"g6-nanode-1","label":"go-test-ins-wo-disk-8e24nuw9g3j6","firewall_id":501396,"booted":false}' + body: '{"region":"us-iad","type":"g6-nanode-1","label":"go-test-ins-wo-disk-j10w55l3g4bd","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542160, "label": "go-test-ins-wo-disk-8e24nuw9g3j6", "group": + body: '{"id": 61169668, "label": "go-test-ins-wo-disk-j10w55l3g4bd", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.233.197.212"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["139.144.200.100"], "ipv6": "1234::5678/128", "image": null, "region": "us-iad", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "b1b4cb30bc4445a35d2f39bb1dca1785b9ead7a7", "has_user_data": false, "placement_group": - null}' + "c449e57db5421591d2be28edec5fb22d45255980", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "762" + - "786" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:15 GMT + - Mon, 08 Jul 2024 13:31:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -372,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-9h75z6i3ms1d","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-k344ggdc1p92","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -381,10 +394,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542160/configs + url: https://api.linode.com/v4beta/linode/instances/61169668/configs method: POST response: - body: '{"id": 62728772, "label": "go-test-conf-9h75z6i3ms1d", "helpers": {"updatedb_disabled": + body: '{"id": 64385520, "label": "go-test-conf-k344ggdc1p92", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -413,7 +426,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:15 GMT + - Mon, 08 Jul 2024 13:31:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -428,10 +441,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -440,7 +450,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-vpc-1717176435853958000","region":"us-iad","subnets":[{"label":"linodego-vpc-test-1717176435854038000","ipv4":"192.168.0.0/25"}]}' + body: '{"label":"go-test-vpc-1720445509109028000","region":"us-iad","subnets":[{"label":"linodego-vpc-test-1720445509109203000","ipv4":"192.168.0.0/25"}]}' form: {} headers: Accept: @@ -452,8 +462,8 @@ interactions: url: https://api.linode.com/v4beta/vpcs method: POST response: - body: '{"id": 64429, "label": "go-test-vpc-1717176435853958000", "description": - "", "region": "us-iad", "subnets": [{"id": 62988, "label": "linodego-vpc-test-1717176435854038000", + body: '{"id": 73331, "label": "go-test-vpc-1720445509109028000", "description": + "", "region": "us-iad", "subnets": [{"id": 71303, "label": "linodego-vpc-test-1720445509109203000", "ipv4": "192.168.0.0/25", "ipv6": null, "linodes": [], "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05"}], "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05"}' @@ -479,7 +489,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:16 GMT + - Mon, 08 Jul 2024 13:31:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -494,10 +504,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -506,7 +513,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-9h75z6i3ms1d","comments":"","devices":{},"helpers":{"updatedb_disabled":true,"distro":true,"modules_dep":true,"network":true,"devtmpfs_automount":true},"interfaces":[{"purpose":"public"},{"label":"testvlan","purpose":"vlan"},{"purpose":"vpc","subnet_id":62988,"ipv4":{"nat_1_1":"any"}}],"memory_limit":0,"kernel":"linode/latest-64bit","init_rd":null,"root_device":"/dev/sda","run_level":"default","virt_mode":"paravirt"}' + body: '{"label":"go-test-conf-k344ggdc1p92","comments":"","devices":{},"helpers":{"updatedb_disabled":true,"distro":true,"modules_dep":true,"network":true,"devtmpfs_automount":true},"interfaces":[{"purpose":"public"},{"label":"testvlan","purpose":"vlan"},{"purpose":"vpc","subnet_id":71303,"ipv4":{"nat_1_1":"any"}}],"memory_limit":0,"kernel":"linode/latest-64bit","init_rd":null,"root_device":"/dev/sda","run_level":"default","virt_mode":"paravirt"}' form: {} headers: Accept: @@ -515,23 +522,23 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542160/configs/62728772 + url: https://api.linode.com/v4beta/linode/instances/61169668/configs/64385520 method: PUT response: - body: '{"id": 62728772, "label": "go-test-conf-9h75z6i3ms1d", "helpers": {"updatedb_disabled": + body: '{"id": 64385520, "label": "go-test-conf-k344ggdc1p92", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", "devices": {"sda": null, "sdb": null, "sdc": null, "sdd": null, "sde": null, "sdf": null, "sdg": null, "sdh": null}, "initrd": null, "run_level": "default", - "virt_mode": "paravirt", "interfaces": [{"id": 1598286, "purpose": "public", + "virt_mode": "paravirt", "interfaces": [{"id": 1921831, "purpose": "public", "primary": false, "active": false, "ipam_address": null, "label": null, "vpc_id": null, "subnet_id": null, "ipv4": null, "ipv6": null, "ip_ranges": null}, {"id": - 1598287, "purpose": "vlan", "primary": false, "active": false, "ipam_address": + 1921832, "purpose": "vlan", "primary": false, "active": false, "ipam_address": "", "label": "testvlan", "vpc_id": null, "subnet_id": null, "ipv4": null, "ipv6": - null, "ip_ranges": null}, {"id": 1598288, "purpose": "vpc", "primary": false, - "active": false, "ipam_address": null, "label": null, "vpc_id": 64429, "subnet_id": - 62988, "ipv4": {"vpc": "192.168.0.2", "nat_1_1": "172.233.197.212"}, "ipv6": + null, "ip_ranges": null}, {"id": 1921833, "purpose": "vpc", "primary": false, + "active": false, "ipam_address": null, "label": null, "vpc_id": 73331, "subnet_id": + 71303, "ipv4": {"vpc": "192.168.0.2", "nat_1_1": "139.144.200.100"}, "ipv6": null, "ip_ranges": []}]}' headers: Access-Control-Allow-Credentials: @@ -553,7 +560,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:16 GMT + - Mon, 08 Jul 2024 13:31:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -569,10 +576,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -590,23 +594,23 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542160/ips + url: https://api.linode.com/v4beta/linode/instances/61169668/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "172.233.197.212", "gateway": "172.233.197.1", + body: '{"ipv4": {"public": [{"address": "139.144.200.100", "gateway": "139.144.200.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "172-233-197-212.ip.linodeusercontent.com", "linode_id": 59542160, "region": - "us-iad", "vpc_nat_1_1": {"vpc_id": 64429, "subnet_id": 62988, "address": "192.168.0.2"}}], + "rdns": "139-144-200-100.ip.linodeusercontent.com", "linode_id": 61169668, "region": + "us-iad", "vpc_nat_1_1": {"vpc_id": 73331, "subnet_id": 71303, "address": "192.168.0.2"}}], "private": [], "shared": [], "reserved": [], "vpc": [{"address": "192.168.0.2", - "address_range": null, "vpc_id": 64429, "subnet_id": 62988, "region": "us-iad", - "linode_id": 59542160, "config_id": 62728772, "interface_id": 1598288, "active": - false, "nat_1_1": "172.233.197.212", "gateway": "192.168.0.1", "prefix": 25, + "address_range": null, "vpc_id": 73331, "subnet_id": 71303, "region": "us-iad", + "linode_id": 61169668, "config_id": 64385520, "interface_id": 1921833, "active": + false, "nat_1_1": "139.144.200.100", "gateway": "192.168.0.1", "prefix": 25, "subnet_mask": "255.255.255.128"}]}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, - "type": "ipv6", "rdns": null, "linode_id": 59542160, "region": "us-iad", "public": + "type": "ipv6", "rdns": null, "linode_id": 61169668, "region": "us-iad", "public": true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": - null, "linode_id": 59542160, "region": "us-iad", "public": false}, "global": + null, "linode_id": 61169668, "region": "us-iad", "public": false}, "global": []}}' headers: Access-Control-Allow-Credentials: @@ -628,7 +632,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:16 GMT + - Mon, 08 Jul 2024 13:31:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -645,10 +649,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -666,7 +667,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542160 + url: https://api.linode.com/v4beta/linode/instances/61169668 method: DELETE response: body: '{}' @@ -692,7 +693,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:17 GMT + - Mon, 08 Jul 2024 13:31:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -707,10 +708,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -728,7 +726,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/vpcs/64429 + url: https://api.linode.com/v4beta/vpcs/73331 method: DELETE response: body: '{}' @@ -754,7 +752,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:17 GMT + - Mon, 08 Jul 2024 13:31:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -769,10 +767,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestIPAddresses_List.yaml b/test/integration/fixtures/TestIPAddresses_List.yaml index a31c8c458..b8dae0682 100644 --- a/test/integration/fixtures/TestIPAddresses_List.yaml +++ b/test/integration/fixtures/TestIPAddresses_List.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:13 GMT + - Mon, 08 Jul 2024 13:31:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-165nov18za8g","firewall_id":501396,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-wo-disk-ki22f0zzd018","firewall_id":640265,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542159, "label": "go-test-ins-wo-disk-165nov18za8g", "group": + body: '{"id": 61169662, "label": "go-test-ins-wo-disk-ki22f0zzd018", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["45.79.123.52"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.49"], "ipv6": "1234::5678/128", "image": null, "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "6c894953633c462841b5472b8531a0bcef51c1fa", "has_user_data": false, "placement_group": - null}' + "8bb24924c0b481c3ae3a41bf5819194b366c512d", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "760" + - "785" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:13 GMT + - Mon, 08 Jul 2024 13:31:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -372,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-conf-bn90cvh4722x","devices":{},"interfaces":null}' + body: '{"label":"go-test-conf-56l6ynyci277","devices":{},"interfaces":null}' form: {} headers: Accept: @@ -381,10 +394,10 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542159/configs + url: https://api.linode.com/v4beta/linode/instances/61169662/configs method: POST response: - body: '{"id": 62728771, "label": "go-test-conf-bn90cvh4722x", "helpers": {"updatedb_disabled": + body: '{"id": 64385517, "label": "go-test-conf-56l6ynyci277", "helpers": {"updatedb_disabled": true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount": true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda", @@ -413,7 +426,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:14 GMT + - Mon, 08 Jul 2024 13:31:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -428,10 +441,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -450,28 +460,22 @@ interactions: User-Agent: - linodego/dev https://github.com/linode/linodego X-Filter: - - '{"linode_id":59542159}' - url: https://api.linode.com/v4beta/networking/ips + - '{"linode_id":61169662}' + url: https://api.linode.com/v4beta/networking/ips?page=1 method: GET response: - body: '{"page": 1, "pages": 1, "results": 6, "data": [{"address": "170.187.249.159", - "gateway": "170.187.249.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": - "ipv4", "public": true, "rdns": "170-187-249-159.ip.linodeusercontent.com", - "linode_id": 59516630, "region": "ap-west", "vpc_nat_1_1": null}, {"address": - "192.46.210.59", "gateway": "192.46.210.1", "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": true, "rdns": "192-46-210-59.ip.linodeusercontent.com", - "linode_id": 59516929, "region": "ap-west", "vpc_nat_1_1": null}, {"address": - "45.79.123.52", "gateway": "45.79.123.1", "subnet_mask": "255.255.255.0", "prefix": - 24, "type": "ipv4", "public": true, "rdns": "45-79-123-52.ip.linodeusercontent.com", - "linode_id": 59542159, "region": "ap-west", "vpc_nat_1_1": null}, {"address": - "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", - "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": 59516630, "region": - "ap-west", "public": true}, {"address": "1234::5678", "gateway": - "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", - "rdns": null, "linode_id": 59516929, "region": "ap-west", "public": true}, {"address": - "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", - "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": 59542159, "region": - "ap-west", "public": true}]}' + body: '{"page": 1, "pages": 1, "results": 4, "data": [{"address": "172.232.29.152", + "gateway": "172.232.29.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": + "ipv4", "public": true, "rdns": "172-232-29-152.ip.linodeusercontent.com", "linode_id": + 61069178, "region": "us-ord", "vpc_nat_1_1": null}, {"address": "172.105.55.49", + "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": + "ipv4", "public": true, "rdns": "172-105-55-49.ip.linodeusercontent.com", "linode_id": + 61169662, "region": "ap-west", "vpc_nat_1_1": null}, {"address": "1234::5678", + "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, + "type": "ipv6", "rdns": null, "linode_id": 61069178, "region": "us-ord", "public": + true}, {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": + "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": + 61169662, "region": "ap-west", "public": true}]}' headers: Access-Control-Allow-Credentials: - "true" @@ -492,7 +496,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:14 GMT + - Mon, 08 Jul 2024 13:31:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -509,10 +513,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -530,27 +531,21 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/networking/ips?skip_ipv6_rdns=true + url: https://api.linode.com/v4beta/networking/ips?page=1&skip_ipv6_rdns=true method: GET response: - body: '{"page": 1, "pages": 1, "results": 6, "data": [{"address": "170.187.249.159", - "gateway": "170.187.249.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": - "ipv4", "public": true, "rdns": "170-187-249-159.ip.linodeusercontent.com", - "linode_id": 59516630, "region": "ap-west", "vpc_nat_1_1": null}, {"address": - "192.46.210.59", "gateway": "192.46.210.1", "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": true, "rdns": "192-46-210-59.ip.linodeusercontent.com", - "linode_id": 59516929, "region": "ap-west", "vpc_nat_1_1": null}, {"address": - "45.79.123.52", "gateway": "45.79.123.1", "subnet_mask": "255.255.255.0", "prefix": - 24, "type": "ipv4", "public": true, "rdns": "45-79-123-52.ip.linodeusercontent.com", - "linode_id": 59542159, "region": "ap-west", "vpc_nat_1_1": null}, {"address": - "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", - "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": 59516630, "region": - "ap-west", "public": true}, {"address": "1234::5678", "gateway": - "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", - "rdns": null, "linode_id": 59516929, "region": "ap-west", "public": true}, {"address": - "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", - "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": 59542159, "region": - "ap-west", "public": true}]}' + body: '{"page": 1, "pages": 1, "results": 4, "data": [{"address": "172.232.29.152", + "gateway": "172.232.29.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": + "ipv4", "public": true, "rdns": "172-232-29-152.ip.linodeusercontent.com", "linode_id": + 61069178, "region": "us-ord", "vpc_nat_1_1": null}, {"address": "172.105.55.49", + "gateway": "172.105.55.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": + "ipv4", "public": true, "rdns": "172-105-55-49.ip.linodeusercontent.com", "linode_id": + 61169662, "region": "ap-west", "vpc_nat_1_1": null}, {"address": "1234::5678", + "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, + "type": "ipv6", "rdns": null, "linode_id": 61069178, "region": "us-ord", "public": + true}, {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": + "1234::5678", "prefix": 64, "type": "ipv6", "rdns": null, "linode_id": + 61169662, "region": "ap-west", "public": true}]}' headers: Access-Control-Allow-Credentials: - "true" @@ -571,7 +566,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:14 GMT + - Mon, 08 Jul 2024 13:31:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,10 +583,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -609,7 +601,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542159 + url: https://api.linode.com/v4beta/linode/instances/61169662 method: DELETE response: body: '{}' @@ -635,7 +627,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:14 GMT + - Mon, 08 Jul 2024 13:31:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -650,10 +642,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestIPv6Range_Instance_List.yaml b/test/integration/fixtures/TestIPv6Range_Instance_List.yaml index 954a9abda..7848f25e4 100644 --- a/test/integration/fixtures/TestIPv6Range_Instance_List.yaml +++ b/test/integration/fixtures/TestIPv6Range_Instance_List.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:48 GMT + - Mon, 08 Jul 2024 13:33:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"eu-west","type":"g6-nanode-1","label":"go-ins-test-range6","root_pass":"5^`2f\u003c(Tf7Dlx0SPy2!;2,h5o9q39;vp8EWjTpVnOU53E\u003cX7a3.Cd!]C8/j`?U,Y","image":"linode/debian9","firewall_id":501399,"booted":false}' + body: '{"region":"eu-west","type":"g6-nanode-1","label":"go-ins-test-range6","root_pass":"aFP+rk=1\u003e:\u003cH6-48=W\u003csKy0LlI!j#B8\u003e.31kbFQ?5R5Py4B\\DB]5V6|9imv2mdl9","image":"linode/debian9","firewall_id":640268,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542181, "label": "go-ins-test-range6", "group": "", "status": + body: '{"id": 61169744, "label": "go-ins-test-range6", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["212.71.248.74"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["213.168.249.46"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "eu-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "47e396d1c743aa4bca264182b67d1813bdb133fb", "has_user_data": false, "placement_group": - null}' + "b4745f785fb5e19531a542f1f9ea06fb6413782c", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "759" + - "784" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:49 GMT + - Mon, 08 Jul 2024 13:33:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -372,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"linode_id":59542181,"prefix_length":64}' + body: '{"linode_id":61169744,"prefix_length":64}' form: {} headers: Accept: @@ -407,7 +420,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:49 GMT + - Mon, 08 Jul 2024 13:33:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -445,7 +455,7 @@ interactions: - linodego/dev https://github.com/linode/linodego X-Filter: - '{"region":"eu-west"}' - url: https://api.linode.com/v4beta/networking/ipv6/ranges + url: https://api.linode.com/v4beta/networking/ipv6/ranges?page=1 method: GET response: body: '{"data": [{"range": "1234::5678", "prefix": 64, "region": "eu-west", @@ -473,7 +483,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:49 GMT + - Mon, 08 Jul 2024 13:33:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -489,10 +499,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -514,7 +521,7 @@ interactions: method: GET response: body: '{"range": "1234::5678", "prefix": 64, "region": "eu-west", "is_bgp": - false, "linodes": [59542181]}' + false, "linodes": [61169744]}' headers: Access-Control-Allow-Credentials: - "true" @@ -537,7 +544,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:49 GMT + - Mon, 08 Jul 2024 13:33:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -553,10 +560,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -600,7 +604,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:50 GMT + - Mon, 08 Jul 2024 13:33:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -615,10 +619,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -636,7 +637,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542181 + url: https://api.linode.com/v4beta/linode/instances/61169744 method: DELETE response: body: '{}' @@ -662,7 +663,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:50 GMT + - Mon, 08 Jul 2024 13:33:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -677,10 +678,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestIPv6Range_Share.yaml b/test/integration/fixtures/TestIPv6Range_Share.yaml index 046f09e89..5fe4501bf 100644 --- a/test/integration/fixtures/TestIPv6Range_Share.yaml +++ b/test/integration/fixtures/TestIPv6Range_Share.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:50 GMT + - Mon, 08 Jul 2024 13:33:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"eu-west","type":"g6-nanode-1","label":"go-ins-test-range6","root_pass":"2\u003c1pa}MSU+O66\u0026FCyrz7v2R5[D-GsL:(Db8.C2wTiC0R''/1u5`p2:-t7*x5m9+Xg","image":"linode/debian9","firewall_id":501399,"booted":false}' + body: '{"region":"eu-west","type":"g6-nanode-1","label":"go-ins-test-range6","root_pass":"9GD3}-Z*vz9ThI3\\:erL3Y^X2.+c414{`8FeUj8tI??E0B1,w7Ybp,P62rzP''jt.","image":"linode/debian9","firewall_id":640268,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542183, "label": "go-ins-test-range6", "group": "", "status": + body: '{"id": 61169746, "label": "go-ins-test-range6", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["212.71.250.32"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["80.85.85.44"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "eu-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "47e396d1c743aa4bca264182b67d1813bdb133fb", "has_user_data": false, "placement_group": - null}' + "b4745f785fb5e19531a542f1f9ea06fb6413782c", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "759" + - "781" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:51 GMT + - Mon, 08 Jul 2024 13:33:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -372,7 +385,7 @@ interactions: code: 200 duration: "" - request: - body: '{"linode_id":59542183,"prefix_length":64}' + body: '{"linode_id":61169746,"prefix_length":64}' form: {} headers: Accept: @@ -407,7 +420,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:51 GMT + - Mon, 08 Jul 2024 13:33:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -434,7 +444,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"eu-west","type":"g6-nanode-1","label":"go-ins-test-share6","root_pass":"-5I2gV.9?M{rZqJ0:8\u003c[37C|hDaPmRC1m5z/57r*\u0026BTw!gv*4L8ei+F?v`5Aw7Q5","image":"linode/debian9","firewall_id":501399,"booted":false}' + body: '{"region":"eu-west","type":"g6-nanode-1","label":"go-ins-test-share6","root_pass":"C\u0026j0RV#!4M+c?#439FxwYi|~hfRS\u003e8lr^59gqIo8b4BnN0]@?Vdl\u003c4;{V3V3F3D5","image":"linode/debian9","firewall_id":640268,"booted":false}' form: {} headers: Accept: @@ -446,16 +456,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542187, "label": "go-ins-test-share6", "group": "", "status": + body: '{"id": 61169747, "label": "go-ins-test-share6", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["212.71.250.77"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["80.85.85.56"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "eu-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "fc0dbbdc12e19337c0a68f97788fea2328eacd23", "has_user_data": false, "placement_group": - null}' + "f66e1e58ff4311b1b181dd4de942aed11c0319b6", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -472,13 +482,13 @@ interactions: Connection: - keep-alive Content-Length: - - "759" + - "781" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:52 GMT + - Mon, 08 Jul 2024 13:33:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -493,10 +503,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -505,7 +512,7 @@ interactions: code: 200 duration: "" - request: - body: '{"ips":["1234::5678"],"linode_id":59542183}' + body: '{"ips":["1234::5678"],"linode_id":61169746}' form: {} headers: Accept: @@ -540,7 +547,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:52 GMT + - Mon, 08 Jul 2024 13:33:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -555,10 +562,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -567,7 +571,7 @@ interactions: code: 200 duration: "" - request: - body: '{"ips":["1234::5678"],"linode_id":59542187}' + body: '{"ips":["1234::5678"],"linode_id":61169747}' form: {} headers: Accept: @@ -602,7 +606,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:52 GMT + - Mon, 08 Jul 2024 13:33:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -617,10 +621,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -638,19 +639,19 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542187/ips + url: https://api.linode.com/v4beta/linode/instances/61169747/ips method: GET response: - body: '{"ipv4": {"public": [{"address": "212.71.250.77", "gateway": "212.71.250.1", + body: '{"ipv4": {"public": [{"address": "80.85.85.56", "gateway": "80.85.85.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, - "rdns": "212-71-250-77.ip.linodeusercontent.com", "linode_id": 59542187, "region": + "rdns": "80-85-85-56.ip.linodeusercontent.com", "linode_id": 61169747, "region": "eu-west", "vpc_nat_1_1": null}], "private": [], "shared": [], "reserved": [], "vpc": []}, "ipv6": {"slaac": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, - "type": "ipv6", "rdns": null, "linode_id": 59542187, "region": "eu-west", "public": + "type": "ipv6", "rdns": null, "linode_id": 61169747, "region": "eu-west", "public": true}, "link_local": {"address": "1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64, "type": "ipv6", "rdns": - null, "linode_id": 59542187, "region": "eu-west", "public": false}, "global": + null, "linode_id": 61169747, "region": "eu-west", "public": false}, "global": [{"range": "1234::5678", "prefix": 64, "region": "eu-west", "route_target": null}]}}' headers: @@ -673,7 +674,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:53 GMT + - Mon, 08 Jul 2024 13:33:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -690,10 +691,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -711,7 +709,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542187 + url: https://api.linode.com/v4beta/linode/instances/61169747 method: DELETE response: body: '{}' @@ -737,7 +735,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:53 GMT + - Mon, 08 Jul 2024 13:33:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -752,10 +750,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -799,7 +794,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:53 GMT + - Mon, 08 Jul 2024 13:33:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -814,10 +809,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -835,7 +827,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542183 + url: https://api.linode.com/v4beta/linode/instances/61169746 method: DELETE response: body: '{}' @@ -861,7 +853,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:27:53 GMT + - Mon, 08 Jul 2024 13:33:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -876,10 +868,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerConfig_Create.yaml b/test/integration/fixtures/TestNodeBalancerConfig_Create.yaml index 95334d971..bb3f0ceea 100644 --- a/test/integration/fixtures/TestNodeBalancerConfig_Create.yaml +++ b/test/integration/fixtures/TestNodeBalancerConfig_Create.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:34 GMT + - Mon, 08 Jul 2024 13:41:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640290}' form: {} headers: Accept: @@ -313,11 +329,10 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694191, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-86-131.ip.linodeusercontent.com", "ipv4": "172.232.86.131", "ipv6": - "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, - "total": null}}' + body: '{"id": 767868, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-44-13.ip.linodeusercontent.com", "ipv4": "172.105.44.13", "ipv6": "1234::5678", + "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": + 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -334,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "336" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:35 GMT + - Mon, 08 Jul 2024 13:41:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694191/configs + url: https://api.linode.com/v4beta/nodebalancers/767868/configs method: POST response: - body: '{"id": 1134765, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266906, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694191, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767868, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:35 GMT + - Mon, 08 Jul 2024 13:41:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +452,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694191/configs/1134765 + url: https://api.linode.com/v4beta/nodebalancers/767868/configs/1266906 method: DELETE response: body: '{}' @@ -469,7 +478,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:35 GMT + - Mon, 08 Jul 2024 13:41:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +493,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -505,7 +511,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694191 + url: https://api.linode.com/v4beta/nodebalancers/767868 method: DELETE response: body: '{}' @@ -531,7 +537,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:35 GMT + - Mon, 08 Jul 2024 13:41:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -546,10 +552,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerConfig_Get.yaml b/test/integration/fixtures/TestNodeBalancerConfig_Get.yaml index 63e8cb85a..ecf9c4a63 100644 --- a/test/integration/fixtures/TestNodeBalancerConfig_Get.yaml +++ b/test/integration/fixtures/TestNodeBalancerConfig_Get.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:40 GMT + - Mon, 08 Jul 2024 13:41:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640290}' form: {} headers: Accept: @@ -313,11 +329,10 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694196, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-44-183.ip.linodeusercontent.com", "ipv4": "172.105.44.183", "ipv6": - "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, - "total": null}}' + body: '{"id": 767872, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-86-99.ip.linodeusercontent.com", "ipv4": "172.232.86.99", "ipv6": "1234::5678", + "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": + 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -334,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "336" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:40 GMT + - Mon, 08 Jul 2024 13:41:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694196/configs + url: https://api.linode.com/v4beta/nodebalancers/767872/configs method: POST response: - body: '{"id": 1134771, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266910, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694196, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767872, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:40 GMT + - Mon, 08 Jul 2024 13:41:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,14 +452,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694196/configs/1134771 + url: https://api.linode.com/v4beta/nodebalancers/767872/configs/1266910 method: GET response: - body: '{"id": 1134771, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266910, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694196, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767872, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -474,7 +483,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:41 GMT + - Mon, 08 Jul 2024 13:41:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -490,10 +499,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -511,7 +517,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694196/configs/1134771 + url: https://api.linode.com/v4beta/nodebalancers/767872/configs/1266910 method: DELETE response: body: '{}' @@ -537,7 +543,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:41 GMT + - Mon, 08 Jul 2024 13:41:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -552,10 +558,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -573,7 +576,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694196 + url: https://api.linode.com/v4beta/nodebalancers/767872 method: DELETE response: body: '{}' @@ -599,7 +602,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:41 GMT + - Mon, 08 Jul 2024 13:41:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -614,10 +617,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerConfig_Update.yaml b/test/integration/fixtures/TestNodeBalancerConfig_Update.yaml index 06c5db3f9..0669ff240 100644 --- a/test/integration/fixtures/TestNodeBalancerConfig_Update.yaml +++ b/test/integration/fixtures/TestNodeBalancerConfig_Update.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:35 GMT + - Mon, 08 Jul 2024 13:41:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640290}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694193, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-46-8.ip.linodeusercontent.com", "ipv4": "172.105.46.8", "ipv6": "1234::5678", + body: '{"id": 767869, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-44-87.ip.linodeusercontent.com", "ipv4": "172.105.44.87", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: @@ -333,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "332" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:36 GMT + - Mon, 08 Jul 2024 13:41:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -354,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -375,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694193/configs + url: https://api.linode.com/v4beta/nodebalancers/767869/configs method: POST response: - body: '{"id": 1134768, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266907, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694193, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767869, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -406,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:36 GMT + - Mon, 08 Jul 2024 13:41:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -421,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -442,14 +452,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694193/configs/1134768 + url: https://api.linode.com/v4beta/nodebalancers/767869/configs/1266907 method: PUT response: - body: '{"id": 1134768, "port": 8080, "protocol": "tcp", "algorithm": "leastconn", + body: '{"id": 1266907, "port": 8080, "protocol": "tcp", "algorithm": "leastconn", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "v2", "cipher_suite": "recommended", "nodebalancer_id": - 694193, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767869, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -473,7 +483,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:36 GMT + - Mon, 08 Jul 2024 13:41:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -509,7 +516,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694193/configs/1134768 + url: https://api.linode.com/v4beta/nodebalancers/767869/configs/1266907 method: DELETE response: body: '{}' @@ -535,7 +542,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:37 GMT + - Mon, 08 Jul 2024 13:41:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -550,10 +557,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -571,7 +575,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694193 + url: https://api.linode.com/v4beta/nodebalancers/767869 method: DELETE response: body: '{}' @@ -597,7 +601,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:37 GMT + - Mon, 08 Jul 2024 13:41:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -612,10 +616,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerConfigs_List.yaml b/test/integration/fixtures/TestNodeBalancerConfigs_List.yaml index 45cf0fe80..8a04c8110 100644 --- a/test/integration/fixtures/TestNodeBalancerConfigs_List.yaml +++ b/test/integration/fixtures/TestNodeBalancerConfigs_List.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:37 GMT + - Mon, 08 Jul 2024 13:41:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640290}' form: {} headers: Accept: @@ -313,11 +329,10 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694194, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-86-155.ip.linodeusercontent.com", "ipv4": "172.232.86.155", "ipv6": - "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, - "total": null}}' + body: '{"id": 767870, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-87-64.ip.linodeusercontent.com", "ipv4": "172.232.87.64", "ipv6": "1234::5678", + "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": + 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -334,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "336" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:38 GMT + - Mon, 08 Jul 2024 13:41:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694194/configs + url: https://api.linode.com/v4beta/nodebalancers/767870/configs method: POST response: - body: '{"id": 1134769, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266908, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694194, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767870, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:38 GMT + - Mon, 08 Jul 2024 13:41:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,14 +452,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694194/configs + url: https://api.linode.com/v4beta/nodebalancers/767870/configs?page=1 method: GET response: - body: '{"data": [{"id": 1134769, "port": 80, "protocol": "http", "algorithm": + body: '{"data": [{"id": 1266908, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694194, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767870, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}], "page": 1, "pages": 1, "results": 1}' headers: @@ -475,7 +484,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:38 GMT + - Mon, 08 Jul 2024 13:41:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -491,10 +500,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -512,7 +518,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694194/configs/1134769 + url: https://api.linode.com/v4beta/nodebalancers/767870/configs/1266908 method: DELETE response: body: '{}' @@ -538,7 +544,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:38 GMT + - Mon, 08 Jul 2024 13:41:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -553,10 +559,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -574,7 +577,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694194 + url: https://api.linode.com/v4beta/nodebalancers/767870 method: DELETE response: body: '{}' @@ -600,7 +603,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:39 GMT + - Mon, 08 Jul 2024 13:41:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -615,10 +618,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerConfigs_ListMultiplePages.yaml b/test/integration/fixtures/TestNodeBalancerConfigs_ListMultiplePages.yaml index 84346661e..afd958007 100644 --- a/test/integration/fixtures/TestNodeBalancerConfigs_ListMultiplePages.yaml +++ b/test/integration/fixtures/TestNodeBalancerConfigs_ListMultiplePages.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:39 GMT + - Mon, 08 Jul 2024 13:41:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640290}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694195, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-87-237.ip.linodeusercontent.com", "ipv4": "172.232.87.237", "ipv6": + body: '{"id": 767871, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-87-205.ip.linodeusercontent.com", "ipv4": "172.232.87.205", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -340,7 +356,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:39 GMT + - Mon, 08 Jul 2024 13:41:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +389,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694195/configs + url: https://api.linode.com/v4beta/nodebalancers/767871/configs method: POST response: - body: '{"id": 1134770, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266909, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694195, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767871, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +420,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:39 GMT + - Mon, 08 Jul 2024 13:41:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,14 +453,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694195/configs + url: https://api.linode.com/v4beta/nodebalancers/767871/configs?page=1 method: GET response: - body: '{"data": [{"id": 1134770, "port": 80, "protocol": "http", "algorithm": + body: '{"data": [{"id": 1266909, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694195, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767871, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}], "page": 1, "pages": 1, "results": 1}' headers: @@ -475,7 +485,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:39 GMT + - Mon, 08 Jul 2024 13:41:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -491,10 +501,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -512,7 +519,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694195/configs/1134770 + url: https://api.linode.com/v4beta/nodebalancers/767871/configs/1266909 method: DELETE response: body: '{}' @@ -538,7 +545,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:40 GMT + - Mon, 08 Jul 2024 13:41:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -553,10 +560,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -574,7 +578,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694195 + url: https://api.linode.com/v4beta/nodebalancers/767871 method: DELETE response: body: '{}' @@ -600,7 +604,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:40 GMT + - Mon, 08 Jul 2024 13:41:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -615,10 +619,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNode_Create.yaml b/test/integration/fixtures/TestNodeBalancerNode_Create.yaml index 9d2eeff68..4ecf11ec6 100644 --- a/test/integration/fixtures/TestNodeBalancerNode_Create.yaml +++ b/test/integration/fixtures/TestNodeBalancerNode_Create.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:15 GMT + - Mon, 08 Jul 2024 13:39:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640280}' form: {} headers: Accept: @@ -313,11 +329,10 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694185, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-87-150.ip.linodeusercontent.com", "ipv4": "172.232.87.150", "ipv6": - "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, - "total": null}}' + body: '{"id": 767855, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-86-10.ip.linodeusercontent.com", "ipv4": "172.232.86.10", "ipv6": "1234::5678", + "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": + 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -334,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "336" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:16 GMT + - Mon, 08 Jul 2024 13:39:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694185/configs + url: https://api.linode.com/v4beta/nodebalancers/767855/configs method: POST response: - body: '{"id": 1134759, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266884, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694185, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767855, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:16 GMT + - Mon, 08 Jul 2024 13:39:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +452,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694185/configs/1134759 + url: https://api.linode.com/v4beta/nodebalancers/767855/configs/1266884 method: DELETE response: body: '{}' @@ -469,7 +478,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:18 GMT + - Mon, 08 Jul 2024 13:39:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +493,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -505,7 +511,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694185 + url: https://api.linode.com/v4beta/nodebalancers/767855 method: DELETE response: body: '{}' @@ -531,7 +537,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:18 GMT + - Mon, 08 Jul 2024 13:39:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -546,10 +552,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNode_CreateInstance.yaml b/test/integration/fixtures/TestNodeBalancerNode_CreateInstance.yaml index 474ecd384..fdaeac524 100644 --- a/test/integration/fixtures/TestNodeBalancerNode_CreateInstance.yaml +++ b/test/integration/fixtures/TestNodeBalancerNode_CreateInstance.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:16 GMT + - Mon, 08 Jul 2024 13:39:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-waak1f35641a","root_pass":"$\u0026QLS''xyac*R$vfz=j1So$35iN95M852?CGT\u00268O4J#Y9|;(2[9hb5=$mA2ikNfE9","image":"linode/debian9","firewall_id":501400,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-53r917h8vbdg","root_pass":"sHT+=}1bnLY1eD''cr@RYT3}y12(cQV5Fz|2zw(jv(14a}I-Xq2P(i353A\u003e3!X01[","image":"linode/debian9","firewall_id":640280,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542208, "label": "go-test-ins-waak1f35641a", "group": "", "status": + body: '{"id": 61169916, "label": "go-test-ins-53r917h8vbdg", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["45.79.123.217"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.202"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "4ecff3e7ba293f448d05aad89062f4677f5065a3", "has_user_data": false, "placement_group": - null}' + "3cea0f3e7e25a8eb97340be86615d802453acd3a", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "765" + - "790" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:17 GMT + - Mon, 08 Jul 2024 13:39:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -381,11 +394,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542208/ips + url: https://api.linode.com/v4beta/linode/instances/61169916/ips method: POST response: - body: '{"address": "192.168.142.195", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59542208, + body: '{"address": "192.168.128.81", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61169916, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -403,13 +416,13 @@ interactions: Connection: - keep-alive Content-Length: - - "205" + - "204" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:17 GMT + - Mon, 08 Jul 2024 13:39:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -424,10 +437,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -436,7 +446,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.142.195:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' + body: '{"address":"192.168.128.81:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' form: {} headers: Accept: @@ -445,12 +455,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694185/configs/1134759/nodes + url: https://api.linode.com/v4beta/nodebalancers/767855/configs/1266884/nodes method: POST response: - body: '{"id": 2047158844, "address": "192.168.142.195:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134759, "nodebalancer_id": - 694185}' + body: '{"id": 2051557828, "address": "192.168.128.81:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266884, "nodebalancer_id": + 767855}' headers: Access-Control-Allow-Credentials: - "true" @@ -467,13 +477,13 @@ interactions: Connection: - keep-alive Content-Length: - - "184" + - "183" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:18 GMT + - Mon, 08 Jul 2024 13:39:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -509,7 +516,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694185/configs/1134759/nodes/2047158844 + url: https://api.linode.com/v4beta/nodebalancers/767855/configs/1266884/nodes/2051557828 method: DELETE response: body: '{}' @@ -535,7 +542,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:18 GMT + - Mon, 08 Jul 2024 13:39:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -550,10 +557,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -571,7 +575,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542208 + url: https://api.linode.com/v4beta/linode/instances/61169916 method: DELETE response: body: '{}' @@ -597,7 +601,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:19 GMT + - Mon, 08 Jul 2024 13:39:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -612,10 +616,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNode_Get.yaml b/test/integration/fixtures/TestNodeBalancerNode_Get.yaml index 1ef0d760f..c5098b15b 100644 --- a/test/integration/fixtures/TestNodeBalancerNode_Get.yaml +++ b/test/integration/fixtures/TestNodeBalancerNode_Get.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:28 GMT + - Mon, 08 Jul 2024 13:39:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640280}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694189, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-46-160.ip.linodeusercontent.com", "ipv4": "172.105.46.160", "ipv6": + body: '{"id": 767859, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-44-166.ip.linodeusercontent.com", "ipv4": "172.105.44.166", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -340,7 +356,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:28 GMT + - Mon, 08 Jul 2024 13:39:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +389,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694189/configs + url: https://api.linode.com/v4beta/nodebalancers/767859/configs method: POST response: - body: '{"id": 1134763, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266888, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694189, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767859, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +420,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:29 GMT + - Mon, 08 Jul 2024 13:39:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +453,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694189/configs/1134763 + url: https://api.linode.com/v4beta/nodebalancers/767859/configs/1266888 method: DELETE response: body: '{}' @@ -469,7 +479,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:31 GMT + - Mon, 08 Jul 2024 13:39:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +494,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -505,7 +512,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694189 + url: https://api.linode.com/v4beta/nodebalancers/767859 method: DELETE response: body: '{}' @@ -531,7 +538,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:31 GMT + - Mon, 08 Jul 2024 13:39:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -546,10 +553,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNode_GetInstance.yaml b/test/integration/fixtures/TestNodeBalancerNode_GetInstance.yaml index 5fe3460b0..5e960de4c 100644 --- a/test/integration/fixtures/TestNodeBalancerNode_GetInstance.yaml +++ b/test/integration/fixtures/TestNodeBalancerNode_GetInstance.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:29 GMT + - Mon, 08 Jul 2024 13:39:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-20qhs7rjz485","root_pass":"\\8.MePuVb!j7y12/`iDt12A|5-z3Z989V\u0026=9OtIY9![GhDZ\\6,Iq/\\7/cycm0BEu","image":"linode/debian9","firewall_id":501400,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-7atx65wn43h2","root_pass":"o3\u003c6ia''y.8tqWt+]\u003ce23;14m62PFR:V3l9,Q7^''D4f=7dpVwe\\N+RYI4Bm?QT2;B","image":"linode/debian9","firewall_id":640280,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542217, "label": "go-test-ins-20qhs7rjz485", "group": "", "status": + body: '{"id": 61169924, "label": "go-test-ins-7atx65wn43h2", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.105.62.85"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.252.120"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "4ecff3e7ba293f448d05aad89062f4677f5065a3", "has_user_data": false, "placement_group": - null}' + "3cea0f3e7e25a8eb97340be86615d802453acd3a", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "765" + - "791" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:30 GMT + - Mon, 08 Jul 2024 13:39:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -381,11 +394,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542217/ips + url: https://api.linode.com/v4beta/linode/instances/61169924/ips method: POST response: - body: '{"address": "192.168.141.78", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59542217, + body: '{"address": "192.168.129.137", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61169924, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -403,13 +416,13 @@ interactions: Connection: - keep-alive Content-Length: - - "204" + - "205" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:30 GMT + - Mon, 08 Jul 2024 13:39:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -424,10 +437,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -436,7 +446,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.141.78:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' + body: '{"address":"192.168.129.137:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' form: {} headers: Accept: @@ -445,12 +455,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694189/configs/1134763/nodes + url: https://api.linode.com/v4beta/nodebalancers/767859/configs/1266888/nodes method: POST response: - body: '{"id": 2047158852, "address": "192.168.141.78:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134763, "nodebalancer_id": - 694189}' + body: '{"id": 2051557835, "address": "192.168.129.137:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266888, "nodebalancer_id": + 767859}' headers: Access-Control-Allow-Credentials: - "true" @@ -467,13 +477,13 @@ interactions: Connection: - keep-alive Content-Length: - - "183" + - "184" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:30 GMT + - Mon, 08 Jul 2024 13:39:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -509,12 +516,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694189/configs/1134763/nodes/2047158852 + url: https://api.linode.com/v4beta/nodebalancers/767859/configs/1266888/nodes/2051557835 method: GET response: - body: '{"id": 2047158852, "address": "192.168.141.78:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134763, "nodebalancer_id": - 694189}' + body: '{"id": 2051557835, "address": "192.168.129.137:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266888, "nodebalancer_id": + 767859}' headers: Access-Control-Allow-Credentials: - "true" @@ -531,13 +538,13 @@ interactions: Connection: - keep-alive Content-Length: - - "183" + - "184" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:30 GMT + - Mon, 08 Jul 2024 13:39:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -553,10 +560,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -574,7 +578,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694189/configs/1134763/nodes/2047158852 + url: https://api.linode.com/v4beta/nodebalancers/767859/configs/1266888/nodes/2051557835 method: DELETE response: body: '{}' @@ -600,7 +604,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:30 GMT + - Mon, 08 Jul 2024 13:39:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -615,10 +619,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -636,7 +637,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542217 + url: https://api.linode.com/v4beta/linode/instances/61169924 method: DELETE response: body: '{}' @@ -662,7 +663,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:31 GMT + - Mon, 08 Jul 2024 13:39:20 GMT Pragma: - no-cache Strict-Transport-Security: @@ -677,10 +678,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNode_Update.yaml b/test/integration/fixtures/TestNodeBalancerNode_Update.yaml index 8d58223fd..3a070a2d6 100644 --- a/test/integration/fixtures/TestNodeBalancerNode_Update.yaml +++ b/test/integration/fixtures/TestNodeBalancerNode_Update.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:19 GMT + - Mon, 08 Jul 2024 13:39:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640280}' form: {} headers: Accept: @@ -313,11 +329,10 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694186, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-86-130.ip.linodeusercontent.com", "ipv4": "172.232.86.130", "ipv6": - "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, - "total": null}}' + body: '{"id": 767856, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-45-70.ip.linodeusercontent.com", "ipv4": "172.105.45.70", "ipv6": "1234::5678", + "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": + 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -334,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "336" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:19 GMT + - Mon, 08 Jul 2024 13:39:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694186/configs + url: https://api.linode.com/v4beta/nodebalancers/767856/configs method: POST response: - body: '{"id": 1134760, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266885, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694186, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767856, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:19 GMT + - Mon, 08 Jul 2024 13:39:09 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +452,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694186/configs/1134760 + url: https://api.linode.com/v4beta/nodebalancers/767856/configs/1266885 method: DELETE response: body: '{}' @@ -469,7 +478,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:21 GMT + - Mon, 08 Jul 2024 13:39:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +493,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -505,7 +511,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694186 + url: https://api.linode.com/v4beta/nodebalancers/767856 method: DELETE response: body: '{}' @@ -531,7 +537,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:21 GMT + - Mon, 08 Jul 2024 13:39:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -546,10 +552,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNode_UpdateInstance.yaml b/test/integration/fixtures/TestNodeBalancerNode_UpdateInstance.yaml index 72f344a29..ff372a5b5 100644 --- a/test/integration/fixtures/TestNodeBalancerNode_UpdateInstance.yaml +++ b/test/integration/fixtures/TestNodeBalancerNode_UpdateInstance.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:19 GMT + - Mon, 08 Jul 2024 13:39:09 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-tf36qat88h01","root_pass":"/X-v1/Enlf{*\u003cQ~cHihc83.}Q-1?89G62g4P,.uVs|107EOXRfaJCe95US;v$4t3","image":"linode/debian9","firewall_id":501400,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-08lggw81w1l0","root_pass":"v534D23]eUG;[VVC!vA205{`5dE1~:j\\yV$e1jbPt2S80w=orJ7HBF:1ji*c/*T`","image":"linode/debian9","firewall_id":640280,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542211, "label": "go-test-ins-tf36qat88h01", "group": "", "status": + body: '{"id": 61169919, "label": "go-test-ins-08lggw81w1l0", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["45.79.125.26"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.249"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "d33f497aa1cc27824ae1ad0b23fb07978a5f9ab8", "has_user_data": false, "placement_group": - null}' + "3cea0f3e7e25a8eb97340be86615d802453acd3a", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "764" + - "790" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:20 GMT + - Mon, 08 Jul 2024 13:39:09 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -381,11 +394,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542211/ips + url: https://api.linode.com/v4beta/linode/instances/61169919/ips method: POST response: - body: '{"address": "192.168.142.212", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59542211, + body: '{"address": "192.168.128.99", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61169919, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -403,13 +416,13 @@ interactions: Connection: - keep-alive Content-Length: - - "205" + - "204" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:20 GMT + - Mon, 08 Jul 2024 13:39:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -424,10 +437,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -436,7 +446,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.142.212:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' + body: '{"address":"192.168.128.99:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' form: {} headers: Accept: @@ -445,12 +455,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694186/configs/1134760/nodes + url: https://api.linode.com/v4beta/nodebalancers/767856/configs/1266885/nodes method: POST response: - body: '{"id": 2047158849, "address": "192.168.142.212:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134760, "nodebalancer_id": - 694186}' + body: '{"id": 2051557829, "address": "192.168.128.99:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266885, "nodebalancer_id": + 767856}' headers: Access-Control-Allow-Credentials: - "true" @@ -467,13 +477,13 @@ interactions: Connection: - keep-alive Content-Length: - - "184" + - "183" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:21 GMT + - Mon, 08 Jul 2024 13:39:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -509,12 +516,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694186/configs/1134760/nodes/2047158849 + url: https://api.linode.com/v4beta/nodebalancers/767856/configs/1266885/nodes/2051557829 method: PUT response: - body: '{"id": 2047158849, "address": "192.168.142.212:8080", "label": "go-node-test-def_r", - "status": "Unknown", "weight": 100, "mode": "drain", "config_id": 1134760, "nodebalancer_id": - 694186}' + body: '{"id": 2051557829, "address": "192.168.128.99:8080", "label": "go-node-test-def_r", + "status": "Unknown", "weight": 100, "mode": "drain", "config_id": 1266885, "nodebalancer_id": + 767856}' headers: Access-Control-Allow-Credentials: - "true" @@ -531,13 +538,13 @@ interactions: Connection: - keep-alive Content-Length: - - "186" + - "185" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:21 GMT + - Mon, 08 Jul 2024 13:39:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -552,10 +559,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -573,7 +577,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694186/configs/1134760/nodes/2047158849 + url: https://api.linode.com/v4beta/nodebalancers/767856/configs/1266885/nodes/2051557829 method: DELETE response: body: '{}' @@ -599,7 +603,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:21 GMT + - Mon, 08 Jul 2024 13:39:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -614,10 +618,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -635,7 +636,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542211 + url: https://api.linode.com/v4beta/linode/instances/61169919 method: DELETE response: body: '{}' @@ -661,7 +662,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:22 GMT + - Mon, 08 Jul 2024 13:39:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -676,10 +677,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNodes_List.yaml b/test/integration/fixtures/TestNodeBalancerNodes_List.yaml index 74ecbcb2e..70e9595fe 100644 --- a/test/integration/fixtures/TestNodeBalancerNodes_List.yaml +++ b/test/integration/fixtures/TestNodeBalancerNodes_List.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:22 GMT + - Mon, 08 Jul 2024 13:39:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640280}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694187, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-87-126.ip.linodeusercontent.com", "ipv4": "172.232.87.126", "ipv6": + body: '{"id": 767857, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-86-205.ip.linodeusercontent.com", "ipv4": "172.232.86.205", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -340,7 +356,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:22 GMT + - Mon, 08 Jul 2024 13:39:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +389,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694187/configs + url: https://api.linode.com/v4beta/nodebalancers/767857/configs method: POST response: - body: '{"id": 1134761, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266886, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694187, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767857, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +420,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:22 GMT + - Mon, 08 Jul 2024 13:39:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +453,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694187/configs/1134761 + url: https://api.linode.com/v4beta/nodebalancers/767857/configs/1266886 method: DELETE response: body: '{}' @@ -469,7 +479,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:24 GMT + - Mon, 08 Jul 2024 13:39:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +494,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -505,7 +512,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694187 + url: https://api.linode.com/v4beta/nodebalancers/767857 method: DELETE response: body: '{}' @@ -531,7 +538,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:24 GMT + - Mon, 08 Jul 2024 13:39:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -546,10 +553,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNodes_ListInstance.yaml b/test/integration/fixtures/TestNodeBalancerNodes_ListInstance.yaml index 6255dc734..b63221f3a 100644 --- a/test/integration/fixtures/TestNodeBalancerNodes_ListInstance.yaml +++ b/test/integration/fixtures/TestNodeBalancerNodes_ListInstance.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:22 GMT + - Mon, 08 Jul 2024 13:39:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-zdv082fn83u8","root_pass":"0ymO65X$5U10=bPW1i''1C1f1;E6dd3qAX7+rkzT+zkl4{$J!QZU-.|w3W{;1uZ^@","image":"linode/debian9","firewall_id":501400,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-6705lbw7w6ot","root_pass":"h\u003e1s@M3KZndEUHa;1{\\h3v^1*5(2\\J@E2eaWKeA4Bv6R{''D4.p\u00269W2vg+fpH0\u003e79","image":"linode/debian9","firewall_id":640280,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542212, "label": "go-test-ins-zdv082fn83u8", "group": "", "status": + body: '{"id": 61169922, "label": "go-test-ins-6705lbw7w6ot", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.105.62.50"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.25"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "0c685e2546a7fd35121dea21f706c8e55d0539ec", "has_user_data": false, "placement_group": - null}' + "3cea0f3e7e25a8eb97340be86615d802453acd3a", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "765" + - "789" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:23 GMT + - Mon, 08 Jul 2024 13:39:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -381,11 +394,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542212/ips + url: https://api.linode.com/v4beta/linode/instances/61169922/ips method: POST response: - body: '{"address": "192.168.142.216", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59542212, + body: '{"address": "192.168.128.109", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61169922, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -409,7 +422,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:23 GMT + - Mon, 08 Jul 2024 13:39:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -424,10 +437,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -436,7 +446,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.142.216:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' + body: '{"address":"192.168.128.109:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' form: {} headers: Accept: @@ -445,12 +455,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694187/configs/1134761/nodes + url: https://api.linode.com/v4beta/nodebalancers/767857/configs/1266886/nodes method: POST response: - body: '{"id": 2047158850, "address": "192.168.142.216:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134761, "nodebalancer_id": - 694187}' + body: '{"id": 2051557830, "address": "192.168.128.109:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266886, "nodebalancer_id": + 767857}' headers: Access-Control-Allow-Credentials: - "true" @@ -473,7 +483,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:24 GMT + - Mon, 08 Jul 2024 13:39:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -509,12 +516,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694187/configs/1134761/nodes + url: https://api.linode.com/v4beta/nodebalancers/767857/configs/1266886/nodes?page=1 method: GET response: - body: '{"data": [{"id": 2047158850, "address": "192.168.142.216:8080", "label": + body: '{"data": [{"id": 2051557830, "address": "192.168.128.109:8080", "label": "go-node-test-def", "status": "Unknown", "weight": 10, "mode": "accept", "config_id": - 1134761, "nodebalancer_id": 694187}], "page": 1, "pages": 1, "results": 1}' + 1266886, "nodebalancer_id": 767857}], "page": 1, "pages": 1, "results": 1}' headers: Access-Control-Allow-Credentials: - "true" @@ -537,7 +544,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:24 GMT + - Mon, 08 Jul 2024 13:39:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -553,10 +560,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -574,7 +578,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694187/configs/1134761/nodes/2047158850 + url: https://api.linode.com/v4beta/nodebalancers/767857/configs/1266886/nodes/2051557830 method: DELETE response: body: '{}' @@ -600,7 +604,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:24 GMT + - Mon, 08 Jul 2024 13:39:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -615,10 +619,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -636,7 +637,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542212 + url: https://api.linode.com/v4beta/linode/instances/61169922 method: DELETE response: body: '{}' @@ -662,7 +663,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:25 GMT + - Mon, 08 Jul 2024 13:39:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -677,10 +678,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePages.yaml b/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePages.yaml index 4405cb05a..8c773c2d4 100644 --- a/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePages.yaml +++ b/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePages.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:25 GMT + - Mon, 08 Jul 2024 13:39:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640280}' form: {} headers: Accept: @@ -313,10 +329,11 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694188, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-46-54.ip.linodeusercontent.com", "ipv4": "172.105.46.54", "ipv6": "1234::5678", - "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": - 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' + body: '{"id": 767858, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-46-101.ip.linodeusercontent.com", "ipv4": "172.105.46.101", "ipv6": + "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, + "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -333,13 +350,13 @@ interactions: Connection: - keep-alive Content-Length: - - "334" + - "336" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:25 GMT + - Mon, 08 Jul 2024 13:39:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -354,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -375,14 +389,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694188/configs + url: https://api.linode.com/v4beta/nodebalancers/767858/configs method: POST response: - body: '{"id": 1134762, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266887, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694188, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767858, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -406,7 +420,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:26 GMT + - Mon, 08 Jul 2024 13:39:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -421,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -442,7 +453,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694188/configs/1134762 + url: https://api.linode.com/v4beta/nodebalancers/767858/configs/1266887 method: DELETE response: body: '{}' @@ -468,7 +479,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:28 GMT + - Mon, 08 Jul 2024 13:39:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -483,10 +494,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -504,7 +512,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694188 + url: https://api.linode.com/v4beta/nodebalancers/767858 method: DELETE response: body: '{}' @@ -530,7 +538,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:28 GMT + - Mon, 08 Jul 2024 13:39:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -545,10 +553,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePagesInstance.yaml b/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePagesInstance.yaml index f04f6c5ab..d57864206 100644 --- a/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePagesInstance.yaml +++ b/test/integration/fixtures/TestNodeBalancerNodes_ListMultiplePagesInstance.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:26 GMT + - Mon, 08 Jul 2024 13:39:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-65m96z3v4ulg","root_pass":"z88NUG2z..y8\\\u003c?kF;20S=cZ!N37y\u003c34@AipaM8Zn~tRG2c(''`2pX/3xlP6M9Vr#","image":"linode/debian9","firewall_id":501400,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-1l13u34dj0tj","root_pass":"]|CCLVd0!1-[Xne1=?g93xnXi2n6+eDc)e}k{U380Yp1T;o#109PB''J7fWnLX8\\[","image":"linode/debian9","firewall_id":640280,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542213, "label": "go-test-ins-65m96z3v4ulg", "group": "", "status": + body: '{"id": 61169923, "label": "go-test-ins-1l13u34dj0tj", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.105.62.195"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.138"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "4ecff3e7ba293f448d05aad89062f4677f5065a3", "has_user_data": false, "placement_group": - null}' + "3cea0f3e7e25a8eb97340be86615d802453acd3a", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "766" + - "790" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:27 GMT + - Mon, 08 Jul 2024 13:39:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -381,11 +394,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542213/ips + url: https://api.linode.com/v4beta/linode/instances/61169923/ips method: POST response: - body: '{"address": "192.168.141.24", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59542213, + body: '{"address": "192.168.132.168", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61169923, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -403,13 +416,13 @@ interactions: Connection: - keep-alive Content-Length: - - "204" + - "205" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:27 GMT + - Mon, 08 Jul 2024 13:39:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -424,10 +437,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -436,7 +446,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.141.24:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' + body: '{"address":"192.168.132.168:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' form: {} headers: Accept: @@ -445,12 +455,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694188/configs/1134762/nodes + url: https://api.linode.com/v4beta/nodebalancers/767858/configs/1266887/nodes method: POST response: - body: '{"id": 2047158851, "address": "192.168.141.24:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134762, "nodebalancer_id": - 694188}' + body: '{"id": 2051557833, "address": "192.168.132.168:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266887, "nodebalancer_id": + 767858}' headers: Access-Control-Allow-Credentials: - "true" @@ -467,13 +477,13 @@ interactions: Connection: - keep-alive Content-Length: - - "183" + - "184" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:27 GMT + - Mon, 08 Jul 2024 13:39:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -509,12 +516,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694188/configs/1134762/nodes + url: https://api.linode.com/v4beta/nodebalancers/767858/configs/1266887/nodes?page=1 method: GET response: - body: '{"data": [{"id": 2047158851, "address": "192.168.141.24:8080", "label": + body: '{"data": [{"id": 2051557833, "address": "192.168.132.168:8080", "label": "go-node-test-def", "status": "Unknown", "weight": 10, "mode": "accept", "config_id": - 1134762, "nodebalancer_id": 694188}], "page": 1, "pages": 1, "results": 1}' + 1266887, "nodebalancer_id": 767858}], "page": 1, "pages": 1, "results": 1}' headers: Access-Control-Allow-Credentials: - "true" @@ -531,13 +538,13 @@ interactions: Connection: - keep-alive Content-Length: - - "232" + - "233" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:27 GMT + - Mon, 08 Jul 2024 13:39:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -553,10 +560,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -574,7 +578,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694188/configs/1134762/nodes/2047158851 + url: https://api.linode.com/v4beta/nodebalancers/767858/configs/1266887/nodes/2051557833 method: DELETE response: body: '{}' @@ -600,7 +604,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:27 GMT + - Mon, 08 Jul 2024 13:39:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -615,10 +619,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -636,7 +637,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542213 + url: https://api.linode.com/v4beta/linode/instances/61169923 method: DELETE response: body: '{}' @@ -662,7 +663,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:28 GMT + - Mon, 08 Jul 2024 13:39:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -677,10 +678,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancer_Create.yaml b/test/integration/fixtures/TestNodeBalancer_Create.yaml index 736bda341..d4e536b4b 100644 --- a/test/integration/fixtures/TestNodeBalancer_Create.yaml +++ b/test/integration/fixtures/TestNodeBalancer_Create.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:53 GMT + - Mon, 08 Jul 2024 13:37:27 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640276}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694199, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-87-69.ip.linodeusercontent.com", "ipv4": "172.232.87.69", "ipv6": "1234::5678", + body: '{"id": 767850, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-46-52.ip.linodeusercontent.com", "ipv4": "172.105.46.52", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: @@ -339,7 +355,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:53 GMT + - Mon, 08 Jul 2024 13:37:27 GMT Pragma: - no-cache Strict-Transport-Security: @@ -354,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -375,7 +388,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694199 + url: https://api.linode.com/v4beta/nodebalancers/767850 method: DELETE response: body: '{}' @@ -401,7 +414,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:54 GMT + - Mon, 08 Jul 2024 13:37:27 GMT Pragma: - no-cache Strict-Transport-Security: @@ -416,10 +429,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancer_Get.yaml b/test/integration/fixtures/TestNodeBalancer_Get.yaml index 838b78f1c..0e3032db2 100644 --- a/test/integration/fixtures/TestNodeBalancer_Get.yaml +++ b/test/integration/fixtures/TestNodeBalancer_Get.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:56 GMT + - Mon, 08 Jul 2024 13:35:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640272}' form: {} headers: Accept: @@ -313,10 +329,11 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694202, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-45-64.ip.linodeusercontent.com", "ipv4": "172.105.45.64", "ipv6": "1234::5678", - "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": - 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' + body: '{"id": 767847, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-86-202.ip.linodeusercontent.com", "ipv4": "172.232.86.202", "ipv6": + "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, + "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -333,13 +350,13 @@ interactions: Connection: - keep-alive Content-Length: - - "334" + - "336" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:56 GMT + - Mon, 08 Jul 2024 13:35:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -354,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -375,13 +389,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694202 + url: https://api.linode.com/v4beta/nodebalancers/767847 method: GET response: - body: '{"id": 694202, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-45-64.ip.linodeusercontent.com", "ipv4": "172.105.45.64", "ipv6": "1234::5678", - "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": - 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' + body: '{"id": 767847, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-86-202.ip.linodeusercontent.com", "ipv4": "172.232.86.202", "ipv6": + "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, + "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -398,13 +413,13 @@ interactions: Connection: - keep-alive Content-Length: - - "334" + - "336" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:56 GMT + - Mon, 08 Jul 2024 13:35:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -420,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -441,7 +453,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694202 + url: https://api.linode.com/v4beta/nodebalancers/767847 method: DELETE response: body: '{}' @@ -467,7 +479,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:57 GMT + - Mon, 08 Jul 2024 13:35:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -482,10 +494,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancer_Rebuild.yaml b/test/integration/fixtures/TestNodeBalancer_Rebuild.yaml index d5042b628..b8bea1d8d 100644 --- a/test/integration/fixtures/TestNodeBalancer_Rebuild.yaml +++ b/test/integration/fixtures/TestNodeBalancer_Rebuild.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:31 GMT + - Mon, 08 Jul 2024 13:35:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640272}' form: {} headers: Accept: @@ -313,11 +329,10 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694190, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-44-250.ip.linodeusercontent.com", "ipv4": "172.105.44.250", "ipv6": - "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, - "total": null}}' + body: '{"id": 767843, "label": "go-test-def", "region": "ap-west", "hostname": + "172-232-86-78.ip.linodeusercontent.com", "ipv4": "172.232.86.78", "ipv6": "1234::5678", + "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": + 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' headers: Access-Control-Allow-Credentials: - "true" @@ -334,13 +349,13 @@ interactions: Connection: - keep-alive Content-Length: - - "336" + - "334" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:31 GMT + - Mon, 08 Jul 2024 13:35:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +370,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,14 +388,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190/configs + url: https://api.linode.com/v4beta/nodebalancers/767843/configs method: POST response: - body: '{"id": 1134764, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266875, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694190, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767843, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 0}}' headers: Access-Control-Allow-Credentials: @@ -407,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:32 GMT + - Mon, 08 Jul 2024 13:35:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +452,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190/configs/1134764 + url: https://api.linode.com/v4beta/nodebalancers/767843/configs/1266875 method: DELETE response: body: '{}' @@ -469,7 +478,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:34 GMT + - Mon, 08 Jul 2024 13:35:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +493,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -505,7 +511,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190 + url: https://api.linode.com/v4beta/nodebalancers/767843 method: DELETE response: body: '{}' @@ -531,7 +537,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:34 GMT + - Mon, 08 Jul 2024 13:35:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -546,10 +552,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancer_RebuildInstance.yaml b/test/integration/fixtures/TestNodeBalancer_RebuildInstance.yaml index 1738ca61c..d9d799c84 100644 --- a/test/integration/fixtures/TestNodeBalancer_RebuildInstance.yaml +++ b/test/integration/fixtures/TestNodeBalancer_RebuildInstance.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:32 GMT + - Mon, 08 Jul 2024 13:35:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-6su1e549uoo7","root_pass":";5WkP6I4mz.]0=jc\u003cN[HxI0uE9\u003c{d6},EEy2/z3Ivh0Ljl5y8I\u002664Y,4!5v=WX,N","image":"linode/debian9","firewall_id":501400,"booted":false}' + body: '{"region":"ap-west","type":"g6-nanode-1","label":"go-test-ins-8xyko16y92t8","root_pass":"Al/g)2dT:2?:;0v!M?nnb9(JIPa\\12p13DA`\u003c-w5PNg6Y3uTxf27H1:1#A6{wKvW","image":"linode/debian9","firewall_id":640272,"booted":false}' form: {} headers: Accept: @@ -313,16 +329,16 @@ interactions: url: https://api.linode.com/v4beta/linode/instances method: POST response: - body: '{"id": 59542218, "label": "go-test-ins-6su1e549uoo7", "group": "", "status": + body: '{"id": 61169832, "label": "go-test-ins-8xyko16y92t8", "group": "", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", - "type": "g6-nanode-1", "ipv4": ["172.105.62.113"], "ipv6": "1234::5678/128", + "type": "g6-nanode-1", "ipv4": ["172.105.55.95"], "ipv6": "1234::5678/128", "image": "linode/debian9", "region": "ap-west", "specs": {"disk": 25600, "memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled": true, "available": false, "schedule": {"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": [], "host_uuid": - "4ecff3e7ba293f448d05aad89062f4677f5065a3", "has_user_data": false, "placement_group": - null}' + "8bb24924c0b481c3ae3a41bf5819194b366c512d", "has_user_data": false, "placement_group": + null, "lke_cluster_id": null}' headers: Access-Control-Allow-Credentials: - "true" @@ -339,13 +355,13 @@ interactions: Connection: - keep-alive Content-Length: - - "766" + - "789" Content-Security-Policy: - default-src 'none' Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:33 GMT + - Mon, 08 Jul 2024 13:35:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -360,10 +376,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "10" X-Xss-Protection: @@ -381,11 +394,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542218/ips + url: https://api.linode.com/v4beta/linode/instances/61169832/ips method: POST response: - body: '{"address": "192.168.141.89", "gateway": null, "subnet_mask": "255.255.128.0", - "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 59542218, + body: '{"address": "192.168.128.47", "gateway": null, "subnet_mask": "255.255.128.0", + "prefix": 17, "type": "ipv4", "public": false, "rdns": null, "linode_id": 61169832, "region": "ap-west", "vpc_nat_1_1": null}' headers: Access-Control-Allow-Credentials: @@ -409,7 +422,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:33 GMT + - Mon, 08 Jul 2024 13:35:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -424,10 +437,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -436,7 +446,7 @@ interactions: code: 200 duration: "" - request: - body: '{"address":"192.168.141.89:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' + body: '{"address":"192.168.128.47:8080","label":"go-node-test-def","weight":10,"mode":"accept"}' form: {} headers: Accept: @@ -445,12 +455,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190/configs/1134764/nodes + url: https://api.linode.com/v4beta/nodebalancers/767843/configs/1266875/nodes method: POST response: - body: '{"id": 2047158853, "address": "192.168.141.89:8080", "label": "go-node-test-def", - "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1134764, "nodebalancer_id": - 694190}' + body: '{"id": 2051557738, "address": "192.168.128.47:8080", "label": "go-node-test-def", + "status": "Unknown", "weight": 10, "mode": "accept", "config_id": 1266875, "nodebalancer_id": + 767843}' headers: Access-Control-Allow-Credentials: - "true" @@ -473,7 +483,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:33 GMT + - Mon, 08 Jul 2024 13:35:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -488,10 +498,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -500,7 +507,7 @@ interactions: code: 200 duration: "" - request: - body: '{"port":80,"protocol":"http","proxy_protocol":"none","algorithm":"roundrobin","stickiness":"none","check":"none","check_interval":60,"check_attempts":3,"check_passive":true,"check_timeout":30,"cipher_suite":"recommended","nodes":[{"address":"192.168.141.89:8080","label":"go-node-test-def","weight":10,"mode":"accept","id":2047158853}]}' + body: '{"port":80,"protocol":"http","proxy_protocol":"none","algorithm":"roundrobin","stickiness":"none","check":"none","check_interval":60,"check_attempts":3,"check_passive":true,"check_timeout":30,"cipher_suite":"recommended","nodes":[{"address":"192.168.128.47:8080","label":"go-node-test-def","weight":10,"mode":"accept","id":2051557738}]}' form: {} headers: Accept: @@ -509,14 +516,14 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190/configs/1134764/rebuild + url: https://api.linode.com/v4beta/nodebalancers/767843/configs/1266875/rebuild method: POST response: - body: '{"id": 1134764, "port": 80, "protocol": "http", "algorithm": "roundrobin", + body: '{"id": 1266875, "port": 80, "protocol": "http", "algorithm": "roundrobin", "stickiness": "none", "check": "none", "check_interval": 60, "check_timeout": 30, "check_attempts": 3, "check_path": "", "check_body": "", "check_passive": true, "proxy_protocol": "none", "cipher_suite": "recommended", "nodebalancer_id": - 694190, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": + 767843, "ssl_commonname": "", "ssl_fingerprint": "", "ssl_cert": null, "ssl_key": null, "nodes_status": {"up": 0, "down": 1}}' headers: Access-Control-Allow-Credentials: @@ -540,7 +547,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:33 GMT + - Mon, 08 Jul 2024 13:35:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -555,10 +562,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -576,12 +580,12 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190/configs/1134764/nodes + url: https://api.linode.com/v4beta/nodebalancers/767843/configs/1266875/nodes?page=1 method: GET response: - body: '{"data": [{"id": 2047158853, "address": "192.168.141.89:8080", "label": + body: '{"data": [{"id": 2051557738, "address": "192.168.128.47:8080", "label": "go-node-test-def", "status": "Unknown", "weight": 10, "mode": "accept", "config_id": - 1134764, "nodebalancer_id": 694190}], "page": 1, "pages": 1, "results": 1}' + 1266875, "nodebalancer_id": 767843}], "page": 1, "pages": 1, "results": 1}' headers: Access-Control-Allow-Credentials: - "true" @@ -604,7 +608,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:33 GMT + - Mon, 08 Jul 2024 13:35:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -620,10 +624,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -641,7 +642,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694190/configs/1134764/nodes/2047158853 + url: https://api.linode.com/v4beta/nodebalancers/767843/configs/1266875/nodes/2051557738 method: DELETE response: body: '{}' @@ -667,7 +668,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:34 GMT + - Mon, 08 Jul 2024 13:35:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -682,10 +683,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -703,7 +701,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/linode/instances/59542218 + url: https://api.linode.com/v4beta/linode/instances/61169832 method: DELETE response: body: '{}' @@ -729,7 +727,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:34 GMT + - Mon, 08 Jul 2024 13:35:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -744,10 +742,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancer_Update.yaml b/test/integration/fixtures/TestNodeBalancer_Update.yaml index 1b73d3936..1cc8dfe3b 100644 --- a/test/integration/fixtures/TestNodeBalancer_Update.yaml +++ b/test/integration/fixtures/TestNodeBalancer_Update.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:54 GMT + - Mon, 08 Jul 2024 13:35:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640272}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694200, "label": "go-test-def", "region": "ap-west", "hostname": - "172-105-45-160.ip.linodeusercontent.com", "ipv4": "172.105.45.160", "ipv6": + body: '{"id": 767846, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-45-226.ip.linodeusercontent.com", "ipv4": "172.105.45.226", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -340,7 +356,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:54 GMT + - Mon, 08 Jul 2024 13:35:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,11 +389,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694200 + url: https://api.linode.com/v4beta/nodebalancers/767846 method: PUT response: - body: '{"id": 694200, "label": "go-test-def_r", "region": "ap-west", "hostname": - "172-105-45-160.ip.linodeusercontent.com", "ipv4": "172.105.45.160", "ipv6": + body: '{"id": 767846, "label": "go-test-def_r", "region": "ap-west", "hostname": + "172-105-45-226.ip.linodeusercontent.com", "ipv4": "172.105.45.226", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -406,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:54 GMT + - Mon, 08 Jul 2024 13:35:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -421,10 +434,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -442,7 +452,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694200 + url: https://api.linode.com/v4beta/nodebalancers/767846 method: DELETE response: body: '{}' @@ -468,7 +478,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:55 GMT + - Mon, 08 Jul 2024 13:35:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -483,10 +493,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: diff --git a/test/integration/fixtures/TestNodeBalancers_List.yaml b/test/integration/fixtures/TestNodeBalancers_List.yaml index f709f47c9..08f714fe4 100644 --- a/test/integration/fixtures/TestNodeBalancers_List.yaml +++ b/test/integration/fixtures/TestNodeBalancers_List.yaml @@ -57,10 +57,10 @@ interactions: 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", - "Managed Databases", "Metadata", "Premium Plans"], "status": "ok", "resolvers": - {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, 172.232.0.22, - 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", "ipv6": - "1234::5678, 1234::5678, 1234::5678, + "Managed Databases", "Metadata", "Premium Plans", "Placement Group"], "status": + "ok", "resolvers": {"ipv4": "172.232.0.17, 172.232.0.16, 172.232.0.21, 172.232.0.13, + 172.232.0.22, 172.232.0.9, 172.232.0.19, 172.232.0.20, 172.232.0.15, 172.232.0.18", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": @@ -156,8 +156,8 @@ interactions: 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", - "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": - "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, + "VPCs", "Metadata", "Premium Plans", "Placement Group"], "status": "ok", "resolvers": + {"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31", "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, @@ -183,6 +183,25 @@ interactions: 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "gb-lon", "label": + "London 2, UK", "country": "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46, 172.236.0.50, + 172.236.0.47, 172.236.0.53, 172.236.0.52, 172.236.0.45, 172.236.0.49, 172.236.0.51, + 172.236.0.54, 172.236.0.48", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": "au", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud + Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": + {"ipv4": "172.236.32.23, 172.236.32.35, 172.236.32.30, 172.236.32.28, 172.236.32.32, + 172.236.32.33, 172.236.32.27, 172.236.32.37, 172.236.32.29, 172.236.32.34", + "ipv6": "1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, + 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block @@ -251,7 +270,7 @@ interactions: "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": 100, "maximum_linodes_per_pg": 5}, "site_type": - "core"}], "page": 1, "pages": 1, "results": 25}' + "core"}], "page": 1, "pages": 1, "results": 27}' headers: Access-Control-Allow-Credentials: - "true" @@ -272,7 +291,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:55 GMT + - Mon, 08 Jul 2024 13:36:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,10 +308,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -301,7 +317,7 @@ interactions: code: 200 duration: "" - request: - body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":501400}' + body: '{"label":"go-test-def","region":"ap-west","client_conn_throttle":20,"tags":null,"firewall_id":640274}' form: {} headers: Accept: @@ -313,8 +329,8 @@ interactions: url: https://api.linode.com/v4beta/nodebalancers method: POST response: - body: '{"id": 694201, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-87-151.ip.linodeusercontent.com", "ipv4": "172.232.87.151", "ipv6": + body: '{"id": 767848, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-44-117.ip.linodeusercontent.com", "ipv4": "172.105.44.117", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}' @@ -340,7 +356,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:55 GMT + - Mon, 08 Jul 2024 13:36:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -355,10 +371,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -376,11 +389,11 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers?page=1 method: GET response: - body: '{"data": [{"id": 694201, "label": "go-test-def", "region": "ap-west", "hostname": - "172-232-87-151.ip.linodeusercontent.com", "ipv4": "172.232.87.151", "ipv6": + body: '{"data": [{"id": 767848, "label": "go-test-def", "region": "ap-west", "hostname": + "172-105-44-117.ip.linodeusercontent.com", "ipv4": "172.105.44.117", "ipv6": "1234::5678", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "tags": [], "transfer": {"in": null, "out": null, "total": null}}], "page": 1, "pages": 1, "results": 1}' @@ -406,7 +419,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:56 GMT + - Mon, 08 Jul 2024 13:36:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -422,10 +435,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: @@ -443,7 +453,7 @@ interactions: - application/json User-Agent: - linodego/dev https://github.com/linode/linodego - url: https://api.linode.com/v4beta/nodebalancers/694201 + url: https://api.linode.com/v4beta/nodebalancers/767848 method: DELETE response: body: '{}' @@ -469,7 +479,7 @@ interactions: Content-Type: - application/json Expires: - - Fri, 31 May 2024 17:28:56 GMT + - Mon, 08 Jul 2024 13:36:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -484,10 +494,7 @@ interactions: - DENY - DENY X-Oauth-Scopes: - - account:read_write databases:read_write domains:read_write events:read_write - firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write - longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write - volumes:read_write vpc:read_write + - '*' X-Ratelimit-Limit: - "400" X-Xss-Protection: