Acl Token
Example Usage
Creating a token with limited policies:
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.AclToken;
import com.pulumi.nomad.AclTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dakota = new AclToken("dakota", AclTokenArgs.builder()
.policies(
"dev",
"qa")
.type("client")
.build());
}
}
Content copied to clipboard
Properties
Link copied to clipboard
(string)
- A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
Link copied to clipboard
(string)
- The timestamp the token was created.
Link copied to clipboard
(string)
- The timestamp after which the token is considered expired and eligible for destruction.
Link copied to clipboard
(string: "")
- Provides a TTL for the token in the form of a time duration such as "5m"
or "1h"
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
(set: [])
- The list of roles attached to the token. Each entry has name
and id
attributes. It may be used multiple times.