#cloud #api-client #antimatter

antimatter_api

与Antimatter云API交互

20个稳定版本

2.0.7 2024年8月14日
2.0.6 2024年7月25日
1.1.7 2024年7月24日
1.1.2 2024年6月21日
0.1.11 2024年3月29日

#194 in Web编程

Download history 562/week @ 2024-04-24 130/week @ 2024-05-01 356/week @ 2024-05-08 586/week @ 2024-05-15 702/week @ 2024-05-22 277/week @ 2024-05-29 273/week @ 2024-06-05 108/week @ 2024-06-12 422/week @ 2024-06-19 55/week @ 2024-06-26 243/week @ 2024-07-03 389/week @ 2024-07-10 286/week @ 2024-07-17 478/week @ 2024-07-24 212/week @ 2024-07-31 468/week @ 2024-08-07

1,538 每月下载量
用于 antimatter

Apache-2.0

585KB
9K SLoC

antimatter_api的Rust API客户端

与Antimatter云API交互

概述

此API客户端由OpenAPI Generator项目生成。通过使用来自远程服务器的openapi-spec,您可以轻松生成API客户端。

  • API版本:2.0.7
  • 包版本:2.0.7
  • 生成器版本:7.7.0
  • 构建包: org.openapitools.codegen.languages.RustClientCodegen

安装

将包放入名为 antimatter_api 的目录中,并在 Cargo.toml 下的 [dependencies] 中添加以下内容

antimatter_api = { path = "./antimatter_api" }

API端点文档

所有URI均相对于 https://api.antimatter.io/v2

方法 HTTP请求 描述
AccountManagementApi starred_domain_add PUT /global/starred-domains/{domainID} 添加到收藏域名
AccountManagementApi starred_domain_list GET /global/starred-domains 列出用户的收藏域名
AccountManagementApi starred_domain_remove DELETE /global/starred-domains/{domainID} 从收藏域名中删除
AuthenticationApi domain_authenticate POST /domains/{domainID}/authenticate 使用域名进行认证
AuthenticationApi domain_contact_issue_verify POST /domains/{domainID}/account/verify 发出新的验证请求
AuthenticationApi domain_contact_verify GET /domains/{domainID}/account/verify 验证管理员联系邮箱
AuthenticationApi domain_delete_capability DELETE /domains/{domainID}/control/capabilities/{capability} 删除功能
AuthenticationApi domain_delete_identity_provider DELETE /domains/{domainID}/control/identities/{identityProviderName} 删除身份提供者
AuthenticationApi domain_delete_identity_provider_principal DELETE /domains/{domainID}/control/identities/{identityProviderName}/principals/{principalID} 删除身份提供者主体
AuthenticationApi domain_get_capabilities GET /domains/{domainID}/control/capabilities 获取域功能
AuthenticationApi domain_get_capability GET /domains/{domainID}/control/capabilities/{capability} 获取单个功能
AuthenticationApi domain_get_identity_provider GET /domains/{domainID}/control/identities/{identityProviderName} 获取身份提供者的详细信息
AuthenticationApi domain_get_identity_provider_principal GET /domains/{domainID}/control/identities/{identityProviderName}/principals/{principalID} 获取身份提供者主体详细信息
AuthenticationApi domain_get_identity_provider_principals GET /domains/{domainID}/control/identities/{identityProviderName}/principals 获取身份提供者的主体
AuthenticationApi domain_insert_identity_provider_principal POST /domains/{domainID}/control/identities/{identityProviderName}/principals 为提供者创建新的主体
AuthenticationApi domain_list_identity_providers GET /domains/{domainID}/control/identities 获取域的Identity Providers摘要
AuthenticationApi domain_put_capability PUT /domains/{domainID}/control/capabilities/{capability} 创建或更新能力
AuthenticationApi domain_put_vendor_settings PUT /domains/{domainID}/control/vendor/settings 创建或更新供应商设置
AuthenticationApi domain_update_identity_provider_principal PUT /domains/{domainID}/control/identities/{identityProviderName}/principals/{principalID} 更新身份提供者主体能力
AuthenticationApi domain_upsert_identity_provider PUT /domains/{domainID}/control/identities/{identityProviderName} 创建/更新身份提供者
CapsulesApi capsule_get_by_id GET /capsules/{capsuleID} 通过ID获取Capsule
CapsulesApi domain_delete_capsule_tags POST /domains/{domainID}/capsules/{capsuleID}/capsule-tags/delete 删除capsule级别的标签
CapsulesApi domain_get_capsule_info GET /domains/{domainID}/capsules/{capsuleID} 获取capsule信息
CapsulesApi domain_get_tag_info GET /domains/{domainID}/tag-info 获取前100个标签的有序列表。
CapsulesApi domain_list_capsules GET /domains/{domainID}/capsules 获取capsule列表
CapsulesApi domain_query_access_log GET /domains/{domainID}/log 获取域的数据平面审计日志
CapsulesApi domain_query_access_log_single_capsule GET /domains/{domainID}/capsules/{capsuleID}/log 获取单个capsule的访问日志
CapsulesApi domain_upsert_capsule_tags POST /domains/{domainID}/capsules/{capsuleID}/capsule-tags Upsert capsule范围的标签
ContextsApi domain_delete_read_context DELETE /domains/{domainID}/control/read-context/{contextName} 删除读取上下文
ContextsApi domain_delete_write_context DELETE /domains/{domainID}/control/write-context/{contextName} 删除写入上下文
ContextsApi domain_delete_write_context_classifier_rule DELETE /domains/{domainID}/control/write-context/{contextName}/classifier-rule/{ruleID}
ContextsApi domain_delete_write_context_regex_rule DELETE /domains/{domainID}/control/write-context/{contextName}/regex-rule/{ruleID}
ContextsApi domain_describe_write_context GET /domains/{domainID}/control/write-context/{contextName} 描述写入上下文
ContextsApi domain_get_read_context GET /domains/{domainID}/control/read-context/{contextName} 获取读取上下文
ContextsApi domain_get_write_context_classifier_rules GET /domains/{domainID}/control/write-context/{contextName}/classifier-rule
ContextsApi domain_get_write_context_regex_rules GET /domains/{domainID}/control/write-context/{contextName}/regex-rule
ContextsApi domain_insert_write_context_classifier_rule POST /domains/{domainID}/control/write-context/{contextName}/classifier-rule 插入写入上下文分类规则
ContextsApi domain_insert_write_context_regex_rule POST /domains/{domainID}/control/write-context/{contextName}/regex-rule 插入写入上下文正则表达式规则
ContextsApi domain_list_hooks GET /domains/{domainID}/hooks 列出可用的钩子
ContextsApi domain_list_read_contexts GET /domains/{domainID}/control/read-context 列出域的读取上下文
ContextsApi domain_list_write_contexts GET /domains/{domainID}/control/write-context 列出域的写入上下文
ContextsApi domain_upsert_read_context PUT /domains/{domainID}/control/read-context/{contextName} 更新或创建读取上下文
ContextsApi domain_upsert_write_context PUT /domains/{domainID}/control/write-context/{contextName} Upsert写入上下文
ContextsApi domain_upsert_write_context_configuration PUT /domains/{domainID}/control/write-context/{contextName}/config 更新写入上下文配置
EncryptionApi domain_add_external_root_encryption_key POST /domains/{domainID}/control/encryption/keys 添加新的外部根加密密钥。
EncryptionApi domain_delete_external_root_encryption_key DELETE /domains/{domainID}/control/encryption/keys/{rootEncryptionKeyID} 通过ID删除外部根加密密钥。
EncryptionApi domain_external_root_encryption_key_test POST /domains/{domainID}/control/encryption/keys/{rootEncryptionKeyID}/test 测试根加密密钥的健康状态
EncryptionApi domain_flush_encryption_keys POST /domains/{domainID}/control/encryption/flush 刷新所有加密密钥
EncryptionApi domain_get_active_external_root_encryption_key GET /domains/{domainID}/control/encryption/active-key 获取活动根加密密钥的信息。
EncryptionApi domain_get_external_root_encryption_key_providers GET /domains/{domainID}/control/encryption/providers 返回可用的根加密密钥提供者列表。
EncryptionApi domain_list_external_root_encryption_key GET /domains/{domainID}/control/encryption/keys 列出所有外部根加密密钥。
EncryptionApi domain_rotate_root_encryption_keys POST /domains/{domainID}/control/encryption/rotate 重新加密密钥加密密钥。
EncryptionApi domain_set_active_external_root_encryption_key POST /domains/{domainID}/control/encryption/active-key 设置活动根加密密钥
GeneralApi domain_add_new POST /domains 添加新域名
GeneralApi domain_add_peer_domain POST /domains/{domainID}/peer-domain 添加对等域名
GeneralApi domain_delete_peer DELETE /domains/{domainID}/control/peers/{peerDomainID} 删除对等域名
GeneralApi domain_get_disaster_recovery_settings GET /domains/{domainID}/control/keys/disaster-recovery 获取域名的灾难恢复设置。
GeneralApi domain_get_peer GET /domains/{domainID}/peer-domain 通过昵称或别名获取对等域名
GeneralApi domain_get_peer_config GET /domains/{domainID}/control/peers/{peerDomainID} 获取对等配置
GeneralApi domain_get_private_info GET /domains/{domainID}/info 获取域名的摘要信息
GeneralApi domain_get_public_info GET /domains/{domainID}/public-info 获取域名的公共信息
GeneralApi domain_get_settings GET /domains/{domainID}/control/settings 获取域名设置
GeneralApi domain_get_status GET /domains/{domainID}/control/status 获取域名状态
GeneralApi domain_get_vendor_settings GET /domains/{domainID}/control/vendor/settings 获取域名的供应商设置
GeneralApi domain_list_peers GET /domains/{domainID}/control/peers 列出域名对等体
GeneralApi domain_put_disaster_recovery_settings PUT /domains/{domainID}/control/keys/disaster-recovery 创建或更新域名的灾难恢复设置。
GeneralApi domain_put_settings PUT /domains/{domainID}/control/settings 更新域名设置
GeneralApi domain_query_control_log GET /domains/{domainID}/control/log 获取域名控制平面审计日志
GeneralApi domain_update_peer PUT /domains/{domainID}/control/peers/{peerDomainID} 更新对等配置
InternalApi domain_add_access_log_entry POST /domains/{domainID}/capsules/{capsuleID}/log 添加胶囊审计日志条目
InternalApi domain_create_capsule POST /domains/{domainID}/capsules 创建胶囊
InternalApi domain_data_tagging_hook_invoke POST /domains/{domainID}/hooks/data-tagging/{hookName}/invoke 调用钩子
InternalApi domain_data_tagging_hook_test POST /domains/{domainID}/hooks/data-tagging/{hookName}/test 使用实际输入测试分类器规则
InternalApi domain_open_capsule POST /domains/{domainID}/capsules/{capsuleID}/open 打开胶囊以供阅读
InternalApi domain_seal_capsule POST /domains/{domainID}/capsules/{capsuleID}/seal 密封胶囊
InternalApi domain_upsert_span_tags PUT /domains/{domainID}/capsules/{capsuleID}/span-tags 更新span-scope标签
KeychainApi keychain_create_workspace POST /keychain/workspaces 创建工作区
KeychainApi keychain_get_workspace_info GET /keychain/workspaces/{workspace}/info 获取工作区信息
KeychainApi keychain_get_workspace_objects GET /keychain/workspaces/{workspace}/objects 获取工作区中的对象批处理
KeychainApi keychain_put_workspace_objects POST /keychain/workspaces/{workspace}/objects 将对象批处理放入工作区
PolicyApi domain_create_data_policy POST /domains/{domainID}/control/data-policy 创建新的数据策略
PolicyApi domain_create_policy_rule POST /domains/{domainID}/control/policy 创建域名策略规则
PolicyApi domain_data_policy_configure_rules POST /domains/{domainID}/control/data-policy/{policyID}/rules 配置数据策略规则
PolicyApi domain_data_policy_rule_update PUT /domains/{domainID}/control/data-policy/{policyID}/rules/{ruleID} 配置数据策略规则
PolicyApi domain_delete_data_policy DELETE /domains/{domainID}/control/data-policy/{policyID} 删除数据策略
PolicyApi domain_delete_data_policy_rule DELETE /domains/{domainID}/control/data-policy/{policyID}/rules/{ruleID} 删除数据策略规则
PolicyApi domain_delete_fact_by_id DELETE /domains/{domainID}/control/facts/{factType}/{factID} 删除事实
PolicyApi domain_delete_fact_by_tuple DELETE /domains/{domainID}/control/facts/{factType}/tuple 删除事实
PolicyApi domain_delete_fact_type DELETE /domains/{domainID}/control/facts/{factType} 删除事实类型
PolicyApi domain_delete_policy_rule DELETE /domains/{domainID}/control/policy/{ruleID} 删除域名策略规则
PolicyApi domain_get_data_policy GET /domains/{domainID}/control/data-policy/{policyID} 获取数据策略
PolicyApi domain_get_data_policy_binding GET /domains/{domainID}/control/data-policy/{policyID}/binding 检索数据策略绑定
PolicyApi domain_get_data_policy_rule GET /domains/{domainID}/control/data-policy/{policyID}/rules/{ruleID} 获取数据策略规则
PolicyApi domain_get_fact_by_id GET /domains/{domainID}/control/facts/{factType}/{factID} 通过ID获取事实
PolicyApi domain_get_fact_type GET /domains/{domainID}/control/facts/{factType} 获取事实类型定义
PolicyApi domain_list_data_policies GET /domains/{domainID}/control/data-policy
PolicyApi domain_list_fact_types GET /domains/{domainID}/control/facts 列出域的事实类型
PolicyApi domain_list_facts GET /domains/{domainID}/control/facts/{factType}/list 获取类型的事实
PolicyApi domain_list_policy_rules GET /domains/{domainID}/control/policy 获取域名策略规则
PolicyApi domain_list_resources GET /domains/{domainID}/control/resources 获取访问控制资源路径摘要
PolicyApi domain_policy_flush POST /domains/{domainID}/control/policy/flush 刷新策略缓存
PolicyApi domain_put_fact_type PUT /domains/{domainID}/control/facts/{factType} 创建事实类型
PolicyApi domain_renumber_data_policy_rules POST /domains/{domainID}/control/data-policy/{policyID}/renumber 重新分配规则编号
PolicyApi domain_renumber_policy_rules POST /domains/{domainID}/control/policy/renumber 重新分配规则编号
PolicyApi domain_set_data_policy_binding PUT /domains/{domainID}/control/data-policy/{policyID}/binding 配置数据策略绑定
PolicyApi domain_update_data_policy PUT /domains/{domainID}/control/data-policy/{policyID} 更新数据策略
PolicyApi domain_update_policy_rule PUT /domains/{domainID}/control/policy/{ruleID} 更新域名策略规则
PolicyApi domain_upsert_fact POST /domains/{domainID}/control/facts/{factType}/new 插入或更新事实

模型文档

要获取crate生成的文档,请使用

cargo doc --open

作者

[email protected]

依赖关系

~8–19MB
~289K SLoC