published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Google Cloud Provider (GCP) dynamic secret resource
Create DynamicSecretGcp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSecretGcp(name: string, args?: DynamicSecretGcpArgs, opts?: CustomResourceOptions);@overload
def DynamicSecretGcp(resource_name: str,
args: Optional[DynamicSecretGcpArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSecretGcp(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_type: Optional[str] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_gcp_id: Optional[str] = None,
encryption_key_name: Optional[str] = None,
fixed_user_claim_keyname: Optional[str] = None,
gcp_cred_type: Optional[str] = None,
gcp_key: Optional[str] = None,
gcp_key_algo: Optional[str] = None,
gcp_project_id: Optional[str] = None,
gcp_sa_email: Optional[str] = None,
gcp_token_scopes: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
role_binding: Optional[str] = None,
role_names: Optional[str] = None,
secure_access_delay: Optional[float] = None,
secure_access_enable: Optional[str] = None,
secure_access_url: Optional[str] = None,
secure_access_web_browsing: Optional[bool] = None,
secure_access_web_proxy: Optional[bool] = None,
service_account_type: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None)func NewDynamicSecretGcp(ctx *Context, name string, args *DynamicSecretGcpArgs, opts ...ResourceOption) (*DynamicSecretGcp, error)public DynamicSecretGcp(string name, DynamicSecretGcpArgs? args = null, CustomResourceOptions? opts = null)
public DynamicSecretGcp(String name, DynamicSecretGcpArgs args)
public DynamicSecretGcp(String name, DynamicSecretGcpArgs args, CustomResourceOptions options)
type: akeyless:DynamicSecretGcp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DynamicSecretGcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DynamicSecretGcpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DynamicSecretGcpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSecretGcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSecretGcpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dynamicSecretGcpResource = new Akeyless.DynamicSecretGcp("dynamicSecretGcpResource", new()
{
AccessType = "string",
CustomUsernameTemplate = "string",
DeleteProtection = "string",
Description = "string",
DynamicSecretGcpId = "string",
EncryptionKeyName = "string",
FixedUserClaimKeyname = "string",
GcpCredType = "string",
GcpKey = "string",
GcpKeyAlgo = "string",
GcpProjectId = "string",
GcpSaEmail = "string",
GcpTokenScopes = "string",
ItemCustomFields =
{
{ "string", "string" },
},
Name = "string",
ProjectId = "string",
RoleBinding = "string",
RoleNames = "string",
SecureAccessDelay = 0,
SecureAccessEnable = "string",
SecureAccessUrl = "string",
SecureAccessWebBrowsing = false,
SecureAccessWebProxy = false,
ServiceAccountType = "string",
Tags = new[]
{
"string",
},
TargetName = "string",
UserTtl = "string",
});
example, err := akeyless.NewDynamicSecretGcp(ctx, "dynamicSecretGcpResource", &akeyless.DynamicSecretGcpArgs{
AccessType: pulumi.String("string"),
CustomUsernameTemplate: pulumi.String("string"),
DeleteProtection: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicSecretGcpId: pulumi.String("string"),
EncryptionKeyName: pulumi.String("string"),
FixedUserClaimKeyname: pulumi.String("string"),
GcpCredType: pulumi.String("string"),
GcpKey: pulumi.String("string"),
GcpKeyAlgo: pulumi.String("string"),
GcpProjectId: pulumi.String("string"),
GcpSaEmail: pulumi.String("string"),
GcpTokenScopes: pulumi.String("string"),
ItemCustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
RoleBinding: pulumi.String("string"),
RoleNames: pulumi.String("string"),
SecureAccessDelay: pulumi.Float64(0),
SecureAccessEnable: pulumi.String("string"),
SecureAccessUrl: pulumi.String("string"),
SecureAccessWebBrowsing: pulumi.Bool(false),
SecureAccessWebProxy: pulumi.Bool(false),
ServiceAccountType: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
UserTtl: pulumi.String("string"),
})
var dynamicSecretGcpResource = new DynamicSecretGcp("dynamicSecretGcpResource", DynamicSecretGcpArgs.builder()
.accessType("string")
.customUsernameTemplate("string")
.deleteProtection("string")
.description("string")
.dynamicSecretGcpId("string")
.encryptionKeyName("string")
.fixedUserClaimKeyname("string")
.gcpCredType("string")
.gcpKey("string")
.gcpKeyAlgo("string")
.gcpProjectId("string")
.gcpSaEmail("string")
.gcpTokenScopes("string")
.itemCustomFields(Map.of("string", "string"))
.name("string")
.projectId("string")
.roleBinding("string")
.roleNames("string")
.secureAccessDelay(0.0)
.secureAccessEnable("string")
.secureAccessUrl("string")
.secureAccessWebBrowsing(false)
.secureAccessWebProxy(false)
.serviceAccountType("string")
.tags("string")
.targetName("string")
.userTtl("string")
.build());
dynamic_secret_gcp_resource = akeyless.DynamicSecretGcp("dynamicSecretGcpResource",
access_type="string",
custom_username_template="string",
delete_protection="string",
description="string",
dynamic_secret_gcp_id="string",
encryption_key_name="string",
fixed_user_claim_keyname="string",
gcp_cred_type="string",
gcp_key="string",
gcp_key_algo="string",
gcp_project_id="string",
gcp_sa_email="string",
gcp_token_scopes="string",
item_custom_fields={
"string": "string",
},
name="string",
project_id="string",
role_binding="string",
role_names="string",
secure_access_delay=float(0),
secure_access_enable="string",
secure_access_url="string",
secure_access_web_browsing=False,
secure_access_web_proxy=False,
service_account_type="string",
tags=["string"],
target_name="string",
user_ttl="string")
const dynamicSecretGcpResource = new akeyless.DynamicSecretGcp("dynamicSecretGcpResource", {
accessType: "string",
customUsernameTemplate: "string",
deleteProtection: "string",
description: "string",
dynamicSecretGcpId: "string",
encryptionKeyName: "string",
fixedUserClaimKeyname: "string",
gcpCredType: "string",
gcpKey: "string",
gcpKeyAlgo: "string",
gcpProjectId: "string",
gcpSaEmail: "string",
gcpTokenScopes: "string",
itemCustomFields: {
string: "string",
},
name: "string",
projectId: "string",
roleBinding: "string",
roleNames: "string",
secureAccessDelay: 0,
secureAccessEnable: "string",
secureAccessUrl: "string",
secureAccessWebBrowsing: false,
secureAccessWebProxy: false,
serviceAccountType: "string",
tags: ["string"],
targetName: "string",
userTtl: "string",
});
type: akeyless:DynamicSecretGcp
properties:
accessType: string
customUsernameTemplate: string
deleteProtection: string
description: string
dynamicSecretGcpId: string
encryptionKeyName: string
fixedUserClaimKeyname: string
gcpCredType: string
gcpKey: string
gcpKeyAlgo: string
gcpProjectId: string
gcpSaEmail: string
gcpTokenScopes: string
itemCustomFields:
string: string
name: string
projectId: string
roleBinding: string
roleNames: string
secureAccessDelay: 0
secureAccessEnable: string
secureAccessUrl: string
secureAccessWebBrowsing: false
secureAccessWebProxy: false
serviceAccountType: string
tags:
- string
targetName: string
userTtl: string
DynamicSecretGcp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DynamicSecretGcp resource accepts the following input properties:
- Access
Type string - The type of the GCP dynamic secret, options are [sa, external]
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGcp Id - The ID of this resource.
- Encryption
Key stringName - Dynamic producer encryption key
- Fixed
User stringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- Gcp
Cred stringType - Credentials type, options are [token, key]
- Gcp
Key string - Base64-encoded service account private key text
- Gcp
Key stringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- Gcp
Project stringId - GCP Project ID override for dynamic secret operations
- Gcp
Sa stringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- Gcp
Token stringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Project
Id string - GCP Project ID override for dynamic secret operations
- Role
Binding string - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- Role
Names string - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- Secure
Access doubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access [true/false]
- Secure
Access stringUrl - Destination URL to inject secrets
- Secure
Access boolWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- Secure
Access boolWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- Service
Account stringType - The type of the GCP service account. Options fixed, dynamic
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Access
Type string - The type of the GCP dynamic secret, options are [sa, external]
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGcp Id - The ID of this resource.
- Encryption
Key stringName - Dynamic producer encryption key
- Fixed
User stringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- Gcp
Cred stringType - Credentials type, options are [token, key]
- Gcp
Key string - Base64-encoded service account private key text
- Gcp
Key stringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- Gcp
Project stringId - GCP Project ID override for dynamic secret operations
- Gcp
Sa stringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- Gcp
Token stringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Project
Id string - GCP Project ID override for dynamic secret operations
- Role
Binding string - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- Role
Names string - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- Secure
Access float64Delay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access [true/false]
- Secure
Access stringUrl - Destination URL to inject secrets
- Secure
Access boolWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- Secure
Access boolWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- Service
Account stringType - The type of the GCP service account. Options fixed, dynamic
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- access
Type String - The type of the GCP dynamic secret, options are [sa, external]
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringGcp Id - The ID of this resource.
- encryption
Key StringName - Dynamic producer encryption key
- fixed
User StringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp
Cred StringType - Credentials type, options are [token, key]
- gcp
Key String - Base64-encoded service account private key text
- gcp
Key StringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp
Project StringId - GCP Project ID override for dynamic secret operations
- gcp
Sa StringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp
Token StringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- project
Id String - GCP Project ID override for dynamic secret operations
- role
Binding String - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role
Names String - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure
Access DoubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access [true/false]
- secure
Access StringUrl - Destination URL to inject secrets
- secure
Access BooleanWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure
Access BooleanWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service
Account StringType - The type of the GCP service account. Options fixed, dynamic
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- access
Type string - The type of the GCP dynamic secret, options are [sa, external]
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- description string
- Description of the object
- dynamic
Secret stringGcp Id - The ID of this resource.
- encryption
Key stringName - Dynamic producer encryption key
- fixed
User stringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp
Cred stringType - Credentials type, options are [token, key]
- gcp
Key string - Base64-encoded service account private key text
- gcp
Key stringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp
Project stringId - GCP Project ID override for dynamic secret operations
- gcp
Sa stringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp
Token stringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- name string
- Dynamic secret name
- project
Id string - GCP Project ID override for dynamic secret operations
- role
Binding string - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role
Names string - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure
Access numberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access stringEnable - Enable/Disable secure remote access [true/false]
- secure
Access stringUrl - Destination URL to inject secrets
- secure
Access booleanWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure
Access booleanWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service
Account stringType - The type of the GCP service account. Options fixed, dynamic
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- access_
type str - The type of the GCP dynamic secret, options are [sa, external]
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- description str
- Description of the object
- dynamic_
secret_ strgcp_ id - The ID of this resource.
- encryption_
key_ strname - Dynamic producer encryption key
- fixed_
user_ strclaim_ keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp_
cred_ strtype - Credentials type, options are [token, key]
- gcp_
key str - Base64-encoded service account private key text
- gcp_
key_ stralgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp_
project_ strid - GCP Project ID override for dynamic secret operations
- gcp_
sa_ stremail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp_
token_ strscopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- name str
- Dynamic secret name
- project_
id str - GCP Project ID override for dynamic secret operations
- role_
binding str - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role_
names str - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure_
access_ floatdelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure_
access_ strenable - Enable/Disable secure remote access [true/false]
- secure_
access_ strurl - Destination URL to inject secrets
- secure_
access_ boolweb_ browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure_
access_ boolweb_ proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service_
account_ strtype - The type of the GCP service account. Options fixed, dynamic
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- access
Type String - The type of the GCP dynamic secret, options are [sa, external]
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringGcp Id - The ID of this resource.
- encryption
Key StringName - Dynamic producer encryption key
- fixed
User StringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp
Cred StringType - Credentials type, options are [token, key]
- gcp
Key String - Base64-encoded service account private key text
- gcp
Key StringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp
Project StringId - GCP Project ID override for dynamic secret operations
- gcp
Sa StringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp
Token StringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- project
Id String - GCP Project ID override for dynamic secret operations
- role
Binding String - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role
Names String - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure
Access NumberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access [true/false]
- secure
Access StringUrl - Destination URL to inject secrets
- secure
Access BooleanWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure
Access BooleanWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service
Account StringType - The type of the GCP service account. Options fixed, dynamic
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicSecretGcp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DynamicSecretGcp Resource
Get an existing DynamicSecretGcp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DynamicSecretGcpState, opts?: CustomResourceOptions): DynamicSecretGcp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_type: Optional[str] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_gcp_id: Optional[str] = None,
encryption_key_name: Optional[str] = None,
fixed_user_claim_keyname: Optional[str] = None,
gcp_cred_type: Optional[str] = None,
gcp_key: Optional[str] = None,
gcp_key_algo: Optional[str] = None,
gcp_project_id: Optional[str] = None,
gcp_sa_email: Optional[str] = None,
gcp_token_scopes: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
role_binding: Optional[str] = None,
role_names: Optional[str] = None,
secure_access_delay: Optional[float] = None,
secure_access_enable: Optional[str] = None,
secure_access_url: Optional[str] = None,
secure_access_web_browsing: Optional[bool] = None,
secure_access_web_proxy: Optional[bool] = None,
service_account_type: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None) -> DynamicSecretGcpfunc GetDynamicSecretGcp(ctx *Context, name string, id IDInput, state *DynamicSecretGcpState, opts ...ResourceOption) (*DynamicSecretGcp, error)public static DynamicSecretGcp Get(string name, Input<string> id, DynamicSecretGcpState? state, CustomResourceOptions? opts = null)public static DynamicSecretGcp get(String name, Output<String> id, DynamicSecretGcpState state, CustomResourceOptions options)resources: _: type: akeyless:DynamicSecretGcp get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Type string - The type of the GCP dynamic secret, options are [sa, external]
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGcp Id - The ID of this resource.
- Encryption
Key stringName - Dynamic producer encryption key
- Fixed
User stringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- Gcp
Cred stringType - Credentials type, options are [token, key]
- Gcp
Key string - Base64-encoded service account private key text
- Gcp
Key stringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- Gcp
Project stringId - GCP Project ID override for dynamic secret operations
- Gcp
Sa stringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- Gcp
Token stringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Project
Id string - GCP Project ID override for dynamic secret operations
- Role
Binding string - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- Role
Names string - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- Secure
Access doubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access [true/false]
- Secure
Access stringUrl - Destination URL to inject secrets
- Secure
Access boolWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- Secure
Access boolWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- Service
Account stringType - The type of the GCP service account. Options fixed, dynamic
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Access
Type string - The type of the GCP dynamic secret, options are [sa, external]
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGcp Id - The ID of this resource.
- Encryption
Key stringName - Dynamic producer encryption key
- Fixed
User stringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- Gcp
Cred stringType - Credentials type, options are [token, key]
- Gcp
Key string - Base64-encoded service account private key text
- Gcp
Key stringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- Gcp
Project stringId - GCP Project ID override for dynamic secret operations
- Gcp
Sa stringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- Gcp
Token stringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Project
Id string - GCP Project ID override for dynamic secret operations
- Role
Binding string - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- Role
Names string - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- Secure
Access float64Delay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access [true/false]
- Secure
Access stringUrl - Destination URL to inject secrets
- Secure
Access boolWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- Secure
Access boolWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- Service
Account stringType - The type of the GCP service account. Options fixed, dynamic
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- access
Type String - The type of the GCP dynamic secret, options are [sa, external]
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringGcp Id - The ID of this resource.
- encryption
Key StringName - Dynamic producer encryption key
- fixed
User StringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp
Cred StringType - Credentials type, options are [token, key]
- gcp
Key String - Base64-encoded service account private key text
- gcp
Key StringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp
Project StringId - GCP Project ID override for dynamic secret operations
- gcp
Sa StringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp
Token StringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- project
Id String - GCP Project ID override for dynamic secret operations
- role
Binding String - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role
Names String - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure
Access DoubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access [true/false]
- secure
Access StringUrl - Destination URL to inject secrets
- secure
Access BooleanWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure
Access BooleanWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service
Account StringType - The type of the GCP service account. Options fixed, dynamic
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- access
Type string - The type of the GCP dynamic secret, options are [sa, external]
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- description string
- Description of the object
- dynamic
Secret stringGcp Id - The ID of this resource.
- encryption
Key stringName - Dynamic producer encryption key
- fixed
User stringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp
Cred stringType - Credentials type, options are [token, key]
- gcp
Key string - Base64-encoded service account private key text
- gcp
Key stringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp
Project stringId - GCP Project ID override for dynamic secret operations
- gcp
Sa stringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp
Token stringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- name string
- Dynamic secret name
- project
Id string - GCP Project ID override for dynamic secret operations
- role
Binding string - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role
Names string - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure
Access numberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access stringEnable - Enable/Disable secure remote access [true/false]
- secure
Access stringUrl - Destination URL to inject secrets
- secure
Access booleanWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure
Access booleanWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service
Account stringType - The type of the GCP service account. Options fixed, dynamic
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- access_
type str - The type of the GCP dynamic secret, options are [sa, external]
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- description str
- Description of the object
- dynamic_
secret_ strgcp_ id - The ID of this resource.
- encryption_
key_ strname - Dynamic producer encryption key
- fixed_
user_ strclaim_ keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp_
cred_ strtype - Credentials type, options are [token, key]
- gcp_
key str - Base64-encoded service account private key text
- gcp_
key_ stralgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp_
project_ strid - GCP Project ID override for dynamic secret operations
- gcp_
sa_ stremail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp_
token_ strscopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- name str
- Dynamic secret name
- project_
id str - GCP Project ID override for dynamic secret operations
- role_
binding str - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role_
names str - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure_
access_ floatdelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure_
access_ strenable - Enable/Disable secure remote access [true/false]
- secure_
access_ strurl - Destination URL to inject secrets
- secure_
access_ boolweb_ browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure_
access_ boolweb_ proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service_
account_ strtype - The type of the GCP service account. Options fixed, dynamic
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- access
Type String - The type of the GCP dynamic secret, options are [sa, external]
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringGcp Id - The ID of this resource.
- encryption
Key StringName - Dynamic producer encryption key
- fixed
User StringClaim Keyname - For externally provided users, denotes the key-name of IdP claim to extract the username from (Relevant only when --access-type=external)
- gcp
Cred StringType - Credentials type, options are [token, key]
- gcp
Key String - Base64-encoded service account private key text
- gcp
Key StringAlgo - Service account key algorithm, e.g. KEYALGRSA_1024 (Relevant only when --access-type=sa and --gcp-cred-type=key)
- gcp
Project StringId - GCP Project ID override for dynamic secret operations
- gcp
Sa StringEmail - The email of the fixed service account to generate keys or tokens for (Relevant only when --access-type=sa and --service-account-type=fixed)
- gcp
Token StringScopes - Access token scopes list, e.g. scope1,scope2 (Relevant only when --access-type=sa; required when --gcp-cred-type=token)
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- project
Id String - GCP Project ID override for dynamic secret operations
- role
Binding String - Role binding definitions in JSON format (Relevant only when --access-type=sa and --service-account-type=dynamic)
- role
Names String - Comma-separated list of GCP roles to assign to the user (Relevant only when --access-type=external)
- secure
Access NumberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access [true/false]
- secure
Access StringUrl - Destination URL to inject secrets
- secure
Access BooleanWeb Browsing - Secure browser via Akeyless's Secure Remote Access (SRA)
- secure
Access BooleanWeb Proxy - Web-Proxy via Akeyless's Secure Remote Access (SRA)
- service
Account StringType - The type of the GCP service account. Options fixed, dynamic
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
