# Cf1 Sites ## List CF1 Sites `client.MagicTransit.Cf1Sites.List(ctx, query) (*SinglePage[Cf1Site], error)` **get** `/accounts/{account_id}/magic/cf1_sites` Lists CF1 Sites associated with an account. A CF1 Site represents a physical customer network location with optional geographic coordinates. ### Parameters - `query Cf1SiteListParams` - `AccountID param.Field[string]` Identifier ### Returns - `type Cf1Site struct{…}` - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) page, err := client.MagicTransit.Cf1Sites.List(context.TODO(), magic_transit.Cf1SiteListParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", page) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "name": "Pad 34", "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "description": "Launch Pad 34", "location": { "lat": 28.521339842093845, "long": -80.56092644815843, "name": "Cape Canaveral" }, "modified_on": "2019-12-27T18:11:19.117Z" } ], "success": true } ``` ## Get CF1 Site `client.MagicTransit.Cf1Sites.Get(ctx, cf1SiteID, query) (*Cf1Site, error)` **get** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}` Gets a specific CF1 Site for an account. ### Parameters - `cf1SiteID string` Identifier - `query Cf1SiteGetParams` - `AccountID param.Field[string]` Identifier ### Returns - `type Cf1Site struct{…}` - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) cf1Site, err := client.MagicTransit.Cf1Sites.Get( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteGetParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", cf1Site.ID) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "name": "Pad 34", "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "description": "Launch Pad 34", "location": { "lat": 28.521339842093845, "long": -80.56092644815843, "name": "Cape Canaveral" }, "modified_on": "2019-12-27T18:11:19.117Z" }, "success": true } ``` ## Create CF1 Sites `client.MagicTransit.Cf1Sites.New(ctx, params) (*SinglePage[Cf1Site], error)` **post** `/accounts/{account_id}/magic/cf1_sites` Creates new CF1 Sites for an account. Each site must have a unique name within the account. ### Parameters - `params Cf1SiteNewParams` - `AccountID param.Field[string]` Path param: Identifier - `Body param.Field[[]Cf1Site]` Body param - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Returns - `type Cf1Site struct{…}` - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) page, err := client.MagicTransit.Cf1Sites.New(context.TODO(), magic_transit.Cf1SiteNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Body: []magic_transit.Cf1SiteParam{magic_transit.Cf1SiteParam{ Name: cloudflare.F("Pad 34"), }}, }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", page) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "name": "Pad 34", "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "description": "Launch Pad 34", "location": { "lat": 28.521339842093845, "long": -80.56092644815843, "name": "Cape Canaveral" }, "modified_on": "2019-12-27T18:11:19.117Z" } ], "success": true } ``` ## Update CF1 Site `client.MagicTransit.Cf1Sites.Update(ctx, cf1SiteID, params) (*Cf1Site, error)` **patch** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}` Partially updates a specific CF1 Site for an account. Only the fields included in the request body are modified; omitted fields retain their existing values. ### Parameters - `cf1SiteID string` Identifier - `params Cf1SiteUpdateParams` - `AccountID param.Field[string]` Path param: Identifier - `Description param.Field[string]` Body param: A human-provided description of the CF1 Site. - `Location param.Field[Cf1SiteLocation]` Body param - `Name param.Field[string]` Body param: A human-provided name describing the CF1 Site that should be unique within the account. ### Returns - `type Cf1Site struct{…}` - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) cf1Site, err := client.MagicTransit.Cf1Sites.Update( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteUpdateParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", cf1Site.ID) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "name": "Pad 34", "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "description": "Launch Pad 34", "location": { "lat": 28.521339842093845, "long": -80.56092644815843, "name": "Cape Canaveral" }, "modified_on": "2019-12-27T18:11:19.117Z" }, "success": true } ``` ## Delete CF1 Site `client.MagicTransit.Cf1Sites.Delete(ctx, cf1SiteID, body) (*Cf1Site, error)` **delete** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}` Deletes a specific CF1 Site for an account. ### Parameters - `cf1SiteID string` Identifier - `body Cf1SiteDeleteParams` - `AccountID param.Field[string]` Identifier ### Returns - `type Cf1Site struct{…}` - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) cf1Site, err := client.MagicTransit.Cf1Sites.Delete( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteDeleteParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", cf1Site.ID) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "name": "Pad 34", "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "description": "Launch Pad 34", "location": { "lat": 28.521339842093845, "long": -80.56092644815843, "name": "Cape Canaveral" }, "modified_on": "2019-12-27T18:11:19.117Z" }, "success": true } ``` ## Domain Types ### Cf1 Site - `type Cf1Site struct{…}` - `Name string` A human-provided name describing the CF1 Site that should be unique within the account. - `ID string` Identifier - `CreatedOn Time` - `Description string` A human-provided description of the CF1 Site. - `Location Cf1SiteLocation` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. - `ModifiedOn Time` ### Cf1 Site Location - `type Cf1SiteLocation struct{…}` - `Lat float64` Latitude of the CF1 Site. - `Long float64` Longitude of the CF1 Site. - `Name string` Name of nearest town, city, or village. # Ramps ## List CF1 Site Ramps `client.MagicTransit.Cf1Sites.Ramps.List(ctx, cf1SiteID, query) (*SinglePage[Ramp], error)` **get** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}/ramps` Lists ramps (network connections) associated with a CF1 Site. Ramps represent GRE tunnels, IPsec tunnels, interconnects, or MCONN links. ### Parameters - `cf1SiteID string` Identifier - `query Cf1SiteRampListParams` - `AccountID param.Field[string]` Identifier ### Returns - `type Ramp struct{…}` - `ID string` Identifier - `CreatedOn Time` - `ModifiedOn Time` - `Name string` A human-provided name describing the ramp that should be unique within the CF1 Site. - `Type RampType` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"` - `Description string` A human-provided description of the ramp. - `GRE RampGRE` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `GREInterconnect RampGREInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `IPSEC RampIPSEC` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `Mconn RampMconn` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `MplsInterconnect RampMplsInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) page, err := client.MagicTransit.Cf1Sites.Ramps.List( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteRampListParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", page) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "modified_on": "2019-12-27T18:11:19.117Z", "name": "primary_gre_ramp", "type": "gre", "description": "Primary CF GRE tunnel", "gre": { "managed_by": "managed_by" }, "gre_interconnect": { "managed_by": "managed_by" }, "ipsec": { "managed_by": "managed_by" }, "mconn": { "managed_by": "managed_by" }, "mpls_interconnect": { "managed_by": "managed_by" } } ], "success": true } ``` ## Get CF1 Site Ramp `client.MagicTransit.Cf1Sites.Ramps.Get(ctx, cf1SiteID, rampID, query) (*Ramp, error)` **get** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}/ramps/{ramp_id}` Gets a specific ramp for a CF1 Site. ### Parameters - `cf1SiteID string` Identifier - `rampID string` Identifier - `query Cf1SiteRampGetParams` - `AccountID param.Field[string]` Identifier ### Returns - `type Ramp struct{…}` - `ID string` Identifier - `CreatedOn Time` - `ModifiedOn Time` - `Name string` A human-provided name describing the ramp that should be unique within the CF1 Site. - `Type RampType` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"` - `Description string` A human-provided description of the ramp. - `GRE RampGRE` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `GREInterconnect RampGREInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `IPSEC RampIPSEC` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `Mconn RampMconn` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `MplsInterconnect RampMplsInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) ramp, err := client.MagicTransit.Cf1Sites.Ramps.Get( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteRampGetParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", ramp.ID) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "modified_on": "2019-12-27T18:11:19.117Z", "name": "primary_gre_ramp", "type": "gre", "description": "Primary CF GRE tunnel", "gre": { "managed_by": "managed_by" }, "gre_interconnect": { "managed_by": "managed_by" }, "ipsec": { "managed_by": "managed_by" }, "mconn": { "managed_by": "managed_by" }, "mpls_interconnect": { "managed_by": "managed_by" } }, "success": true } ``` ## Create CF1 Site Ramps `client.MagicTransit.Cf1Sites.Ramps.New(ctx, cf1SiteID, params) (*SinglePage[Ramp], error)` **post** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}/ramps` Creates ramps (network connections) for a CF1 Site. ### Parameters - `cf1SiteID string` Identifier - `params Cf1SiteRampNewParams` - `AccountID param.Field[string]` Path param: Identifier - `Body param.Field[[]Cf1SiteRampNewParamsBody]` Body param - `SourceRampID string` Identifier of the source network resource to associate as a ramp. - `Type RampType` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"` ### Returns - `type Ramp struct{…}` - `ID string` Identifier - `CreatedOn Time` - `ModifiedOn Time` - `Name string` A human-provided name describing the ramp that should be unique within the CF1 Site. - `Type RampType` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"` - `Description string` A human-provided description of the ramp. - `GRE RampGRE` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `GREInterconnect RampGREInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `IPSEC RampIPSEC` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `Mconn RampMconn` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `MplsInterconnect RampMplsInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) page, err := client.MagicTransit.Cf1Sites.Ramps.New( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteRampNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Body: []magic_transit.Cf1SiteRampNewParamsBody{magic_transit.Cf1SiteRampNewParamsBody{ SourceRampID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Type: cloudflare.F(magic_transit.RampTypeGRE), }}, }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", page) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "modified_on": "2019-12-27T18:11:19.117Z", "name": "primary_gre_ramp", "type": "gre", "description": "Primary CF GRE tunnel", "gre": { "managed_by": "managed_by" }, "gre_interconnect": { "managed_by": "managed_by" }, "ipsec": { "managed_by": "managed_by" }, "mconn": { "managed_by": "managed_by" }, "mpls_interconnect": { "managed_by": "managed_by" } } ], "success": true } ``` ## Delete CF1 Site Ramp `client.MagicTransit.Cf1Sites.Ramps.Delete(ctx, cf1SiteID, rampID, body) (*Ramp, error)` **delete** `/accounts/{account_id}/magic/cf1_sites/{cf1_site_id}/ramps/{ramp_id}` Deletes a specific ramp from a CF1 Site. ### Parameters - `cf1SiteID string` Identifier - `rampID string` Identifier - `body Cf1SiteRampDeleteParams` - `AccountID param.Field[string]` Identifier ### Returns - `type Ramp struct{…}` - `ID string` Identifier - `CreatedOn Time` - `ModifiedOn Time` - `Name string` A human-provided name describing the ramp that should be unique within the CF1 Site. - `Type RampType` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"` - `Description string` A human-provided description of the ramp. - `GRE RampGRE` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `GREInterconnect RampGREInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `IPSEC RampIPSEC` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `Mconn RampMconn` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `MplsInterconnect RampMplsInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/magic_transit" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) ramp, err := client.MagicTransit.Cf1Sites.Ramps.Delete( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.Cf1SiteRampDeleteParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", ramp.ID) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2019-12-27T18:11:19.117Z", "modified_on": "2019-12-27T18:11:19.117Z", "name": "primary_gre_ramp", "type": "gre", "description": "Primary CF GRE tunnel", "gre": { "managed_by": "managed_by" }, "gre_interconnect": { "managed_by": "managed_by" }, "ipsec": { "managed_by": "managed_by" }, "mconn": { "managed_by": "managed_by" }, "mpls_interconnect": { "managed_by": "managed_by" } }, "success": true } ``` ## Domain Types ### Ramp - `type Ramp struct{…}` - `ID string` Identifier - `CreatedOn Time` - `ModifiedOn Time` - `Name string` A human-provided name describing the ramp that should be unique within the CF1 Site. - `Type RampType` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"` - `Description string` A human-provided description of the ramp. - `GRE RampGRE` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `GREInterconnect RampGREInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `IPSEC RampIPSEC` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `Mconn RampMconn` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. - `MplsInterconnect RampMplsInterconnect` - `ManagedBy string` URL reference to the source network resource that this ramp is managed by. ### Ramp Type - `type RampType string` The type of network connection (ramp) linking a CF1 Site to Cloudflare's network. - `const RampTypeGRE RampType = "gre"` - `const RampTypeGREInterconnect RampType = "gre_interconnect"` - `const RampTypeMplsInterconnect RampType = "mpls_interconnect"` - `const RampTypeMconn RampType = "mconn"` - `const RampTypeIPSEC RampType = "ipsec"`