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 com.pulumi.googlenative.apikeys_v2.Key("keyResource", com.pulumi.googlenative.apikeys_v2.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.
- DisplayName string
- Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- KeyId 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.
- DisplayName string
- Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- KeyId 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
V2RestrictionsArgs 
- 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.
- displayName String
- Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- keyId 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.
- displayName string
- Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- keyId 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
V2RestrictionsArgs 
- 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.
- displayName String
- Human-readable display name of this key that you can modify. The maximum length is 63 characters.
- keyId 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:
- CreateTime string
- A timestamp identifying the time this key was originally created.
- DeleteTime 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.
- KeyString string
- An encrypted and signed value held by this key. This field can be accessed only through the GetKeyStringmethod.
- Name string
- The resource name of the key. The namehas the form:projects//locations/global/keys/. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2NOTE: Key is a global resource; hence the only supported value for location isglobal.
- Uid string
- Unique id in UUID4 format.
- UpdateTime string
- A timestamp identifying the time this key was last updated.
- CreateTime string
- A timestamp identifying the time this key was originally created.
- DeleteTime 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.
- KeyString string
- An encrypted and signed value held by this key. This field can be accessed only through the GetKeyStringmethod.
- Name string
- The resource name of the key. The namehas the form:projects//locations/global/keys/. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2NOTE: Key is a global resource; hence the only supported value for location isglobal.
- Uid string
- Unique id in UUID4 format.
- UpdateTime string
- A timestamp identifying the time this key was last updated.
- createTime String
- A timestamp identifying the time this key was originally created.
- deleteTime 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.
- keyString String
- An encrypted and signed value held by this key. This field can be accessed only through the GetKeyStringmethod.
- name String
- The resource name of the key. The namehas the form:projects//locations/global/keys/. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2NOTE: Key is a global resource; hence the only supported value for location isglobal.
- uid String
- Unique id in UUID4 format.
- updateTime String
- A timestamp identifying the time this key was last updated.
- createTime string
- A timestamp identifying the time this key was originally created.
- deleteTime 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.
- keyString string
- An encrypted and signed value held by this key. This field can be accessed only through the GetKeyStringmethod.
- name string
- The resource name of the key. The namehas the form:projects//locations/global/keys/. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2NOTE: Key is a global resource; hence the only supported value for location isglobal.
- uid string
- Unique id in UUID4 format.
- updateTime 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 GetKeyStringmethod.
- name str
- The resource name of the key. The namehas the form:projects//locations/global/keys/. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2NOTE: 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.
- createTime String
- A timestamp identifying the time this key was originally created.
- deleteTime 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.
- keyString String
- An encrypted and signed value held by this key. This field can be accessed only through the GetKeyStringmethod.
- name String
- The resource name of the key. The namehas the form:projects//locations/global/keys/. For example:projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2NOTE: Key is a global resource; hence the only supported value for location isglobal.
- uid String
- Unique id in UUID4 format.
- updateTime String
- A timestamp identifying the time this key was last updated.
Supporting Types
V2AndroidApplication, V2AndroidApplicationArgs    
- PackageName 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.
- PackageName 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.
- packageName 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.
- packageName 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.
- packageName 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      
- PackageName 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.
- PackageName 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.
- packageName 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.
- packageName 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.
- packageName 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      
- AllowedApplications List<Pulumi.Google Native. APIKeys. V2. Inputs. V2Android Application> 
- A list of Android applications that are allowed to make API calls with this key.
- AllowedApplications []V2AndroidApplication 
- A list of Android applications that are allowed to make API calls with this key.
- allowedApplications List<V2AndroidApplication> 
- A list of Android applications that are allowed to make API calls with this key.
- allowedApplications 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.
- allowedApplications List<Property Map>
- A list of Android applications that are allowed to make API calls with this key.
V2AndroidKeyRestrictionsResponse, V2AndroidKeyRestrictionsResponseArgs        
- AllowedApplications 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.
- AllowedApplications []V2AndroidApplication Response 
- A list of Android applications that are allowed to make API calls with this key.
- allowedApplications List<V2AndroidApplication Response> 
- A list of Android applications that are allowed to make API calls with this key.
- allowedApplications 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.
- allowedApplications 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto 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.GetSupportedLanguageTranslateTextGet*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 listto get a list of services that are enabled in the project.
V2BrowserKeyRestrictions, V2BrowserKeyRestrictionsArgs      
- AllowedReferrers List<string>
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- AllowedReferrers []string
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowedReferrers List<String>
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowedReferrers 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.
- allowedReferrers List<String>
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
V2BrowserKeyRestrictionsResponse, V2BrowserKeyRestrictionsResponseArgs        
- AllowedReferrers List<string>
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- AllowedReferrers []string
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowedReferrers List<String>
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
- allowedReferrers 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.
- allowedReferrers List<String>
- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
V2IosKeyRestrictions, V2IosKeyRestrictionsArgs      
- AllowedBundle List<string>Ids 
- A list of bundle IDs that are allowed when making API calls with this key.
- AllowedBundle []stringIds 
- A list of bundle IDs that are allowed when making API calls with this key.
- allowedBundle List<String>Ids 
- A list of bundle IDs that are allowed when making API calls with this key.
- allowedBundle 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.
- allowedBundle List<String>Ids 
- A list of bundle IDs that are allowed when making API calls with this key.
V2IosKeyRestrictionsResponse, V2IosKeyRestrictionsResponseArgs        
- AllowedBundle List<string>Ids 
- A list of bundle IDs that are allowed when making API calls with this key.
- AllowedBundle []stringIds 
- A list of bundle IDs that are allowed when making API calls with this key.
- allowedBundle List<String>Ids 
- A list of bundle IDs that are allowed when making API calls with this key.
- allowedBundle 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.
- allowedBundle List<String>Ids 
- A list of bundle IDs that are allowed when making API calls with this key.
V2Restrictions, V2RestrictionsArgs  
- AndroidKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Android Key Restrictions 
- The Android apps that are allowed to use the key.
- ApiTargets 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.
- BrowserKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Browser Key Restrictions 
- The HTTP referrers (websites) that are allowed to use the key.
- IosKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Ios Key Restrictions 
- The iOS apps that are allowed to use the key.
- ServerKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Server Key Restrictions 
- The IP addresses of callers that are allowed to use the key.
- AndroidKey V2AndroidRestrictions Key Restrictions 
- The Android apps that are allowed to use the key.
- ApiTargets []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.
- BrowserKey V2BrowserRestrictions Key Restrictions 
- The HTTP referrers (websites) that are allowed to use the key.
- IosKey V2IosRestrictions Key Restrictions 
- The iOS apps that are allowed to use the key.
- ServerKey V2ServerRestrictions Key Restrictions 
- The IP addresses of callers that are allowed to use the key.
- androidKey V2AndroidRestrictions Key Restrictions 
- The Android apps that are allowed to use the key.
- apiTargets 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.
- browserKey V2BrowserRestrictions Key Restrictions 
- The HTTP referrers (websites) that are allowed to use the key.
- iosKey V2IosRestrictions Key Restrictions 
- The iOS apps that are allowed to use the key.
- serverKey V2ServerRestrictions Key Restrictions 
- The IP addresses of callers that are allowed to use the key.
- androidKey V2AndroidRestrictions Key Restrictions 
- The Android apps that are allowed to use the key.
- apiTargets 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.
- browserKey V2BrowserRestrictions Key Restrictions 
- The HTTP referrers (websites) that are allowed to use the key.
- iosKey V2IosRestrictions Key Restrictions 
- The iOS apps that are allowed to use the key.
- serverKey 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.
- androidKey Property MapRestrictions 
- The Android apps that are allowed to use the key.
- apiTargets 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.
- browserKey Property MapRestrictions 
- The HTTP referrers (websites) that are allowed to use the key.
- iosKey Property MapRestrictions 
- The iOS apps that are allowed to use the key.
- serverKey Property MapRestrictions 
- The IP addresses of callers that are allowed to use the key.
V2RestrictionsResponse, V2RestrictionsResponseArgs    
- AndroidKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Android Key Restrictions Response 
- The Android apps that are allowed to use the key.
- ApiTargets 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.
- BrowserKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Browser Key Restrictions Response 
- The HTTP referrers (websites) that are allowed to use the key.
- IosKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Ios Key Restrictions Response 
- The iOS apps that are allowed to use the key.
- ServerKey Pulumi.Restrictions Google Native. APIKeys. V2. Inputs. V2Server Key Restrictions Response 
- The IP addresses of callers that are allowed to use the key.
- AndroidKey V2AndroidRestrictions Key Restrictions Response 
- The Android apps that are allowed to use the key.
- ApiTargets []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.
- BrowserKey V2BrowserRestrictions Key Restrictions Response 
- The HTTP referrers (websites) that are allowed to use the key.
- IosKey V2IosRestrictions Key Restrictions Response 
- The iOS apps that are allowed to use the key.
- ServerKey V2ServerRestrictions Key Restrictions Response 
- The IP addresses of callers that are allowed to use the key.
- androidKey V2AndroidRestrictions Key Restrictions Response 
- The Android apps that are allowed to use the key.
- apiTargets 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.
- browserKey V2BrowserRestrictions Key Restrictions Response 
- The HTTP referrers (websites) that are allowed to use the key.
- iosKey V2IosRestrictions Key Restrictions Response 
- The iOS apps that are allowed to use the key.
- serverKey V2ServerRestrictions Key Restrictions Response 
- The IP addresses of callers that are allowed to use the key.
- androidKey V2AndroidRestrictions Key Restrictions Response 
- The Android apps that are allowed to use the key.
- apiTargets 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.
- browserKey V2BrowserRestrictions Key Restrictions Response 
- The HTTP referrers (websites) that are allowed to use the key.
- iosKey V2IosRestrictions Key Restrictions Response 
- The iOS apps that are allowed to use the key.
- serverKey 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.
- androidKey Property MapRestrictions 
- The Android apps that are allowed to use the key.
- apiTargets 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.
- browserKey Property MapRestrictions 
- The HTTP referrers (websites) that are allowed to use the key.
- iosKey Property MapRestrictions 
- The iOS apps that are allowed to use the key.
- serverKey Property MapRestrictions 
- The IP addresses of callers that are allowed to use the key.
V2ServerKeyRestrictions, V2ServerKeyRestrictionsArgs      
- AllowedIps List<string>
- A list of the caller IP addresses that are allowed to make API calls with this key.
- AllowedIps []string
- A list of the caller IP addresses that are allowed to make API calls with this key.
- allowedIps List<String>
- A list of the caller IP addresses that are allowed to make API calls with this key.
- allowedIps 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.
- allowedIps List<String>
- A list of the caller IP addresses that are allowed to make API calls with this key.
V2ServerKeyRestrictionsResponse, V2ServerKeyRestrictionsResponseArgs        
- AllowedIps List<string>
- A list of the caller IP addresses that are allowed to make API calls with this key.
- AllowedIps []string
- A list of the caller IP addresses that are allowed to make API calls with this key.
- allowedIps List<String>
- A list of the caller IP addresses that are allowed to make API calls with this key.
- allowedIps 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.
- allowedIps 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.