{"openapi":"3.1.0","info":{"title":"Punos API","version":"0.2.0"},"paths":{"/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/totp/enroll":{"post":{"tags":["auth"],"summary":"Totp Enroll","operationId":"totp_enroll_v1_auth_totp_enroll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/totp/enroll/confirm":{"post":{"tags":["auth"],"summary":"Totp Enroll Confirm","operationId":"totp_enroll_confirm_v1_auth_totp_enroll_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/totp":{"post":{"tags":["auth"],"summary":"Totp Login","operationId":"totp_login_v1_auth_totp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/session":{"get":{"tags":["auth"],"summary":"Session State","description":"Where a sign-in stands: 'enroll', 'mfa' or 'full'. 401 if there is none.","operationId":"session_state_v1_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/v1/auth/invite/accept":{"post":{"tags":["auth"],"summary":"Invite Accept","operationId":"invite_accept_v1_auth_invite_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteAccept"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/me/password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_v1_me_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}":{"get":{"tags":["tenant"],"summary":"Tenant Info","operationId":"tenant_info_v1_tenants__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/members":{"get":{"tags":["tenant"],"summary":"Members","operationId":"members_v1_tenants__tenant_id__members_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tenant"],"summary":"Member Add","operationId":"member_add_v1_tenants__tenant_id__members_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/members/{user_id}":{"patch":{"tags":["tenant"],"summary":"Member Update","operationId":"member_update_v1_tenants__tenant_id__members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tenant"],"summary":"Member Remove","operationId":"member_remove_v1_tenants__tenant_id__members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/tokens":{"get":{"tags":["tenant"],"summary":"Tokens","operationId":"tokens_v1_tenants__tenant_id__tokens_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tenant"],"summary":"Token Create","operationId":"token_create_v1_tenants__tenant_id__tokens_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/tokens/{token_id}":{"delete":{"tags":["tenant"],"summary":"Token Revoke","operationId":"token_revoke_v1_tenants__tenant_id__tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Token Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/audit":{"get":{"tags":["tenant"],"summary":"Audit List","operationId":"audit_list_v1_tenants__tenant_id__audit_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before Id"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60,"pattern":"^[a-z_.]+$"},{"type":"null"}],"title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/zones":{"get":{"tags":["zones"],"summary":"Zone List","operationId":"zone_list_v1_tenants__tenant_id__zones_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["zones"],"summary":"Zone Create","operationId":"zone_create_v1_tenants__tenant_id__zones_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/zones/{zone_id}":{"get":{"tags":["zones"],"summary":"Zone Get","operationId":"zone_get_v1_tenants__tenant_id__zones__zone_id__get","parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["zones"],"summary":"Zone Delete","operationId":"zone_delete_v1_tenants__tenant_id__zones__zone_id__delete","parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneDelete"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/zones/{zone_id}/verify":{"post":{"tags":["zones"],"summary":"Zone Verify","operationId":"zone_verify_v1_tenants__tenant_id__zones__zone_id__verify_post","parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/zones/{zone_id}/dnssec":{"get":{"tags":["zones"],"summary":"Zone Dnssec","operationId":"zone_dnssec_v1_tenants__tenant_id__zones__zone_id__dnssec_get","parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/zones/{zone_id}/rrsets":{"get":{"tags":["zones"],"summary":"Rrset List","operationId":"rrset_list_v1_tenants__tenant_id__zones__zone_id__rrsets_get","parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":260},{"type":"null"}],"title":"Name"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["zones"],"summary":"Rrset Patch","description":"Apply a batch of record changes. The batch is applied as a whole or\nnot at all.","operationId":"rrset_patch_v1_tenants__tenant_id__zones__zone_id__rrsets_patch","parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RRsetPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/spaces":{"get":{"tags":["ipam"],"summary":"Space List","operationId":"space_list_v1_tenants__tenant_id__ipam_spaces_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ipam"],"summary":"Space Create","operationId":"space_create_v1_tenants__tenant_id__ipam_spaces_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/spaces/{space_id}":{"delete":{"tags":["ipam"],"summary":"Space Delete","operationId":"space_delete_v1_tenants__tenant_id__ipam_spaces__space_id__delete","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/networks":{"get":{"tags":["ipam"],"summary":"Network List","description":"Every network of a space, in address order, with its parent, its depth\nin the tree and how many addresses are recorded inside it.","operationId":"network_list_v1_tenants__tenant_id__ipam_networks_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"space_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ipam"],"summary":"Network Create","operationId":"network_create_v1_tenants__tenant_id__ipam_networks_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/networks/{network_id}/next-network":{"post":{"tags":["ipam"],"summary":"Network Next","description":"Create the first free subnet of the wanted size inside a network.","operationId":"network_next_v1_tenants__tenant_id__ipam_networks__network_id__next_network_post","parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Network Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkNext"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/networks/{network_id}":{"get":{"tags":["ipam"],"summary":"Network Get","operationId":"network_get_v1_tenants__tenant_id__ipam_networks__network_id__get","parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Network Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["ipam"],"summary":"Network Update","operationId":"network_update_v1_tenants__tenant_id__ipam_networks__network_id__patch","parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Network Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ipam"],"summary":"Network Delete","description":"Removes the network only. Its subnets and addresses stay in the space\nand belong to whatever network contains them next.","operationId":"network_delete_v1_tenants__tenant_id__ipam_networks__network_id__delete","parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Network Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/addresses":{"get":{"tags":["ipam"],"summary":"Address List","operationId":"address_list_v1_tenants__tenant_id__ipam_addresses_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"space_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ipam"],"summary":"Address Create","operationId":"address_create_v1_tenants__tenant_id__ipam_addresses_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/networks/{network_id}/next-address":{"post":{"tags":["ipam"],"summary":"Address Next","description":"Record the first free address of a network.","operationId":"address_next_v1_tenants__tenant_id__ipam_networks__network_id__next_address_post","parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Network Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressNext"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/ipam/addresses/{address_id}":{"patch":{"tags":["ipam"],"summary":"Address Update","operationId":"address_update_v1_tenants__tenant_id__ipam_addresses__address_id__patch","parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Address Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ipam"],"summary":"Address Delete","operationId":"address_delete_v1_tenants__tenant_id__ipam_addresses__address_id__delete","parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Address Id"}},{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/search":{"get":{"tags":["search"],"summary":"Search","description":"Networks, addresses and zones whose address, name, description or\ntags contain the text. An IP address also finds the networks around it.","operationId":"search_v1_tenants__tenant_id__search_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":100,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants":{"get":{"tags":["provider"],"summary":"Tenant List","operationId":"tenant_list_v1_admin_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["provider"],"summary":"Tenant Create","operationId":"tenant_create_v1_admin_tenants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}":{"patch":{"tags":["provider"],"summary":"Tenant Update","operationId":"tenant_update_v1_admin_tenants__tenant_id__patch","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/zones/{zone_id}/activate":{"post":{"tags":["provider"],"summary":"Zone Activate","description":"Activate a claimed zone without the TXT proof. For domains whose\nownership the provider has checked another way, and for taking over a\nzone that already exists in PowerDNS (adopt_existing).","operationId":"zone_activate_v1_admin_tenants__tenant_id__zones__zone_id__activate_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneActivate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/invite":{"post":{"tags":["provider"],"summary":"User Invite","description":"A new set-password link, for an expired invitation or a lost password.\nThe user's authenticator is not reset by this.","operationId":"user_invite_v1_admin_users__user_id__invite_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/audit":{"get":{"tags":["provider"],"summary":"Audit List","operationId":"audit_list_v1_admin_audit_get","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddressCreate":{"properties":{"space_id":{"type":"string","format":"uuid","title":"Space Id"},"ip":{"type":"string","maxLength":50,"minLength":3,"title":"Ip"},"status":{"type":"string","enum":["used","reserved"],"title":"Status","default":"used"},"hostname":{"type":"string","maxLength":253,"title":"Hostname","default":""},"mac":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mac"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"}},"additionalProperties":false,"type":"object","required":["space_id","ip"],"title":"AddressCreate"},"AddressNext":{"properties":{"status":{"type":"string","enum":["used","reserved"],"title":"Status","default":"used"},"hostname":{"type":"string","maxLength":253,"title":"Hostname","default":""},"mac":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mac"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"}},"additionalProperties":false,"type":"object","title":"AddressNext"},"AddressUpdate":{"properties":{"status":{"anyOf":[{"type":"string","enum":["used","reserved"]},{"type":"null"}],"title":"Status"},"hostname":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Hostname"},"mac":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mac"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Tags"}},"additionalProperties":false,"type":"object","title":"AddressUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InviteAccept":{"properties":{"token":{"type":"string","maxLength":200,"minLength":10,"title":"Token"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"}},"additionalProperties":false,"type":"object","required":["token","password"],"title":"InviteAccept"},"Login":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["email","password"],"title":"Login"},"MemberAdd":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"role":{"type":"string","enum":["owner","admin","editor","viewer"],"title":"Role"}},"additionalProperties":false,"type":"object","required":["email","role"],"title":"MemberAdd"},"MemberUpdate":{"properties":{"role":{"type":"string","enum":["owner","admin","editor","viewer"],"title":"Role"}},"additionalProperties":false,"type":"object","required":["role"],"title":"MemberUpdate"},"NetworkCreate":{"properties":{"space_id":{"type":"string","format":"uuid","title":"Space Id"},"cidr":{"type":"string","maxLength":50,"minLength":3,"title":"Cidr"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"vlan":{"anyOf":[{"type":"integer","maximum":4094.0,"minimum":1.0},{"type":"null"}],"title":"Vlan"},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"}},"additionalProperties":false,"type":"object","required":["space_id","cidr"],"title":"NetworkCreate"},"NetworkNext":{"properties":{"prefix_len":{"type":"integer","maximum":128.0,"minimum":1.0,"title":"Prefix Len"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"vlan":{"anyOf":[{"type":"integer","maximum":4094.0,"minimum":1.0},{"type":"null"}],"title":"Vlan"},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"}},"additionalProperties":false,"type":"object","required":["prefix_len"],"title":"NetworkNext"},"NetworkUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"vlan":{"anyOf":[{"type":"integer","maximum":4094.0,"minimum":1.0},{"type":"null"}],"title":"Vlan"},"tags":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Tags"}},"additionalProperties":false,"type":"object","title":"NetworkUpdate"},"PasswordChange":{"properties":{"current_password":{"type":"string","maxLength":128,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":12,"title":"New Password"}},"additionalProperties":false,"type":"object","required":["current_password","new_password"],"title":"PasswordChange"},"RRsetChange":{"properties":{"name":{"type":"string","maxLength":260,"title":"Name"},"type":{"type":"string","maxLength":10,"title":"Type"},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl"},"records":{"anyOf":[{"items":{"type":"string","maxLength":4096},"type":"array"},{"type":"null"}],"title":"Records"},"delete":{"type":"boolean","title":"Delete","default":false}},"additionalProperties":false,"type":"object","required":["name","type"],"title":"RRsetChange"},"RRsetPatch":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/RRsetChange"},"type":"array","maxItems":500,"minItems":1,"title":"Changes"}},"additionalProperties":false,"type":"object","required":["changes"],"title":"RRsetPatch"},"SpaceCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""}},"additionalProperties":false,"type":"object","required":["name"],"title":"SpaceCreate"},"TenantCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Slug"},"owner_email":{"type":"string","maxLength":254,"title":"Owner Email"}},"additionalProperties":false,"type":"object","required":["name","slug","owner_email"],"title":"TenantCreate"},"TenantUpdate":{"properties":{"status":{"anyOf":[{"type":"string","enum":["active","suspended"]},{"type":"null"}],"title":"Status"},"max_zones":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Max Zones"},"max_rrsets_per_zone":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Rrsets Per Zone"},"max_networks":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Networks"},"max_addresses":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Addresses"}},"additionalProperties":false,"type":"object","title":"TenantUpdate"},"TokenCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"role":{"type":"string","enum":["admin","editor","viewer"],"title":"Role"},"expires_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Expires Days","default":90}},"additionalProperties":false,"type":"object","required":["name","role"],"title":"TokenCreate"},"TotpConfirm":{"properties":{"code":{"type":"string","maxLength":10,"minLength":6,"title":"Code"}},"additionalProperties":false,"type":"object","required":["code"],"title":"TotpConfirm"},"TotpLogin":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":10,"minLength":6},{"type":"null"}],"title":"Code"},"recovery_code":{"anyOf":[{"type":"string","maxLength":40,"minLength":16},{"type":"null"}],"title":"Recovery Code"}},"additionalProperties":false,"type":"object","title":"TotpLogin"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ZoneActivate":{"properties":{"adopt_existing":{"type":"boolean","title":"Adopt Existing","default":false}},"additionalProperties":false,"type":"object","title":"ZoneActivate"},"ZoneCreate":{"properties":{"name":{"type":"string","maxLength":260,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ZoneCreate"},"ZoneDelete":{"properties":{"confirm":{"type":"string","maxLength":260,"title":"Confirm"}},"additionalProperties":false,"type":"object","required":["confirm"],"title":"ZoneDelete"}}}}