> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Disable spoke mapped Site2cloud forwarding

> POST /v2/api/disable_spoke_mapped_site2cloud_forwarding



## OpenAPI

````yaml /openapi/10.1/aviatrix-api.json post /v2/api/disable_spoke_mapped_site2cloud_forwarding
openapi: 3.1.0
info:
  title: Aviatrix Controller API
  version: '10.1'
  description: >-
    Aviatrix Controller API — version 10.1. Selected operations with Mintlify
    metadata.
servers: []
security: []
tags:
  - name: policies
    x-group: Policies
  - name: authentication
    x-group: Authentication
  - name: account-management
    x-group: Account Management
  - name: rbac
    x-group: RBAC & Permissions
  - name: gateways
    x-group: Gateways
  - name: transit
    x-group: Transit
  - name: nat
    x-group: NAT
  - name: app-domains
    x-group: SmartGroups
  - name: certificates
    x-group: Certificates
  - name: mitm
    x-group: MITM
  - name: monitoring
    x-group: Monitoring & Diagnostics
  - name: fqdn
    x-group: FQDN
  - name: logging
    x-group: Logging
  - name: vpn
    x-group: UserVPN
  - name: site-to-cloud
    x-group: Site-to-Cloud
  - name: controller
    x-group: Controller
  - name: bgp
    x-group: BGP
  - name: general
    x-group: General
  - name: firenet
    x-group: FireNet
  - name: networking
    x-group: Networking
  - name: tgw
    x-group: AWS TGW
  - name: ips
    x-group: IPS
  - name: saml
    x-group: SAML
paths:
  /v2/api/disable_spoke_mapped_site2cloud_forwarding:
    post:
      tags:
        - site-to-cloud
      operationId: disable_spoke_mapped_site2cloud_forwarding
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CID:
                  $ref: '#/components/schemas/CID'
                action:
                  $ref: '#/components/schemas/action'
                active_active:
                  description: .
                  enum:
                    - disable
                    - enable
                  type: string
                algorithms:
                  description: Show supported algorithms.
                  type: boolean
                auth_type:
                  description: 'Auth type: pubkey or psk.'
                  type: string
                bgp_backup_local_ip:
                  description: BGP backup local ip addr.
                  type: string
                bgp_backup_remote_ip:
                  description: BGP backup remote ip addr.
                  type: string
                bgp_local_ip:
                  description: BGP local ip address.
                  type: string
                bgp_only:
                  description: Show transit BGP VPC connections only.
                  type: boolean
                bgp_remote_ip:
                  description: BGP remote ip address.
                  type: string
                cert_based_s2c_ha_remote_id:
                  description: Remote identifier for IKE config in HA gateway.
                  type: string
                cert_based_s2c_remote_id:
                  description: Remote identifier for IKE config in primary gateway.
                  type: string
                cfg_file:
                  description: Connection configuration.
                  type: string
                clear_conntrack:
                  description: Clear connection tracking table entries.
                  type: boolean
                cloud_subnet_cidr:
                  description: Cloud subnet cidr.
                  type: string
                cloud_virt_subnet:
                  description: Cloud virtual subnet.
                  type: string
                cloudwan_only:
                  description: Show Cloud WAN connections only.
                  type: boolean
                connection_name:
                  description: Connection name.
                  type: string
                custom_map:
                  description: .
                  type: boolean
                details:
                  description: Show detailed connection info.
                  type: boolean
                dpd_config:
                  description: DPD config.
                  enum:
                    - disable
                    - enable
                  type: string
                dpd_delay:
                  description: DPD delay.
                  type: string
                dpd_maxfail:
                  description: DPD maxfail.
                  type: string
                dpd_retry:
                  description: DPD retry.
                  type: string
                enable_global_accelerator:
                  description: .
                  type: string
                enable_ha:
                  description: Enable HA.
                  type: boolean
                enable_ikev2:
                  description: Enable IKEv2.
                  type: boolean
                enable_lb_primary:
                  description: .
                  type: boolean
                event_triggered_ha:
                  description: .
                  enum:
                    - disable
                    - enable
                  type: string
                from_transit_spoke:
                  description: Command from transit network page.
                  type: boolean
                gw_name:
                  description: Gateway name.
                  type: string
                jumbo_frame:
                  description: Enable/Disable jumbo frame support.
                  enum:
                    - disable
                    - enable
                  type: string
                key_only:
                  description: Show PSK only.
                  type: boolean
                local_dst_real_cidrs:
                  description: Local destination real cidrs.
                  type: string
                local_dst_virt_cidrs:
                  description: Local destination virtual cidrs.
                  type: string
                local_ip:
                  description: Source IP of tunnel.
                  type: string
                local_ip_backup:
                  description: Source IP of tunnel.
                  type: string
                local_src_real_cidrs:
                  description: Local source real cidrs.
                  type: string
                local_src_virt_cidrs:
                  description: Local source virtual cidrs.
                  type: string
                natt:
                  description: .
                  enum:
                    - disable
                    - enable
                  type: string
                netmap:
                  description: Overlapping customer and cloud networks.
                  type: boolean
                ovpn:
                  description: Opvn_file for client.
                  type: string
                peer_geo_info:
                  description: Geo location of the Peer gateway.
                  type: string
                peer_ip:
                  description: Public IP address of the Peer gateway.
                  type: string
                peer_type:
                  description: Peer gateway type.
                  type: string
                ph1_auth:
                  description: Phase 1 authentication algorithm.
                  type: string
                ph1_dh:
                  description: Phase 1 DH group.
                  type: string
                ph1_encr:
                  description: Phase 1 encryption algorithm.
                  type: string
                ph2_auth:
                  description: Phase 2 authentication algorithm.
                  type: string
                ph2_dh:
                  description: Phase 2 DH group.
                  type: string
                ph2_encr:
                  description: Phase 2 encryption algorithm.
                  type: string
                phase1_identifier:
                  description: .
                  enum:
                    - private_ip
                    - public_ip
                  type: string
                phase1_remote_id:
                  description: Phase 1 remote identification.
                  type: string
                private_route_encr:
                  description: Enable private route encryption.
                  type: boolean
                proto:
                  description: Select UDP.
                  enum:
                    - udp
                  type: string
                proxy_id:
                  description: .
                  enum:
                    - disable
                    - enable
                  type: string
                psk:
                  description: Pre-shared key.
                  type: string
                psk_backup:
                  description: Backup Pre-shared key.
                  type: string
                remote_cidr:
                  description: Remote site CIDR.
                  type: string
                remote_dst_real_cidrs:
                  description: Remote destination real cidrs.
                  type: string
                remote_dst_virt_cidrs:
                  description: Remote destination virtual cidrs.
                  type: string
                remote_peer_backup_private_ip:
                  description: .
                  type: string
                remote_src_real_cidrs:
                  description: Remote source real cidrs.
                  type: string
                remote_src_virt_cidrs:
                  description: Remote source virtual cidrs.
                  type: string
                remote_virt_subnet:
                  description: Remote site virtual subnet.
                  type: string
                route_based:
                  description: Select route based tunnel type.
                  type: boolean
                rtbs_list:
                  description: Route Tables List.
                  type: string
                s2c_cacert_tag_name:
                  description: Remote CA cert name for cert based S2C.
                  type: string
                same_backup_psk:
                  description: Same backup pre-shared key.
                  type: boolean
                save_template:
                  description: Saves the template.
                  type: boolean
                show_connections:
                  description: Show connections in this VPC.
                  type: boolean
                show_gateways:
                  description: Show gateways in this connection.
                  type: boolean
                single_ip_ha:
                  description: Enable single public IP HA.
                  type: boolean
                ssl_server_pool:
                  description: Server pool for SSL, e.g. 192.168.0.0/16.
                  type: string
                transit_only:
                  description: Show transit VPC connections only.
                  type: boolean
                tunnel_address_local:
                  description: .
                  type: string
                tunnel_address_local_backup:
                  description: .
                  type: string
                tunnel_address_remote:
                  description: .
                  type: string
                tunnel_address_remote_backup:
                  description: .
                  type: string
                tunnel_detail:
                  description: Show detailed info.
                  type: boolean
                vpc_id:
                  description: VPC id.
                  type: string
                vti_policy:
                  description: Running vti policy.
                  type: boolean
              required:
                - connection_name
                - vpc_id
              type: object
        required: true
      responses:
        '200':
          $ref: '#/components/responses/general_response_v2'
        default:
          $ref: '#/components/responses/general_response_v2'
      security:
        - SessionKey: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -sk -X POST
            "https://<controller>/v2/api/disable_spoke_mapped_site2cloud_forwarding"
            \
              -H "Authorization: cid <CID>"
        - lang: python
          label: Python
          source: >-
            import requests


            url =
            "https://<controller>/v2/api/disable_spoke_mapped_site2cloud_forwarding"

            headers = {"Authorization": "cid <CID>"}


            response = requests.post(url, headers=headers, verify=False)

            print(response.status_code)

            print(response.text)
        - lang: javascript
          label: JavaScript
          source: >-
            fetch("https://<controller>/v2/api/disable_spoke_mapped_site2cloud_forwarding",
            {
              method: "POST",
              headers: {"Authorization": "cid <CID>"}
            })
              .then(res => res.text())
              .then(console.log)
              .catch(console.error);
        - lang: go
          label: Go
          source: |-
            package main

            import (
              "fmt"
              "net/http"
            )

            func main() {
              req, _ := http.NewRequest("POST", "https://<controller>/v2/api/disable_spoke_mapped_site2cloud_forwarding", nil)
              req.Header.Set("Authorization", "cid <CID>")

              client := &http.Client{}
              resp, err := client.Do(req)
              if err != nil {
                panic(err)
              }
              defer resp.Body.Close()

              fmt.Println(resp.Status)
            }
components:
  schemas:
    CID:
      description: The opaque session ID token. Required for 7.2 controllers only.
      type: string
    action:
      description: The API action to perform. Required for 7.2 controllers only.
      type: string
    general_response_v2:
      additionalProperties: true
      description: A generic API response container for v2 style APIs.
      properties:
        errortype:
          description: Error type if the API failed.
          type: string
        reason:
          description: Failure reason if the API failed.
          type: string
        results:
          oneOf:
            - description: API response data
              type: boolean
            - description: API response data
              type: integer
            - description: API response data
              type: string
            - description: API response data
              type: object
            - description: API response data
              items: {}
              type: array
        return:
          description: Whether the API returned successfully
          type: boolean
      title: General Response v2
      type: object
  responses:
    general_response_v2:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/general_response_v2'
      description: General v2 API response schema.

````