/auth-method-create-k8sAsk AIpost https://api.akeyless.io/auth-method-create-k8sBody Paramsaccess-expiresint64Defaults to 0Access expiration date in Unix timestamp (select 0 for access without expiry date)allowed-client-typearray of stringslimit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]allowed-client-typeADD stringaudiencestringThe audience in the Kubernetes JWT that the access is restricted toaudit-logs-claimsarray of stringsSubclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"audit-logs-claimsADD stringbound-ipsarray of stringsA CIDR whitelist with the IPs that the access is restricted tobound-ipsADD stringbound-namespacesarray of stringsA list of namespaces that the access is restricted tobound-namespacesADD stringbound-pod-namesarray of stringsA list of pod names that the access is restricted tobound-pod-namesADD stringbound-sa-namesarray of stringsA list of service account names that the access is restricted tobound-sa-namesADD stringdelete_protectionstringProtection from accidental deletion of this object [true/false]descriptionstringAuth Method descriptionexpiration-event-inarray of stringsHow many days before the expiration of the auth method would you like to be notified.expiration-event-inADD stringforce-sub-claimsbooleanif true: enforce role-association must include sub claimstruefalsegen-keystringDefaults to trueAutomatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false]gw-bound-ipsarray of stringsA CIDR whitelist with the GW IPs that the access is restricted togw-bound-ipsADD stringjsonbooleanDefaults to falseSet output format to JSONtruefalsejwt-ttlint64Defaults to 0Jwt TTLnamestringrequiredAuth Method nameproduct-typearray of stringsChoose the relevant product type for the auth method [sm, sra, pm, dp, ca]product-typeADD stringpublic-keystringBase64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048]tokenstringAuthentication token (see /auth and /configure)uid-tokenstringThe universal identity token, Required only for universal_identity authenticationResponses 201authMethodCreateK8sResponse wraps response body. defaulterrorResponse wraps any error to return it as a JSON object with one "error" field.Updated 7 months ago