pub struct KeyManagementAPI { /* private fields */ }
Expand description
Manage your Datadog API and application keys. You need an API key and an application key for a user with the required permissions to interact with these endpoints.
Consult the following pages to view and manage your keys:
Implementations§
Source§impl KeyManagementAPI
impl KeyManagementAPI
pub fn new() -> Self
Sourcepub fn with_config(config: Configuration) -> Self
pub fn with_config(config: Configuration) -> Self
pub fn with_client_and_config( config: Configuration, client: ClientWithMiddleware, ) -> Self
Sourcepub async fn create_api_key(
&self,
body: ApiKey,
) -> Result<ApiKeyResponse, Error<CreateAPIKeyError>>
pub async fn create_api_key( &self, body: ApiKey, ) -> Result<ApiKeyResponse, Error<CreateAPIKeyError>>
Creates an API key with a given name.
Sourcepub async fn create_api_key_with_http_info(
&self,
body: ApiKey,
) -> Result<ResponseContent<ApiKeyResponse>, Error<CreateAPIKeyError>>
pub async fn create_api_key_with_http_info( &self, body: ApiKey, ) -> Result<ResponseContent<ApiKeyResponse>, Error<CreateAPIKeyError>>
Creates an API key with a given name.
Sourcepub async fn create_application_key(
&self,
body: ApplicationKey,
) -> Result<ApplicationKeyResponse, Error<CreateApplicationKeyError>>
pub async fn create_application_key( &self, body: ApplicationKey, ) -> Result<ApplicationKeyResponse, Error<CreateApplicationKeyError>>
Create an application key with a given name.
Sourcepub async fn create_application_key_with_http_info(
&self,
body: ApplicationKey,
) -> Result<ResponseContent<ApplicationKeyResponse>, Error<CreateApplicationKeyError>>
pub async fn create_application_key_with_http_info( &self, body: ApplicationKey, ) -> Result<ResponseContent<ApplicationKeyResponse>, Error<CreateApplicationKeyError>>
Create an application key with a given name.
Sourcepub async fn delete_api_key(
&self,
key: String,
) -> Result<ApiKeyResponse, Error<DeleteAPIKeyError>>
pub async fn delete_api_key( &self, key: String, ) -> Result<ApiKeyResponse, Error<DeleteAPIKeyError>>
Delete a given API key.
Sourcepub async fn delete_api_key_with_http_info(
&self,
key: String,
) -> Result<ResponseContent<ApiKeyResponse>, Error<DeleteAPIKeyError>>
pub async fn delete_api_key_with_http_info( &self, key: String, ) -> Result<ResponseContent<ApiKeyResponse>, Error<DeleteAPIKeyError>>
Delete a given API key.
Sourcepub async fn delete_application_key(
&self,
key: String,
) -> Result<ApplicationKeyResponse, Error<DeleteApplicationKeyError>>
pub async fn delete_application_key( &self, key: String, ) -> Result<ApplicationKeyResponse, Error<DeleteApplicationKeyError>>
Delete a given application key.
Sourcepub async fn delete_application_key_with_http_info(
&self,
key: String,
) -> Result<ResponseContent<ApplicationKeyResponse>, Error<DeleteApplicationKeyError>>
pub async fn delete_application_key_with_http_info( &self, key: String, ) -> Result<ResponseContent<ApplicationKeyResponse>, Error<DeleteApplicationKeyError>>
Delete a given application key.
Sourcepub async fn get_api_key(
&self,
key: String,
) -> Result<ApiKeyResponse, Error<GetAPIKeyError>>
pub async fn get_api_key( &self, key: String, ) -> Result<ApiKeyResponse, Error<GetAPIKeyError>>
Get a given API key.
Sourcepub async fn get_api_key_with_http_info(
&self,
key: String,
) -> Result<ResponseContent<ApiKeyResponse>, Error<GetAPIKeyError>>
pub async fn get_api_key_with_http_info( &self, key: String, ) -> Result<ResponseContent<ApiKeyResponse>, Error<GetAPIKeyError>>
Get a given API key.
Sourcepub async fn get_application_key(
&self,
key: String,
) -> Result<ApplicationKeyResponse, Error<GetApplicationKeyError>>
pub async fn get_application_key( &self, key: String, ) -> Result<ApplicationKeyResponse, Error<GetApplicationKeyError>>
Get a given application key.
Sourcepub async fn get_application_key_with_http_info(
&self,
key: String,
) -> Result<ResponseContent<ApplicationKeyResponse>, Error<GetApplicationKeyError>>
pub async fn get_application_key_with_http_info( &self, key: String, ) -> Result<ResponseContent<ApplicationKeyResponse>, Error<GetApplicationKeyError>>
Get a given application key.
Sourcepub async fn list_api_keys(
&self,
) -> Result<ApiKeyListResponse, Error<ListAPIKeysError>>
pub async fn list_api_keys( &self, ) -> Result<ApiKeyListResponse, Error<ListAPIKeysError>>
Get all API keys available for your account.
Sourcepub async fn list_api_keys_with_http_info(
&self,
) -> Result<ResponseContent<ApiKeyListResponse>, Error<ListAPIKeysError>>
pub async fn list_api_keys_with_http_info( &self, ) -> Result<ResponseContent<ApiKeyListResponse>, Error<ListAPIKeysError>>
Get all API keys available for your account.
Sourcepub async fn list_application_keys(
&self,
) -> Result<ApplicationKeyListResponse, Error<ListApplicationKeysError>>
pub async fn list_application_keys( &self, ) -> Result<ApplicationKeyListResponse, Error<ListApplicationKeysError>>
Get all application keys available for your Datadog account.
Sourcepub async fn list_application_keys_with_http_info(
&self,
) -> Result<ResponseContent<ApplicationKeyListResponse>, Error<ListApplicationKeysError>>
pub async fn list_application_keys_with_http_info( &self, ) -> Result<ResponseContent<ApplicationKeyListResponse>, Error<ListApplicationKeysError>>
Get all application keys available for your Datadog account.
Sourcepub async fn update_api_key(
&self,
key: String,
body: ApiKey,
) -> Result<ApiKeyResponse, Error<UpdateAPIKeyError>>
pub async fn update_api_key( &self, key: String, body: ApiKey, ) -> Result<ApiKeyResponse, Error<UpdateAPIKeyError>>
Edit an API key name.
Sourcepub async fn update_api_key_with_http_info(
&self,
key: String,
body: ApiKey,
) -> Result<ResponseContent<ApiKeyResponse>, Error<UpdateAPIKeyError>>
pub async fn update_api_key_with_http_info( &self, key: String, body: ApiKey, ) -> Result<ResponseContent<ApiKeyResponse>, Error<UpdateAPIKeyError>>
Edit an API key name.
Sourcepub async fn update_application_key(
&self,
key: String,
body: ApplicationKey,
) -> Result<ApplicationKeyResponse, Error<UpdateApplicationKeyError>>
pub async fn update_application_key( &self, key: String, body: ApplicationKey, ) -> Result<ApplicationKeyResponse, Error<UpdateApplicationKeyError>>
Edit an application key name.
Sourcepub async fn update_application_key_with_http_info(
&self,
key: String,
body: ApplicationKey,
) -> Result<ResponseContent<ApplicationKeyResponse>, Error<UpdateApplicationKeyError>>
pub async fn update_application_key_with_http_info( &self, key: String, body: ApplicationKey, ) -> Result<ResponseContent<ApplicationKeyResponse>, Error<UpdateApplicationKeyError>>
Edit an application key name.
Trait Implementations§
Source§impl Clone for KeyManagementAPI
impl Clone for KeyManagementAPI
Source§fn clone(&self) -> KeyManagementAPI
fn clone(&self) -> KeyManagementAPI
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more