{"type":"api","title":"Host Vpc Tagging","meta":{"id":"/apps/pubhub/media/sd-wan-api-20-16/58fb893fa751949ea20a40274e9ab219a20e19fa/e77267b5-7b4b-3f93-807c-c6d1c6b41343","info":{"title":"Cisco Catalyst SD-WAN Manager API","description":"The vManage API exposes the functionality of operations maintaining devices and the overlay network","contact":{"email":"vmanage@cisco.com"},"license":{"name":"Commercial License","url":"https://www.cisco.com/c/en/us/solutions/enterprise-networks/sd-wan/index.html"},"version":"2.0.0"},"openapi":"3.0.1","servers":[{"url":"/dataservice"}]},"spec":{"tags":["MultiCloud - Tagging"],"description":"Tag a VPC","operationId":"hostVpcTagging","requestBody":{"description":"Payload for tagging a VPC","content":{"application/json":{"schema":{"type":"object","properties":{"hostVpcs":{"type":"array","description":"Used for AWS, AWS GovCloud and GCP cloud types","items":{"required":["accountId","cloudType","hostVpcId","region","vnetId"],"type":"object","properties":{"accountId":{"type":"string"},"accountName":{"type":"string"},"cloudType":{"type":"string"},"hostVpcId":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for AWS, AWS GovCloud and GCP cloud types"},"hostVpcName":{"pattern":"^[a-zA-Z0-9_/\\-]*$","type":"string","description":"Used for AWS, AWS GovCloud and GCP cloud types"},"id":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string"},"label":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string"},"region":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string"},"resourceGroups":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"},"vnetId":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"},"vnetKey":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"},"vpcName":{"pattern":"^[a-zA-Z0-9_/\\-]*$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"}},"description":"Used for AWS, AWS GovCloud and GCP cloud types","$$ref":"#/components/schemas/AllOfhostVpcTagPostHostVpcsItems"}},"interconnectTag":{"type":"boolean"},"tagName":{"type":"string"},"vnets":{"type":"array","description":"Used for Azure and Azure GovCloud cloud types","items":{"required":["accountId","cloudType","hostVpcId","region","vnetId"],"type":"object","properties":{"accountId":{"type":"string"},"accountName":{"type":"string"},"cgwAttachment":{"pattern":"^[\\w.-]{1,128}$","type":"string"},"cgwAutoAttachmentFlag":{"type":"boolean"},"cloudType":{"type":"string"},"hostVpcId":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for AWS, AWS GovCloud and GCP cloud types"},"hostVpcName":{"pattern":"^[a-zA-Z0-9_/\\-]*$","type":"string","description":"Used for AWS, AWS GovCloud and GCP cloud types"},"id":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string"},"label":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string"},"region":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string"},"resourceGroups":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"},"vnetId":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"},"vnetKey":{"pattern":"^[a-zA-Z0-9_./\\-]+$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"},"vpcName":{"pattern":"^[a-zA-Z0-9_/\\-]*$","type":"string","description":"Used for Azure and Azure GovCloud cloud types"}},"description":"Used for Azure and Azure GovCloud cloud types","$$ref":"#/components/schemas/AllOfhostVpcTagPostVnetsItems"}}},"$$ref":"#/components/schemas/HostVpcTagPost"},"examples":{"Tag an AWS VPC":{"description":"Tag an AWS VPC","value":{"tagName":"test-tag","interconnectTag":false,"hostVpcs":[{"accountId":"999293417507","accountName":"test-aws-account","region":"us-west-2","cloudType":"AWS","hostVpcId":"vpc-0fd1fbce44f9db86b","hostVpcName":"test-vpc-1","id":"vpc-0fd1fbce44f9db86b","label":"vpc-0fd1fbce44f9db86b"}]}},"Tag an Azure VNET":{"description":"Tag an Azure VNET","value":{"tagName":"test-azure-tag","interconnectTag":false,"vnets":[{"accountId":"9e222d34-9f20-4a2f-9c01-e507193dabb","accountName":"test-azure-account","region":"us-west-2","cloudType":"AZURE","vnetId":"/subscriptions/9e222d34-9f20-4a2f-9c01-e507193dabb4/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet-1","vnetKey":"9e222d34-9f20-4a2f-9c01-e507193dabb4/test-rg/test-vnet-1","vpcName":"test-vnet-1","resourceGroups":"test-rg","id":"/subscriptions/9e222d34-9f20-4a2f-9c01-e507193dabb4/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet-1","label":"9e222d34-9f20-4a2f-9c01-e507193dabb4/test-rg/test-vnet-1"}]}},"Tag a GCP VPC":{"description":"Tag a GCP VPC","value":{"tagName":"test-gcp-tag","interconnectTag":false,"hostVpcs":[{"accountId":"gcp-test-1234","accountName":"test-gcp-account","region":"us-west-3","cloudType":"GCP","hostVpcId":"8360972143511967399","hostVpcName":"test-vpc-3","tag":"test-tag","interconnectTag":"No","id":"8360972143511967399","label":"8360972143511967399"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"6c723f65-9106-4f43-9d2b-a033a39353b3"}},"description":"Task id for polling status","$$ref":"#/components/schemas/Taskid"}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"__originalOperationId":"hostVpcTagging","method":"post","path":"/multicloud/hostvpc/tags"}}