Skip to content

Latest commit

 

History

History
221 lines (135 loc) · 5.19 KB

SecretStoreApi.md

File metadata and controls

221 lines (135 loc) · 5.19 KB

SecretStoreApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
client_key POST /resources/stores/secret/client-key Create new client key
create_secret_store POST /resources/stores/secret Create new secret store
delete_secret_store DELETE /resources/stores/secret/{store_id} Delete secret store
get_secret_store GET /resources/stores/secret/{store_id} Get secret store by ID
get_secret_stores GET /resources/stores/secret Get all secret stores
signing_key GET /resources/stores/secret/signing-key Get public key

client_key

Create a new client key for encrypting secrets locally before uploading.

let cfg = &Configuration::default();
let params = ClientKeyParams {
    // parameters
};
client_key(cfg, params)

Parameters

This endpoint does not need any parameter.

Return type

crate::models::ClientKey

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

create_secret_store

Create a new secret store.

let cfg = &Configuration::default();
let params = CreateSecretStoreParams {
    // parameters
};
create_secret_store(cfg, params)

Parameters

Name Type Description Required Notes
secret_store Option<SecretStore>

Return type

crate::models::SecretStoreResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

delete_secret_store

Delete a secret store and all of its contents.

let cfg = &Configuration::default();
let params = DeleteSecretStoreParams {
    // parameters
};
delete_secret_store(cfg, params)

Parameters

Name Type Description Required Notes
store_id String [required]

Return type

(empty response body)

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to README]

get_secret_store

Get a secret store by ID.

let cfg = &Configuration::default();
let params = GetSecretStoreParams {
    // parameters
};
get_secret_store(cfg, params)

Parameters

Name Type Description Required Notes
store_id String [required]

Return type

crate::models::SecretStoreResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

get_secret_stores

Get all secret stores.

let cfg = &Configuration::default();
let params = GetSecretStoresParams {
    // parameters
};
get_secret_stores(cfg, params)

Parameters

Name Type Description Required Notes
cursor Option<String> Cursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
limit Option<String> Number of results per page. The maximum is 200. [default to 100]
name Option<String> Returns a one-element array containing the details for the named secret store.

Return type

crate::models::InlineResponse2005

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

signing_key

Get the public key used for signing client keys.

let cfg = &Configuration::default();
let params = SigningKeyParams {
    // parameters
};
signing_key(cfg, params)

Parameters

This endpoint does not need any parameter.

Return type

crate::models::SigningKey

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]