Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apikeys/v2.Key
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new API key. NOTE: Key is a global resource; hence the only supported value for location is global
.
Auto-naming is currently not supported for this resource.
Create Key Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Key(name: string, args?: KeyArgs, opts?: CustomResourceOptions);
@overload
def Key(resource_name: str,
args: Optional[KeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Key(resource_name: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
key_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
restrictions: Optional[V2RestrictionsArgs] = None)
func NewKey(ctx *Context, name string, args *KeyArgs, opts ...ResourceOption) (*Key, error)
public Key(string name, KeyArgs? args = null, CustomResourceOptions? opts = null)
type: google-native:apikeys/v2:Key
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 KeyArgs
- 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 KeyArgs
- 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 KeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyArgs
- 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 keyResource = new GoogleNative.APIKeys.V2.Key("keyResource", new()
{
Annotations =
{
{ "string", "string" },
},
DisplayName = "string",
KeyId = "string",
Location = "string",
Project = "string",
Restrictions = new GoogleNative.APIKeys.V2.Inputs.V2RestrictionsArgs
{
AndroidKeyRestrictions = new GoogleNative.APIKeys.V2.Inputs.V2AndroidKeyRestrictionsArgs
{
AllowedApplications = new[]
{
new GoogleNative.APIKeys.V2.Inputs.V2AndroidApplicationArgs
{
PackageName = "string",
Sha1Fingerprint = "string",
},
},
},
ApiTargets = new[]
{
new GoogleNative.APIKeys.V2.Inputs.V2ApiTargetArgs
{
Methods = new[]
{
"string",
},
Service = "string",
},
},
BrowserKeyRestrictions = new GoogleNative.APIKeys.V2.Inputs.V2BrowserKeyRestrictionsArgs
{
AllowedReferrers = new[]
{
"string",
},
},
IosKeyRestrictions = new GoogleNative.APIKeys.V2.Inputs.V2IosKeyRestrictionsArgs
{
AllowedBundleIds = new[]
{
"string",
},
},
ServerKeyRestrictions = new GoogleNative.APIKeys.V2.Inputs.V2ServerKeyRestrictionsArgs
{
AllowedIps = new[]
{
"string",
},
},
},
});
example, err := apikeys.NewKey(ctx, "keyResource", &apikeys.KeyArgs{
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
KeyId: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
Restrictions: &apikeys.V2RestrictionsArgs{
AndroidKeyRestrictions: &apikeys.V2AndroidKeyRestrictionsArgs{
AllowedApplications: apikeys.V2AndroidApplicationArray{
&apikeys.V2AndroidApplicationArgs{
PackageName: pulumi.String("string"),
Sha1Fingerprint: pulumi.String("string"),
},
},
},
ApiTargets: apikeys.V2ApiTargetArray{
&apikeys.V2ApiTargetArgs{
Methods: pulumi.StringArray{
pulumi.String("string"),
},
Service: pulumi.String("string"),
},
},
BrowserKeyRestrictions: &apikeys.V2BrowserKeyRestrictionsArgs{
AllowedReferrers: pulumi.StringArray{
pulumi.String("string"),
},
},
IosKeyRestrictions: &apikeys.V2IosKeyRestrictionsArgs{
AllowedBundleIds: pulumi.StringArray{
pulumi.String("string"),
},
},
ServerKeyRestrictions: &apikeys.V2ServerKeyRestrictionsArgs{
AllowedIps: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var keyResource = new Key("keyResource", KeyArgs.builder()
.annotations(Map.of("string", "string"))
.displayName("string")
.keyId("string")
.location("string")
.project("string")
.restrictions(V2RestrictionsArgs.builder()
.androidKeyRestrictions(V2AndroidKeyRestrictionsArgs.builder()
.allowedApplications(V2AndroidApplicationArgs.builder()
.packageName("string")
.sha1Fingerprint("string")
.build())
.build())
.apiTargets(V2ApiTargetArgs.builder()
.methods("string")
.service("string")
.build())
.browserKeyRestrictions(V2BrowserKeyRestrictionsArgs.builder()
.allowedReferrers("string")
.build())
.iosKeyRestrictions(V2IosKeyRestrictionsArgs.builder()
.allowedBundleIds("string")
.build())
.serverKeyRestrictions(V2ServerKeyRestrictionsArgs.builder()
.allowedIps("string")
.build())
.build())
.build());
key_resource = google_native.apikeys.v2.Key("keyResource",
annotations={
"string": "string",
},
display_name="string",
key_id="string",
location="string",
project="string",
restrictions={
"android_key_restrictions": {
"allowed_applications": [{
"package_name": "string",
"sha1_fingerprint": "string",
}],
},
"api_targets": [{
"methods": ["string"],
"service": "string",
}],
"browser_key_restrictions": {
"allowed_referrers": ["string"],
},
"ios_key_restrictions": {
"allowed_bundle_ids": ["string"],
},
"server_key_restrictions": {
"allowed_ips": ["string"],
},
})
const keyResource = new google_native.apikeys.v2.Key("keyResource", {
annotations: {
string: "string",
},
displayName: "string",
keyId: "string",
location: "string",
project: "string",
restrictions: {
androidKeyRestrictions: {
allowedApplications: [{
packageName: "string",
sha1Fingerprint: "string",
}],
},
apiTargets: [{
methods: ["string"],
service: "string",
}],
browserKeyRestrictions: {
allowedReferrers: ["string"],
},
iosKeyRestrictions: {
allowedBundleIds: ["string"],
},
serverKeyRestrictions: {
allowedIps: ["string"],
},
},
});
type: google-native:apikeys/v2:Key
properties:
annotations:
string: string
displayName: string
keyId: string
location: string
project: string
restrictions:
androidKeyRestrictions:
allowedApplications:
- packageName: string
sha1Fingerprint: string
apiTargets:
- methods:
- string
service: string
browserKeyRestrictions:
allowedReferrers:
- string
iosKeyRestrictions:
allowedBundleIds:
- string
serverKeyRestrictions:
allowedIps:
- string
Key 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 Key resource accepts the following input properties:
- Annotations Dictionary<string, string>
- Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
- Display
Name string - Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- Key
Id string - User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be a UUID-like string. - Location string
- Project string
- Restrictions
Pulumi.
Google Native. APIKeys. V2. Inputs. V2Restrictions - Key restrictions.
- Annotations map[string]string
- Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
- Display
Name string - Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- Key
Id string - User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be a UUID-like string. - Location string
- Project string
- Restrictions
V2Restrictions
Args - Key restrictions.
- annotations Map<String,String>
- Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
- display
Name String - Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- key
Id String - User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be a UUID-like string. - location String
- project String
- restrictions V2Restrictions
- Key restrictions.
- annotations {[key: string]: string}
- Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
- display
Name string - Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- key
Id string - User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be a UUID-like string. - location string
- project string
- restrictions V2Restrictions
- Key restrictions.
- annotations Mapping[str, str]
- Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
- display_
name str - Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- key_
id str - User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be a UUID-like string. - location str
- project str
- restrictions
V2Restrictions
Args - Key restrictions.
- annotations Map<String>
- Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
- display
Name String - Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- key
Id String - User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be a UUID-like string. - location String
- project String
- restrictions Property Map
- Key restrictions.
Outputs
All input properties are implicitly available as output properties. Additionally, the Key resource produces the following output properties:
- Create
Time string - A timestamp identifying the time this key was originally created.
- Delete
Time string - A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
- Etag string
- A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
String string - An encrypted and signed value held by this key. This field can be accessed only through the
GetKeyString
method. - Name string
- The resource name of the key. The
name
has the form:projects//locations/global/keys/
. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location isglobal
. - Uid string
- Unique id in UUID4 format.
- Update
Time string - A timestamp identifying the time this key was last updated.
- Create
Time string - A timestamp identifying the time this key was originally created.
- Delete
Time string - A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
- Etag string
- A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
String string - An encrypted and signed value held by this key. This field can be accessed only through the
GetKeyString
method. - Name string
- The resource name of the key. The
name
has the form:projects//locations/global/keys/
. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location isglobal
. - Uid string
- Unique id in UUID4 format.
- Update
Time string - A timestamp identifying the time this key was last updated.
- create
Time String - A timestamp identifying the time this key was originally created.
- delete
Time String - A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
- etag String
- A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
- id String
- The provider-assigned unique ID for this managed resource.
- key
String String - An encrypted and signed value held by this key. This field can be accessed only through the
GetKeyString
method. - name String
- The resource name of the key. The
name
has the form:projects//locations/global/keys/
. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location isglobal
. - uid String
- Unique id in UUID4 format.
- update
Time String - A timestamp identifying the time this key was last updated.
- create
Time string - A timestamp identifying the time this key was originally created.
- delete
Time string - A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
- etag string
- A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
- id string
- The provider-assigned unique ID for this managed resource.
- key
String string - An encrypted and signed value held by this key. This field can be accessed only through the
GetKeyString
method. - name string
- The resource name of the key. The
name
has the form:projects//locations/global/keys/
. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location isglobal
. - uid string
- Unique id in UUID4 format.
- update
Time string - A timestamp identifying the time this key was last updated.
- create_
time str - A timestamp identifying the time this key was originally created.
- delete_
time str - A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
- etag str
- A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
string str - An encrypted and signed value held by this key. This field can be accessed only through the
GetKeyString
method. - name str
- The resource name of the key. The
name
has the form:projects//locations/global/keys/
. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location isglobal
. - uid str
- Unique id in UUID4 format.
- update_
time str - A timestamp identifying the time this key was last updated.
- create
Time String - A timestamp identifying the time this key was originally created.
- delete
Time String - A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
- etag String
- A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
- id String
- The provider-assigned unique ID for this managed resource.
- key
String String - An encrypted and signed value held by this key. This field can be accessed only through the
GetKeyString
method. - name String
- The resource name of the key. The
name
has the form:projects//locations/global/keys/
. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location isglobal
. - uid String
- Unique id in UUID4 format.
- update
Time String - A timestamp identifying the time this key was last updated.
Supporting Types
V2AndroidApplication, V2AndroidApplicationArgs
- Package
Name string - The package name of the application.
- Sha1Fingerprint string
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- Package
Name string - The package name of the application.
- Sha1Fingerprint string
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package
Name String - The package name of the application.
- sha1Fingerprint String
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package
Name string - The package name of the application.
- sha1Fingerprint string
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package_
name str - The package name of the application.
- sha1_
fingerprint str - The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package
Name String - The package name of the application.
- sha1Fingerprint String
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
V2AndroidApplicationResponse, V2AndroidApplicationResponseArgs
- Package
Name string - The package name of the application.
- Sha1Fingerprint string
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- Package
Name string - The package name of the application.
- Sha1Fingerprint string
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package
Name String - The package name of the application.
- sha1Fingerprint String
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package
Name string - The package name of the application.
- sha1Fingerprint string
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package_
name str - The package name of the application.
- sha1_
fingerprint str - The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
- package
Name String - The package name of the application.
- sha1Fingerprint String
- The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
V2AndroidKeyRestrictions, V2AndroidKeyRestrictionsArgs
- Allowed
Applications List<Pulumi.Google Native. APIKeys. V2. Inputs. V2Android Application> - A list of Android applications that are allowed to make API calls with this key.
- Allowed
Applications []V2AndroidApplication - A list of Android applications that are allowed to make API calls with this key.
- allowed
Applications List<V2AndroidApplication> - A list of Android applications that are allowed to make API calls with this key.
- allowed
Applications V2AndroidApplication[] - A list of Android applications that are allowed to make API calls with this key.
- allowed_
applications Sequence[V2AndroidApplication] - A list of Android applications that are allowed to make API calls with this key.
- allowed
Applications List<Property Map> - A list of Android applications that are allowed to make API calls with this key.
V2AndroidKeyRestrictionsResponse, V2AndroidKeyRestrictionsResponseArgs
- Allowed
Applications List<Pulumi.Google Native. APIKeys. V2. Inputs. V2Android Application Response> - A list of Android applications that are allowed to make API calls with this key.
- Allowed
Applications []V2AndroidApplication Response - A list of Android applications that are allowed to make API calls with this key.
- allowed
Applications List<V2AndroidApplication Response> - A list of Android applications that are allowed to make API calls with this key.
- allowed
Applications V2AndroidApplication Response[] - A list of Android applications that are allowed to make API calls with this key.
- allowed_
applications Sequence[V2AndroidApplication Response] - A list of Android applications that are allowed to make API calls with this key.
- allowed
Applications List<Property Map> - A list of Android applications that are allowed to make API calls with this key.
V2ApiTarget, V2ApiTargetArgs
- Methods List<string>
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- Service string
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- Methods []string
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- Service string
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods List<String>
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service String
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods string[]
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service string
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods Sequence[str]
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service str
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods List<String>
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service String
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
V2ApiTargetResponse, V2ApiTargetResponseArgs
- Methods List<string>
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- Service string
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- Methods []string
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- Service string
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods List<String>
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service String
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods string[]
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service string
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods Sequence[str]
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service str
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
- methods List<String>
- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples:
google.cloud.translate.v2.TranslateService.GetSupportedLanguage
TranslateText
Get*
translate.googleapis.com.Get*
- service String
- The service for this restriction. It should be the canonical service name, for example:
translate.googleapis.com
. You can usegcloud services list
to get a list of services that are enabled in the project.
V2BrowserKeyRestrictions, V2BrowserKeyRestrictionsArgs
- Allowed
Referrers List<string> - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- Allowed
Referrers []string - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed
Referrers List<String> - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed
Referrers string[] - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed_
referrers Sequence[str] - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed
Referrers List<String> - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
V2BrowserKeyRestrictionsResponse, V2BrowserKeyRestrictionsResponseArgs
- Allowed
Referrers List<string> - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- Allowed
Referrers []string - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed
Referrers List<String> - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed
Referrers string[] - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed_
referrers Sequence[str] - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowed
Referrers List<String> - A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
V2IosKeyRestrictions, V2IosKeyRestrictionsArgs
- Allowed
Bundle List<string>Ids - A list of bundle IDs that are allowed when making API calls with this key.
- Allowed
Bundle []stringIds - A list of bundle IDs that are allowed when making API calls with this key.
- allowed
Bundle List<String>Ids - A list of bundle IDs that are allowed when making API calls with this key.
- allowed
Bundle string[]Ids - A list of bundle IDs that are allowed when making API calls with this key.
- allowed_
bundle_ Sequence[str]ids - A list of bundle IDs that are allowed when making API calls with this key.
- allowed
Bundle List<String>Ids - A list of bundle IDs that are allowed when making API calls with this key.
V2IosKeyRestrictionsResponse, V2IosKeyRestrictionsResponseArgs
- Allowed
Bundle List<string>Ids - A list of bundle IDs that are allowed when making API calls with this key.
- Allowed
Bundle []stringIds - A list of bundle IDs that are allowed when making API calls with this key.
- allowed
Bundle List<String>Ids - A list of bundle IDs that are allowed when making API calls with this key.
- allowed
Bundle string[]Ids - A list of bundle IDs that are allowed when making API calls with this key.
- allowed_
bundle_ Sequence[str]ids - A list of bundle IDs that are allowed when making API calls with this key.
- allowed
Bundle List<String>Ids - A list of bundle IDs that are allowed when making API calls with this key.
V2Restrictions, V2RestrictionsArgs
- Android
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Android Key Restrictions - The Android apps that are allowed to use the key.
- Api
Targets List<Pulumi.Google Native. APIKeys. V2. Inputs. V2Api Target> - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- Browser
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Browser Key Restrictions - The HTTP referrers (websites) that are allowed to use the key.
- Ios
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Ios Key Restrictions - The iOS apps that are allowed to use the key.
- Server
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Server Key Restrictions - The IP addresses of callers that are allowed to use the key.
- Android
Key V2AndroidRestrictions Key Restrictions - The Android apps that are allowed to use the key.
- Api
Targets []V2ApiTarget - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- Browser
Key V2BrowserRestrictions Key Restrictions - The HTTP referrers (websites) that are allowed to use the key.
- Ios
Key V2IosRestrictions Key Restrictions - The iOS apps that are allowed to use the key.
- Server
Key V2ServerRestrictions Key Restrictions - The IP addresses of callers that are allowed to use the key.
- android
Key V2AndroidRestrictions Key Restrictions - The Android apps that are allowed to use the key.
- api
Targets List<V2ApiTarget> - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser
Key V2BrowserRestrictions Key Restrictions - The HTTP referrers (websites) that are allowed to use the key.
- ios
Key V2IosRestrictions Key Restrictions - The iOS apps that are allowed to use the key.
- server
Key V2ServerRestrictions Key Restrictions - The IP addresses of callers that are allowed to use the key.
- android
Key V2AndroidRestrictions Key Restrictions - The Android apps that are allowed to use the key.
- api
Targets V2ApiTarget[] - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser
Key V2BrowserRestrictions Key Restrictions - The HTTP referrers (websites) that are allowed to use the key.
- ios
Key V2IosRestrictions Key Restrictions - The iOS apps that are allowed to use the key.
- server
Key V2ServerRestrictions Key Restrictions - The IP addresses of callers that are allowed to use the key.
- android_
key_ V2Androidrestrictions Key Restrictions - The Android apps that are allowed to use the key.
- api_
targets Sequence[V2ApiTarget] - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser_
key_ V2Browserrestrictions Key Restrictions - The HTTP referrers (websites) that are allowed to use the key.
- ios_
key_ V2Iosrestrictions Key Restrictions - The iOS apps that are allowed to use the key.
- server_
key_ V2Serverrestrictions Key Restrictions - The IP addresses of callers that are allowed to use the key.
- android
Key Property MapRestrictions - The Android apps that are allowed to use the key.
- api
Targets List<Property Map> - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser
Key Property MapRestrictions - The HTTP referrers (websites) that are allowed to use the key.
- ios
Key Property MapRestrictions - The iOS apps that are allowed to use the key.
- server
Key Property MapRestrictions - The IP addresses of callers that are allowed to use the key.
V2RestrictionsResponse, V2RestrictionsResponseArgs
- Android
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Android Key Restrictions Response - The Android apps that are allowed to use the key.
- Api
Targets List<Pulumi.Google Native. APIKeys. V2. Inputs. V2Api Target Response> - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- Browser
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Browser Key Restrictions Response - The HTTP referrers (websites) that are allowed to use the key.
- Ios
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Ios Key Restrictions Response - The iOS apps that are allowed to use the key.
- Server
Key Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Server Key Restrictions Response - The IP addresses of callers that are allowed to use the key.
- Android
Key V2AndroidRestrictions Key Restrictions Response - The Android apps that are allowed to use the key.
- Api
Targets []V2ApiTarget Response - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- Browser
Key V2BrowserRestrictions Key Restrictions Response - The HTTP referrers (websites) that are allowed to use the key.
- Ios
Key V2IosRestrictions Key Restrictions Response - The iOS apps that are allowed to use the key.
- Server
Key V2ServerRestrictions Key Restrictions Response - The IP addresses of callers that are allowed to use the key.
- android
Key V2AndroidRestrictions Key Restrictions Response - The Android apps that are allowed to use the key.
- api
Targets List<V2ApiTarget Response> - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser
Key V2BrowserRestrictions Key Restrictions Response - The HTTP referrers (websites) that are allowed to use the key.
- ios
Key V2IosRestrictions Key Restrictions Response - The iOS apps that are allowed to use the key.
- server
Key V2ServerRestrictions Key Restrictions Response - The IP addresses of callers that are allowed to use the key.
- android
Key V2AndroidRestrictions Key Restrictions Response - The Android apps that are allowed to use the key.
- api
Targets V2ApiTarget Response[] - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser
Key V2BrowserRestrictions Key Restrictions Response - The HTTP referrers (websites) that are allowed to use the key.
- ios
Key V2IosRestrictions Key Restrictions Response - The iOS apps that are allowed to use the key.
- server
Key V2ServerRestrictions Key Restrictions Response - The IP addresses of callers that are allowed to use the key.
- android_
key_ V2Androidrestrictions Key Restrictions Response - The Android apps that are allowed to use the key.
- api_
targets Sequence[V2ApiTarget Response] - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser_
key_ V2Browserrestrictions Key Restrictions Response - The HTTP referrers (websites) that are allowed to use the key.
- ios_
key_ V2Iosrestrictions Key Restrictions Response - The iOS apps that are allowed to use the key.
- server_
key_ V2Serverrestrictions Key Restrictions Response - The IP addresses of callers that are allowed to use the key.
- android
Key Property MapRestrictions - The Android apps that are allowed to use the key.
- api
Targets List<Property Map> - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
- browser
Key Property MapRestrictions - The HTTP referrers (websites) that are allowed to use the key.
- ios
Key Property MapRestrictions - The iOS apps that are allowed to use the key.
- server
Key Property MapRestrictions - The IP addresses of callers that are allowed to use the key.
V2ServerKeyRestrictions, V2ServerKeyRestrictionsArgs
- Allowed
Ips List<string> - A list of the caller IP addresses that are allowed to make API calls with this key.
- Allowed
Ips []string - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed
Ips List<String> - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed
Ips string[] - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed_
ips Sequence[str] - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed
Ips List<String> - A list of the caller IP addresses that are allowed to make API calls with this key.
V2ServerKeyRestrictionsResponse, V2ServerKeyRestrictionsResponseArgs
- Allowed
Ips List<string> - A list of the caller IP addresses that are allowed to make API calls with this key.
- Allowed
Ips []string - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed
Ips List<String> - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed
Ips string[] - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed_
ips Sequence[str] - A list of the caller IP addresses that are allowed to make API calls with this key.
- allowed
Ips List<String> - A list of the caller IP addresses that are allowed to make API calls with this key.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.