public sealed class ServerKeyRestrictions : IMessage<ServerKeyRestrictions>, IEquatable<ServerKeyRestrictions>, IDeepCloneable<ServerKeyRestrictions>, IBufferMessage, IMessage
Reference documentation and code samples for the API Keys v2 API class ServerKeyRestrictions.
The IP addresses of callers that are allowed to use the key.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eServerKeyRestrictions\u003c/code\u003e class in the API Keys v2 API is 1.4.0, with older versions available from 1.0.0 onward.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServerKeyRestrictions\u003c/code\u003e is a class within the \u003ccode\u003eGoogle.Cloud.ApiKeys.V2\u003c/code\u003e namespace that implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class manages restrictions for API keys, specifically defining the allowed IP addresses from which API calls can be made.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes inherited members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServerKeyRestrictions\u003c/code\u003e includes a property called \u003ccode\u003eAllowedIps\u003c/code\u003e which holds a list of strings that represent the caller IP addresses that are allowed to use the key.\u003c/p\u003e\n"]]],[],null,[]]