Organization Policy API, gRPC: AuthenticationPolicyRuleService.Create
Creates an authentication policy rule in the specified organization.
gRPC request
rpc Create (CreateRuleRequest) returns (operation.Operation)
CreateRuleRequest
{
"organization_id": "string",
"name": "string",
"description": "string",
"effect": "Effect",
"obligations": [
{
// Includes only one of the fields `step_up_required`, `skip_mfa`, `reauthentication_required`
"step_up_required": {
"acr_id": "string",
"ttl": "google.protobuf.Duration"
},
"skip_mfa": {
"require_once": "bool"
},
"reauthentication_required": {
"ttl": "google.protobuf.Duration"
}
// end of the list of possible fields
}
],
"subjects_include": [
"string"
],
"subjects_exclude": [
"string"
],
"networks_include": [
"string"
],
"networks_exclude": [
"string"
],
"applications_exclude": [
"string"
],
"applications_include": [
"string"
],
"labels": "map<string, string>"
}
|
Field |
Description |
|
organization_id |
string Required field. ID of organization to create the authentication policy rule for. The maximum string length in characters is 50. |
|
name |
string Required field. Name of the authentication policy rule to create. Value must match the regular expression |
|
description |
string Description of the authentication policy rule to create. 0-256 characters long. The maximum string length in characters is 256. |
|
effect |
enum Effect Effect to apply when the rule matches.
|
|
obligations[] |
Obligations to satisfy when the effect is ALLOW_WITH_OBLIGATIONS. The maximum number of elements is 5. |
|
subjects_include[] |
string List of IDs of subjects to be affected by the authentication policy rule to create. The maximum string length in characters for each value is 64. The maximum number of elements is 64. |
|
subjects_exclude[] |
string List of IDs of subjects not to be affected by the authentication policy rule to create. The maximum string length in characters for each value is 64. The maximum number of elements is 64. |
|
networks_include[] |
string Source IP ranges in CIDR notation that the authentication policy rule applies to. The maximum string length in characters for each value is 64. The maximum number of elements is 64. |
|
networks_exclude[] |
string Source IP ranges in CIDR notation excluded from the authentication policy rule. The maximum string length in characters for each value is 64. The maximum number of elements is 64. |
|
applications_exclude[] |
string List of IDs of applications not to be affected by the authentication policy rule to create. The maximum string length in characters for each value is 64. The maximum number of elements is 64. |
|
applications_include[] |
string List of IDs of applications to be affected by the authentication policy rule to create. The maximum string length in characters for each value is 64. The maximum number of elements is 64. |
|
labels |
object (map<string, string>) Labels of the authentication policy rule. The maximum string length in characters for each value is 63. The string length in characters for each key must be 1-63. Each key must match the regular expression |
Obligation
|
Field |
Description |
|
step_up_required |
Require step-up authentication. Includes only one of the fields |
|
skip_mfa |
Allow skipping the organization's current MFA requirements. Includes only one of the fields |
|
reauthentication_required |
Require full authentication again. Includes only one of the fields |
StepUpRequired
|
Field |
Description |
|
acr_id |
string Required field. ACR ID required to satisfy this obligation. The maximum string length in characters is 50. |
|
ttl |
Required field. Maximum age of a factor verification that can satisfy this obligation. |
SkipMfa
|
Field |
Description |
|
require_once |
bool If true, the organization's current MFA requirements must have been satisfied at least once |
ReauthenticationRequired
|
Field |
Description |
|
ttl |
Required field. Maximum age of an authentication that can satisfy this obligation. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": "google.protobuf.Any",
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": "google.protobuf.Any"
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |