diff --git a/cmd/tftemplate/models/resource.go b/cmd/tftemplate/models/resource.go index 43e10f606f..c5573c66d2 100644 --- a/cmd/tftemplate/models/resource.go +++ b/cmd/tftemplate/models/resource.go @@ -1,10 +1,11 @@ package models import ( - "golang.org/x/text/cases" - "golang.org/x/text/language" "strings" "unicode" + + "golang.org/x/text/cases" + "golang.org/x/text/language" ) type ResourceTemplate struct { diff --git a/cmd/tftemplate/templates.go b/cmd/tftemplate/templates.go index e4ea190ec7..c95af737e8 100644 --- a/cmd/tftemplate/templates.go +++ b/cmd/tftemplate/templates.go @@ -3,9 +3,9 @@ package main import ( "log" "os" + "strings" "text/template" - "strings" "tftemplate/models" ) diff --git a/docs/resources/inference_deployment.md b/docs/resources/inference_deployment.md new file mode 100644 index 0000000000..dee32681db --- /dev/null +++ b/docs/resources/inference_deployment.md @@ -0,0 +1,72 @@ +--- +subcategory: "Inference" +page_title: "Scaleway: scaleway_inference_deployment" +--- + +# Resource: scaleway_inference_deployment + +Creates and manages Scaleway Managed Inference deployments. +For more information, see [the documentation](https://www.scaleway.com/en/developers/api/inference/). + +## Example Usage + +### Basic + +```terraform +resource "scaleway_inference_deployment" "deployment" { + name = "tf-inference-deployment" + node_type = "L4" + model_name = "meta/llama-3.1-8b-instruct:fp8" + public_endpoint { + is_enabled = true + } + accept_eula = true +} +``` + +## Argument Reference + +- `model_name` - (Required) The model name to use for the deployment. Model names can be found in Console or using Scaleway's CLI (`scw inference model list`) +- `node_type` - (Required) The node type to use for the deployment. Node types can be found using Scaleway's CLI (`scw inference node-type list`) +- `name` - (Optional) The deployment name. +- `accept_eula` - (Optional) Some models (e.g Meta Llama) require end-user license agreements. Set `true` to accept. +- `tags` - (Optional) The tags associated with the deployment. +- `min_size` - (Optional) The minimum size of the pool. +- `max_size` - (Optional) The maximum size of the pool. +- `private_endpoint` - (Optional) Configuration of the deployment's private endpoint. + - `private_network_id` - (Optional) The ID of the private network to use. + - `disable_auth` - (Optional) Disable the authentication on the endpoint. +- `public_endpoint` - (Optional) Configuration of the deployment's public endpoint. + - `is_enabled` - (Optional) Enable or disable public endpoint. + - `disable_auth` - (Optional) Disable the authentication on the endpoint. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the deployment is created. +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the deployment is associated with. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the deployment. +- `model_id` - The model id used for the deployment. +- `size` - The size of the pool. +- `status` - The status of the deployment. +- `created_at` - The date and time of the creation of the deployment. +- `updated_at` - The date and time of the last update of the deployment. +- `private_endpoint` - Private endpoint's attributes. + - `id` - (Optional) The id of the private endpoint. + - `url` - (Optional) The URL of the endpoint. +- `public_endpoint` - (Optional) Public endpoint's attributes. + - `id` - (Optional) The id of the public endpoint. + - `url` - (Optional) The URL of the endpoint. + +~> **Important:** Deployments' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111`. + + +## Import + +Functions can be imported using, `{region}/{id}`, as shown below: + +```bash +terraform import scaleway_inference_deployment.deployment fr-par/11111111-1111-1111-1111-111111111111 +``` diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 89239defeb..223220cb1e 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -23,6 +23,7 @@ import ( "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/flexibleip" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/function" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/iam" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/inference" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/instance" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/iot" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/ipam" @@ -150,6 +151,7 @@ func Provider(config *Config) plugin.ProviderFunc { "scaleway_iam_policy": iam.ResourcePolicy(), "scaleway_iam_ssh_key": iam.ResourceSSKKey(), "scaleway_iam_user": iam.ResourceUser(), + "scaleway_inference_deployment": inference.ResourceDeployment(), "scaleway_instance_image": instance.ResourceImage(), "scaleway_instance_ip": instance.ResourceIP(), "scaleway_instance_ip_reverse_dns": instance.ResourceIPReverseDNS(), diff --git a/internal/services/inference/deployment.go b/internal/services/inference/deployment.go new file mode 100644 index 0000000000..6789aef461 --- /dev/null +++ b/internal/services/inference/deployment.go @@ -0,0 +1,374 @@ +package inference + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/account" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/types" +) + +func ResourceDeployment() *schema.Resource { + return &schema.Resource{ + CreateContext: ResourceDeploymentCreate, + ReadContext: ResourceDeploymentRead, + UpdateContext: ResourceDeploymentUpdate, + DeleteContext: ResourceDeploymentDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultInferenceDeploymentTimeout), + Read: schema.DefaultTimeout(defaultInferenceDeploymentTimeout), + Update: schema.DefaultTimeout(defaultInferenceDeploymentTimeout), + Delete: schema.DefaultTimeout(defaultInferenceDeploymentTimeout), + Default: schema.DefaultTimeout(defaultInferenceDeploymentTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Computed: true, + Optional: true, + Description: "The deployment name", + }, + "region": regional.Schema(), + "project_id": account.ProjectIDSchema(), + "node_type": { + Type: schema.TypeString, + Required: true, + Description: "The node type to use for the deployment", + }, + "model_name": { + Type: schema.TypeString, + Required: true, + Description: "The model name to use for the deployment", + }, + "model_id": { + Type: schema.TypeString, + Computed: true, + Description: "The model id used for the deployment", + }, + "accept_eula": { + Type: schema.TypeBool, + Optional: true, + Default: false, + Description: "Whether or not the deployment is accepting eula", + }, + "tags": { + Type: schema.TypeList, + Elem: &schema.Schema{Type: schema.TypeString}, + Optional: true, + Description: "The tags associated with the deployment", + }, + "min_size": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "The minimum size of the pool", + ValidateFunc: validation.IntAtLeast(1), + }, + "max_size": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "The maximum size of the pool", + ValidateFunc: validation.IntAtLeast(1), + }, + "size": { + Type: schema.TypeInt, + Computed: true, + Description: "The size of the pool", + }, + "status": { + Type: schema.TypeString, + Computed: true, + Description: "The status of the deployment", + }, + "created_at": { + Type: schema.TypeString, + Computed: true, + Description: "The date and time of the creation of the deployment", + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "The date and time of the last update of the deployment", + }, + + "private_endpoint": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{"public_endpoint"}, + Description: "List of endpoints", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": { + Type: schema.TypeString, + Description: "The id of the private endpoint", + Computed: true, + }, + "private_network_id": { + Type: schema.TypeString, + Description: "The id of the private network", + Optional: true, + }, + "disable_auth": { + Type: schema.TypeBool, + Description: "Disable the authentication on the endpoint.", + Optional: true, + Default: false, + }, + "url": { + Type: schema.TypeString, + Description: "The URL of the endpoint.", + Computed: true, + }, + }, + }, + }, + + "public_endpoint": { + Type: schema.TypeList, + Optional: true, + AtLeastOneOf: []string{"private_endpoint"}, + Description: "Public endpoints", + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": { + Type: schema.TypeString, + Description: "The id of the public endpoint", + Computed: true, + }, + "is_enabled": { + Type: schema.TypeBool, + Description: "Enable or disable public endpoint", + Optional: true, + }, + "disable_auth": { + Type: schema.TypeBool, + Description: "Disable the authentication on the endpoint.", + Optional: true, + Default: false, + }, + "url": { + Type: schema.TypeString, + Description: "The URL of the endpoint.", + Computed: true, + }, + }, + }, + }, + }, + } +} + +func ResourceDeploymentCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api, region, err := NewAPIWithRegion(d, m) + if err != nil { + return diag.FromErr(err) + } + + req := &inference.CreateDeploymentRequest{ + Region: region, + ProjectID: d.Get("project_id").(string), + Name: d.Get("name").(string), + NodeType: d.Get("node_type").(string), + ModelName: d.Get("model_name").(string), + Tags: types.ExpandStrings(d.Get("tags")), + Endpoints: buildEndpoints(d), + } + + if isAcceptingEula, ok := d.GetOk("accept_eula"); ok { + req.AcceptEula = scw.BoolPtr(isAcceptingEula.(bool)) + } + + if minSize, ok := d.GetOk("min_size"); ok { + req.MinSize = scw.Uint32Ptr(uint32(minSize.(int))) + } + + if maxSize, ok := d.GetOk("max_size"); ok { + req.MaxSize = scw.Uint32Ptr(uint32(maxSize.(int))) + } + + deployment, err := api.CreateDeployment(req, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(regional.NewIDString(region, deployment.ID)) + + _, err = waitForDeployment(ctx, api, region, deployment.ID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + return ResourceDeploymentRead(ctx, d, m) +} + +func buildEndpoints(d *schema.ResourceData) []*inference.EndpointSpec { + var endpoints []*inference.EndpointSpec + + if publicEndpoint, ok := d.GetOk("public_endpoint"); ok { + publicEndpointMap := publicEndpoint.([]interface{})[0].(map[string]interface{}) + if publicEndpointMap["is_enabled"].(bool) { + publicEp := inference.EndpointSpec{ + Public: &inference.EndpointSpecPublic{}, + DisableAuth: publicEndpointMap["disable_auth"].(bool), + } + endpoints = append(endpoints, &publicEp) + } + } + + if privateEndpoint, ok := d.GetOk("private_endpoint"); ok { + privateEndpointMap := privateEndpoint.([]interface{})[0].(map[string]interface{}) + if privateID, exists := privateEndpointMap["private_network_id"]; exists { + privateEp := inference.EndpointSpec{ + PrivateNetwork: &inference.EndpointSpecPrivateNetwork{ + PrivateNetworkID: regional.ExpandID(privateID.(string)).ID, + }, + DisableAuth: privateEndpointMap["disable_auth"].(bool), + } + endpoints = append(endpoints, &privateEp) + } + } + + return endpoints +} + +func ResourceDeploymentRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api, region, id, err := NewAPIWithRegionAndID(m, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + deployment, err := waitForDeployment(ctx, api, region, id, d.Timeout(schema.TimeoutRead)) + if err != nil { + if httperrors.Is404(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + _ = d.Set("name", deployment.Name) + _ = d.Set("region", deployment.Region) + _ = d.Set("project_id", deployment.ProjectID) + _ = d.Set("node_type", deployment.NodeType) + _ = d.Set("model_name", deployment.ModelName) + _ = d.Set("min_size", int(deployment.MinSize)) + _ = d.Set("max_size", int(deployment.MaxSize)) + _ = d.Set("size", int(deployment.Size)) + _ = d.Set("status", deployment.Status) + _ = d.Set("model_id", deployment.ModelID) + _ = d.Set("tags", types.ExpandUpdatedStringsPtr(deployment.Tags)) + _ = d.Set("created_at", types.FlattenTime(deployment.CreatedAt)) + _ = d.Set("updated_at", types.FlattenTime(deployment.UpdatedAt)) + var privateEndpoints []map[string]interface{} + var publicEndpoints []map[string]interface{} + + for _, endpoint := range deployment.Endpoints { + if endpoint.PrivateNetwork != nil { + privateEndpointSpec := map[string]interface{}{ + "id": endpoint.ID, + "private_network_id": regional.NewID(deployment.Region, endpoint.PrivateNetwork.PrivateNetworkID).String(), + "disable_auth": endpoint.DisableAuth, + "url": endpoint.URL, + } + privateEndpoints = append(privateEndpoints, privateEndpointSpec) + } + if endpoint.PublicAccess != nil { + publicEndpointSpec := map[string]interface{}{ + "id": endpoint.ID, + "is_enabled": true, + "disable_auth": endpoint.DisableAuth, + "url": endpoint.URL, + } + publicEndpoints = append(publicEndpoints, publicEndpointSpec) + } + } + + if privateEndpoints != nil { + _ = d.Set("private_endpoint", privateEndpoints) + } + if publicEndpoints != nil { + _ = d.Set("public_endpoint", publicEndpoints) + } + return nil +} + +func ResourceDeploymentUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api, region, id, err := NewAPIWithRegionAndID(m, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + deployment, err := waitForDeployment(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + if httperrors.Is404(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + req := &inference.UpdateDeploymentRequest{ + Region: region, + DeploymentID: deployment.ID, + } + + if d.HasChange("name") { + req.Name = types.ExpandUpdatedStringPtr(d.Get("name")) + } + + if d.HasChange("tags") { + req.Tags = types.ExpandUpdatedStringsPtr(d.Get("tags")) + } + + if d.HasChange("min_size") { + req.MinSize = types.ExpandUint32Ptr(d.Get("min_size")) + } + + if d.HasChange("max_size") { + req.MaxSize = types.ExpandUint32Ptr(d.Get("max_size")) + } + + if _, err := api.UpdateDeployment(req, scw.WithContext(ctx)); err != nil { + return diag.FromErr(err) + } + + return ResourceDeploymentRead(ctx, d, m) +} + +func ResourceDeploymentDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api, region, id, err := NewAPIWithRegionAndID(m, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDeployment(ctx, api, region, id, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + _, err = api.DeleteDeployment(&inference.DeleteDeploymentRequest{ + Region: region, + DeploymentID: id, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + _, err = waitForDeployment(ctx, api, region, id, d.Timeout(schema.TimeoutDelete)) + if err != nil && !httperrors.Is404(err) { + return diag.FromErr(err) + } + + return nil +} diff --git a/internal/services/inference/deployment_test.go b/internal/services/inference/deployment_test.go new file mode 100644 index 0000000000..5d9a40b180 --- /dev/null +++ b/internal/services/inference/deployment_test.go @@ -0,0 +1,127 @@ +package inference_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + inferenceSDK "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/inference" + inferencetestfuncs "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/inference/testfuncs" +) + +func TestAccDeployment_Basic(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: inferencetestfuncs.IsDeploymentDestroyed(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_inference_deployment" "main" { + name = "test-inference-deployment-basic" + node_type = "L4" + model_name = "meta/llama-3.1-8b-instruct:fp8" + public_endpoint { + is_enabled = true + } + accept_eula = true + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDeploymentExists(tt, "scaleway_inference_deployment.main"), + resource.TestCheckResourceAttr("scaleway_inference_deployment.main", "name", "test-inference-deployment-basic"), + ), + }, + }, + }) +} + +func TestAccDeployment_Endpoint(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: inferencetestfuncs.IsDeploymentDestroyed(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_vpc_private_network" "pn01" { + name = "private-network-test-inference" + } + resource "scaleway_inference_deployment" "main" { + name = "test-inference-deployment-endpoint-private" + node_type = "L4" + model_name = "meta/llama-3.1-8b-instruct:fp8" + private_endpoint { + private_network_id = "${scaleway_vpc_private_network.pn01.id}" + } + accept_eula = true + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDeploymentExists(tt, "scaleway_inference_deployment.main"), + resource.TestCheckResourceAttr("scaleway_inference_deployment.main", "name", "test-inference-deployment-endpoint-private"), + resource.TestCheckResourceAttr("scaleway_inference_deployment.main", "node_type", "L4"), + resource.TestCheckResourceAttrPair("scaleway_inference_deployment.main", "private_endpoint.0.private_network_id", "scaleway_vpc_private_network.pn01", "id"), + ), + }, + { + Config: ` + resource "scaleway_vpc_private_network" "pn01" { + name = "private-network-test-inference-public" + } + resource "scaleway_inference_deployment" "main" { + name = "test-inference-deployment-basic-endpoints-private-public" + node_type = "L4" + model_name = "meta/llama-3.1-8b-instruct:fp8" + private_endpoint { + private_network_id = "${scaleway_vpc_private_network.pn01.id}" + } + public_endpoint { + is_enabled = true + } + accept_eula = true + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDeploymentExists(tt, "scaleway_inference_deployment.main"), + resource.TestCheckResourceAttr("scaleway_inference_deployment.main", "name", "test-inference-deployment-basic-endpoints-private-public"), + resource.TestCheckResourceAttr("scaleway_inference_deployment.main", "public_endpoint.0.is_enabled", "true"), + resource.TestCheckResourceAttrPair("scaleway_inference_deployment.main", "private_endpoint.0.private_network_id", "scaleway_vpc_private_network.pn01", "id"), + ), + }, + }, + }) +} + +func testAccCheckDeploymentExists(tt *acctest.TestTools, n string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[n] + if !ok { + return fmt.Errorf("resource not found: %s", n) + } + + api, region, id, err := inference.NewAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = api.GetDeployment(&inferenceSDK.GetDeploymentRequest{ + DeploymentID: id, + Region: region, + }) + if err != nil { + return err + } + + return nil + } +} diff --git a/internal/services/inference/helpers_inference.go b/internal/services/inference/helpers_inference.go new file mode 100644 index 0000000000..f5201363b5 --- /dev/null +++ b/internal/services/inference/helpers_inference.go @@ -0,0 +1,40 @@ +package inference + +import ( + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +const ( + defaultInferenceDeploymentTimeout = 80 * time.Minute + defaultDeploymentRetryInterval = 1 * time.Minute +) + +// NewAPIWithRegion returns a new inference API and the region for a Create request +func NewAPIWithRegion(d *schema.ResourceData, m interface{}) (*inference.API, scw.Region, error) { + inferenceAPI := inference.NewAPI(meta.ExtractScwClient(m)) + + region, err := meta.ExtractRegion(d, m) + if err != nil { + return nil, "", err + } + + return inferenceAPI, region, nil +} + +// NewAPIWithRegionAndID returns a new inference API with region and ID extracted from the state +func NewAPIWithRegionAndID(m interface{}, regionalID string) (*inference.API, scw.Region, string, error) { + inferenceAPI := inference.NewAPI(meta.ExtractScwClient(m)) + + region, ID, err := regional.ParseID(regionalID) + if err != nil { + return nil, "", "", err + } + + return inferenceAPI, region, ID, nil +} diff --git a/internal/services/inference/sweep_test.go b/internal/services/inference/sweep_test.go new file mode 100644 index 0000000000..d778cdbdf3 --- /dev/null +++ b/internal/services/inference/sweep_test.go @@ -0,0 +1,16 @@ +package inference_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + inferencetestfuncs "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/inference/testfuncs" +) + +func init() { + inferencetestfuncs.AddTestSweepers() +} + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/internal/services/inference/testdata/deployment-basic.cassette.yaml b/internal/services/inference/testdata/deployment-basic.cassette.yaml new file mode 100644 index 0000000000..dcc5044625 --- /dev/null +++ b/internal/services/inference/testdata/deployment-basic.cassette.yaml @@ -0,0 +1,1328 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 235 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test-inference-deployment-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","model_name":"meta/llama-3.1-8b-instruct:fp8","accept_eula":true,"node_type":"L4","tags":[],"endpoints":[{"public":{},"disable_auth":false}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:29:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3c6beb18-11d7-4431-8b99-ccb043f0afde + status: 200 OK + code: 200 + duration: 416.942708ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:29:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bc545a27-f2e4-471f-9033-6b22e40273ff + status: 200 OK + code: 200 + duration: 97.465458ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:30:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2b9833e9-0c25-45a2-b36c-2d388cc11877 + status: 200 OK + code: 200 + duration: 130.5175ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:31:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0821d0f3-d0fc-4752-997d-dc7698e29681 + status: 200 OK + code: 200 + duration: 560.825708ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:32:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 95c1d1c9-b3d0-4ebe-81f6-b495de0ab8e9 + status: 200 OK + code: 200 + duration: 126.262167ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:33:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31e84a22-73b8-4fc5-aff7-79d238d479ab + status: 200 OK + code: 200 + duration: 97.842875ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:34:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 437186cd-92ca-432a-99a7-7dbf9b0ec5c3 + status: 200 OK + code: 200 + duration: 136.54325ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:35:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 26e73cb3-e0f3-48d0-939e-259bb147eb35 + status: 200 OK + code: 200 + duration: 142.564417ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:36:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 176a02e5-d2f9-48e3-9fc5-bfb1a76f6b28 + status: 200 OK + code: 200 + duration: 150.126583ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 611 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "611" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:37:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6b20f6ef-dfb5-46f1-b632-d74132b5b564 + status: 200 OK + code: 200 + duration: 173.423666ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:38:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7a53020a-2d85-4db5-bfbb-9d93f605e9cd + status: 200 OK + code: 200 + duration: 113.966625ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:39:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 379c066b-d9c2-424a-950c-094380001fde + status: 200 OK + code: 200 + duration: 123.212959ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:40:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 553a1c2a-7aae-4853-9222-79ab6a91ee87 + status: 200 OK + code: 200 + duration: 121.030542ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:41:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 22ad4139-8e1f-4be2-a84f-dbb093b46c30 + status: 200 OK + code: 200 + duration: 107.486291ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:42:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4649fa1b-d7fb-45d9-aa67-eadeeaca6e77 + status: 200 OK + code: 200 + duration: 133.87825ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:43:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 74a6a807-25e8-4484-b70b-73543f52707c + status: 200 OK + code: 200 + duration: 158.331917ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:44:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 033e7084-1f68-41ac-bf94-5f698a6136d1 + status: 200 OK + code: 200 + duration: 134.344292ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 637 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:28.607817Z"}' + headers: + Content-Length: + - "637" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:45:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c6e19ff-fd34-4315-ab65-6b46f542d5dd + status: 200 OK + code: 200 + duration: 101.461459ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 633 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "633" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8ecf08ee-7926-4b03-b554-24c2ec7ac9de + status: 200 OK + code: 200 + duration: 130.801834ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 633 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "633" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7aa048ee-4de5-4dad-9f47-0181b4fd62cd + status: 200 OK + code: 200 + duration: 61.764917ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 633 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "633" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d70eb0de-97ad-4fc3-8ca8-ad6dd958028a + status: 200 OK + code: 200 + duration: 64.520958ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 633 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "633" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 802fff30-5496-417e-b3b4-978cb481edd1 + status: 200 OK + code: 200 + duration: 63.167042ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 633 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "633" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c13384e-44b7-49ac-aab1-6a2b4f61e73b + status: 200 OK + code: 200 + duration: 65.279292ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 636 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"deleting","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "636" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4168cc76-45f4-4964-a9bc-53eebcc0a96a + status: 200 OK + code: 200 + duration: 164.292334ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 636 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.345060Z","endpoints":[{"disable_auth":false,"id":"323ee315-02b1-4ddd-acb2-c94a4ed78039","public_access":{},"url":"https://20043a05-db6e-4ef5-bec6-40089e6d13d0.ifr.fr-par.scaleway.com"}],"error_message":null,"id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"deleting","tags":[],"updated_at":"2024-10-24T13:45:54.400813Z"}' + headers: + Content-Length: + - "636" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0f140049-ef2d-40e6-8904-e4902dd505c8 + status: 200 OK + code: 200 + duration: 71.520792ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 131 + uncompressed: false + body: '{"message":"resource is not found","resource":"deployment","resource_id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","type":"not_found"}' + headers: + Content-Length: + - "131" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:47:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6aa1a3bf-6696-4159-9d71-1521b634517f + status: 404 Not Found + code: 404 + duration: 56.452333ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/20043a05-db6e-4ef5-bec6-40089e6d13d0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 131 + uncompressed: false + body: '{"message":"resource is not found","resource":"deployment","resource_id":"20043a05-db6e-4ef5-bec6-40089e6d13d0","type":"not_found"}' + headers: + Content-Length: + - "131" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:47:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cdd798bc-67a2-4dca-9f2d-630ee27d2c97 + status: 404 Not Found + code: 404 + duration: 38.865166ms diff --git a/internal/services/inference/testdata/deployment-endpoint.cassette.yaml b/internal/services/inference/testdata/deployment-endpoint.cassette.yaml new file mode 100644 index 0000000000..268937ee3f --- /dev/null +++ b/internal/services/inference/testdata/deployment-endpoint.cassette.yaml @@ -0,0 +1,2018 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 118 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"private-network-test-inference","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","tags":[],"subnets":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1056 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1056" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:29:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d8085215-703c-40f0-9ebe-b34d6ff21ef3 + status: 200 OK + code: 200 + duration: 675.246667ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1056 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1056" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:29:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d90fd1bd-801f-4d08-bfc5-b9d186c597b2 + status: 200 OK + code: 200 + duration: 38.378416ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 314 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test-inference-deployment-endpoint-private","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","model_name":"meta/llama-3.1-8b-instruct:fp8","accept_eula":true,"node_type":"L4","tags":[],"endpoints":[{"private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"disable_auth":false}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:29:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 74261352-8793-4687-ad52-0c16f27f7483 + status: 200 OK + code: 200 + duration: 394.979208ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:29:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8ff48fbd-45ed-4f4e-a84b-320f5e45f457 + status: 200 OK + code: 200 + duration: 77.838917ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:30:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b4c7654b-adb9-455a-8fc3-ce191a1df037 + status: 200 OK + code: 200 + duration: 106.647667ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:31:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dff662ea-8014-47b3-9ef2-07ab8306bfce + status: 200 OK + code: 200 + duration: 55.982375ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:32:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9840990f-39da-46f2-a934-385200c7e3e7 + status: 200 OK + code: 200 + duration: 98.294042ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:33:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f12f8474-ac1b-4eba-9b30-32f7f46fad52 + status: 200 OK + code: 200 + duration: 77.809333ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:34:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 20897fe5-f982-4281-855e-46b0917ab3ab + status: 200 OK + code: 200 + duration: 68.491917ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:35:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 22b09aa4-5a43-494b-8859-591888cceddf + status: 200 OK + code: 200 + duration: 97.426375ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:36:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aef1877e-d5ba-453a-bc6e-0d76562d9b23 + status: 200 OK + code: 200 + duration: 110.898542ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 690 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"creating","tags":[],"updated_at":null}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:37:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7cdd2952-ac35-4424-9fe7-70458e5c8515 + status: 200 OK + code: 200 + duration: 203.311792ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:38:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 13e612a2-5246-498a-9e39-708124fd49ff + status: 200 OK + code: 200 + duration: 104.959292ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:39:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 766594ce-47d2-4b85-b944-86ba69f874cb + status: 200 OK + code: 200 + duration: 120.497584ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:40:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 07353d68-3d86-45b8-8235-67b6bbdd9a4f + status: 200 OK + code: 200 + duration: 120.69975ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:41:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e3e818a0-b8f2-481a-acc5-12a2faff2642 + status: 200 OK + code: 200 + duration: 106.448625ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:42:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a9c5e28a-b44d-47a9-9ca3-5b6af160ce7d + status: 200 OK + code: 200 + duration: 129.56375ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:43:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - db37fc50-9fdd-471c-89b8-e8d7cdfa31db + status: 200 OK + code: 200 + duration: 157.868875ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:44:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e131fd10-aec1-42af-bde8-dbf94336aedb + status: 200 OK + code: 200 + duration: 135.776875ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 716 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":0,"status":"deploying","tags":[],"updated_at":"2024-10-24T13:37:38.541451Z"}' + headers: + Content-Length: + - "716" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:45:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d4fed6dd-8310-4c1c-a8bd-8a79436c1cc3 + status: 200 OK + code: 200 + duration: 105.398583ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 712 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:00.862117Z"}' + headers: + Content-Length: + - "712" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 00d78fdf-5432-40ca-bbfa-73229cccfc07 + status: 200 OK + code: 200 + duration: 110.750292ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 712 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:00.862117Z"}' + headers: + Content-Length: + - "712" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8eaaf821-b5c6-499b-bed0-1e845a4aa48a + status: 200 OK + code: 200 + duration: 73.559125ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 712 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:00.862117Z"}' + headers: + Content-Length: + - "712" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6de80e28-dd36-4320-9f1f-7538d209ce9d + status: 200 OK + code: 200 + duration: 65.040083ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1056 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1056" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - afe8b439-e19b-4e40-8741-3d40dfe57676 + status: 200 OK + code: 200 + duration: 67.957041ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 712 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:00.862117Z"}' + headers: + Content-Length: + - "712" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5296230c-24db-4b44-bb78-5ae6dc8a0c7d + status: 200 OK + code: 200 + duration: 68.275667ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1056 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1056" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5153c24-b431-47a7-889c-e0cf9ee9b80f + status: 200 OK + code: 200 + duration: 25.130541ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 712 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:00.862117Z"}' + headers: + Content-Length: + - "712" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e2e96741-f679-4324-8361-94ae359412c2 + status: 200 OK + code: 200 + duration: 60.36575ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 58 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"private-network-test-inference-public","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1063 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference-public","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:46:06.534698Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1063" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 68444496-adaa-4be9-8552-cfd927cc3a4a + status: 200 OK + code: 200 + duration: 92.484917ms + - id: 28 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1063 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference-public","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:46:06.534698Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1063" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 01713e43-b5d0-4b98-839c-bbbe99457cd2 + status: 200 OK + code: 200 + duration: 33.021875ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 712 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-endpoint-private","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:00.862117Z"}' + headers: + Content-Length: + - "712" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb649ed1-0f46-4c87-a9c9-62164c178987 + status: 200 OK + code: 200 + duration: 68.764667ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 67 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test-inference-deployment-basic-endpoints-private-public"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 726 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "726" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 799604d9-973f-4282-8fa7-5e82c557f57a + status: 200 OK + code: 200 + duration: 128.261666ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 726 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "726" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5d5e6d58-2a36-4c0f-a402-a6be0cbb53b5 + status: 200 OK + code: 200 + duration: 62.516209ms + - id: 32 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 726 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "726" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 45af3d56-b303-4544-8338-cc5d3f870779 + status: 200 OK + code: 200 + duration: 71.370709ms + - id: 33 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1063 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:02.392287Z","dhcp_enabled":true,"id":"5213e862-3c32-4e23-8c5a-fb079958acea","name":"private-network-test-inference-public","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2024-10-24T13:29:02.392287Z","id":"55561a48-f44e-404e-89f9-7d31f442d655","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"172.16.80.0/22","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"},{"created_at":"2024-10-24T13:29:02.392287Z","id":"9dda5654-4cf2-44d5-9a94-59075b96ea81","private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnet":"fd5f:519c:6d46:9f1::/64","updated_at":"2024-10-24T13:29:02.392287Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}],"tags":[],"updated_at":"2024-10-24T13:46:06.534698Z","vpc_id":"8feba4f5-79f9-42cd-b5ce-3ed8c510569e"}' + headers: + Content-Length: + - "1063" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d99a5a0b-bf42-47a7-b6e5-82c23f894d09 + status: 200 OK + code: 200 + duration: 60.620875ms + - id: 34 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 726 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "726" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3a13b06-691f-4f1a-ae6b-42b4aa5a4d79 + status: 200 OK + code: 200 + duration: 76.904541ms + - id: 35 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 726 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"ready","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "726" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4e65f435-4b0b-40eb-9b4f-5eb57c07500c + status: 200 OK + code: 200 + duration: 68.688125ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 729 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"deleting","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "729" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e7daa01e-0f8c-4370-a6fc-c983979998d4 + status: 200 OK + code: 200 + duration: 165.447167ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 729 + uncompressed: false + body: '{"created_at":"2024-10-24T13:29:03.040316Z","endpoints":[{"disable_auth":false,"id":"02527765-8d08-427e-8c8d-db76fe661126","private_network":{"private_network_id":"5213e862-3c32-4e23-8c5a-fb079958acea"},"url":"https://7aac488b-b5a5-47cf-894a-75bf1759e247.private-network-test-inference"}],"error_message":null,"id":"7aac488b-b5a5-47cf-894a-75bf1759e247","max_size":1,"min_size":1,"model_id":"d33fb5fd-75ca-4dfb-8952-8af8b8b28be5","model_name":"meta/llama-3.1-8b-instruct:fp8","name":"test-inference-deployment-basic-endpoints-private-public","node_type":"L4","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","size":1,"status":"deleting","tags":[],"updated_at":"2024-10-24T13:46:06.713490Z"}' + headers: + Content-Length: + - "729" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:46:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6ac7e3bc-5571-4c14-8edd-5039165bb9f0 + status: 200 OK + code: 200 + duration: 78.131959ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 131 + uncompressed: false + body: '{"message":"resource is not found","resource":"deployment","resource_id":"7aac488b-b5a5-47cf-894a-75bf1759e247","type":"not_found"}' + headers: + Content-Length: + - "131" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:47:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f615eb7-d8b5-4575-98fd-bbdbc83fde76 + status: 404 Not Found + code: 404 + duration: 37.984208ms + - id: 39 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5213e862-3c32-4e23-8c5a-fb079958acea + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:47:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0fa435f9-8c6e-4601-98fa-afa6c2e0f9b3 + status: 204 No Content + code: 204 + duration: 1.044924125s + - id: 40 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/inference/v1beta1/regions/fr-par/deployments/7aac488b-b5a5-47cf-894a-75bf1759e247 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 131 + uncompressed: false + body: '{"message":"resource is not found","resource":"deployment","resource_id":"7aac488b-b5a5-47cf-894a-75bf1759e247","type":"not_found"}' + headers: + Content-Length: + - "131" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Oct 2024 13:47:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5a7a36df-7106-4cd2-95fe-dfbfc03f6701 + status: 404 Not Found + code: 404 + duration: 55.77325ms diff --git a/internal/services/inference/testfuncs/checks.go b/internal/services/inference/testfuncs/checks.go new file mode 100644 index 0000000000..344c5384ec --- /dev/null +++ b/internal/services/inference/testfuncs/checks.go @@ -0,0 +1,41 @@ +package inferencetestfuncs + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + inferenceSDK "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/inference" +) + +func IsDeploymentDestroyed(tt *acctest.TestTools) resource.TestCheckFunc { + return func(s *terraform.State) error { + for _, rs := range s.RootModule().Resources { + if rs.Type != "scaleway_inference_deployment" { + continue + } + + inferenceAPI, region, ID, err := inference.NewAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + deployment, err := inferenceAPI.GetDeployment(&inferenceSDK.GetDeploymentRequest{ + Region: region, + DeploymentID: ID, + }) + + if err == nil { + return fmt.Errorf("deployment %s (%s) still exists", deployment.Name, deployment.ID) + } + + if !httperrors.Is404(err) { + return err + } + } + return nil + } +} diff --git a/internal/services/inference/testfuncs/sweep.go b/internal/services/inference/testfuncs/sweep.go new file mode 100644 index 0000000000..9a0db8c004 --- /dev/null +++ b/internal/services/inference/testfuncs/sweep.go @@ -0,0 +1,47 @@ +package inferencetestfuncs + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/logging" +) + +func AddTestSweepers() { + resource.AddTestSweepers("scaleway_instance_deployment", &resource.Sweeper{ + Name: "scaleway_instance_deployment", + Dependencies: nil, + F: testSweepDeployment, + }) +} + +func testSweepDeployment(_ string) error { + return acctest.SweepRegions((&inference.API{}).Regions(), func(scwClient *scw.Client, region scw.Region) error { + inferenceAPI := inference.NewAPI(scwClient) + logging.L.Debugf("sweeper: destroying the inference deployments in (%s)", region) + listDeployments, err := inferenceAPI.ListDeployments( + &inference.ListDeploymentsRequest{ + Region: region, + }, scw.WithAllPages()) + if err != nil { + return fmt.Errorf("error listing deployment in (%s) in sweeper: %s", region, err) + } + + for _, deployment := range listDeployments.Deployments { + _, err := inferenceAPI.DeleteDeployment(&inference.DeleteDeploymentRequest{ + DeploymentID: deployment.ID, + Region: region, + }) + if err != nil { + logging.L.Debugf("sweeper: error (%s)", err) + + return fmt.Errorf("error deleting deployment in sweeper: %s", err) + } + } + + return nil + }) +} diff --git a/internal/services/inference/waiter.go b/internal/services/inference/waiter.go new file mode 100644 index 0000000000..712020b1cb --- /dev/null +++ b/internal/services/inference/waiter.go @@ -0,0 +1,26 @@ +package inference + +import ( + "context" + "time" + + inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/transport" +) + +func waitForDeployment(ctx context.Context, inferenceAPI *inference.API, region scw.Region, id string, timeout time.Duration) (*inference.Deployment, error) { + retryInterval := defaultDeploymentRetryInterval + if transport.DefaultWaitRetryInterval != nil { + retryInterval = *transport.DefaultWaitRetryInterval + } + + deployment, err := inferenceAPI.WaitForDeployment(&inference.WaitForDeploymentRequest{ + Region: region, + DeploymentID: id, + RetryInterval: &retryInterval, + Timeout: scw.TimeDurationPtr(timeout), + }, scw.WithContext(ctx)) + + return deployment, err +}