Results
No results found.
Use .create()
function to create a new secret
SecretCreateParams createParams = new SecretCreateParams.Builder()
.setKey("key")
.setValue("value")
.setDescription("description")
.build();
Secret newSecret = client.secrets().create(createParams, Secret.class);
Create a new secret with a specific environment:
SecretCreateParams createParams = new SecretCreateParams.Builder()
.setKey("key")
.setValue("value")
.setDescription("description")
.setEnvironmentName("environment")
.build();
Secret newSecret = client.secrets().create(createParams, Secret.class);