Cloud Organization API, gRPC: OsLoginService
Call | Description |
---|---|
GetSettings | OsLogin settings |
UpdateSettings | |
GetProfile | OsLogin Profiles |
ListProfiles | |
CreateProfile | |
UpdateProfile | |
SetDefaultProfile | Sets a profile as a default for the subject assigned to this profile |
DeleteProfile |
Calls OsLoginService
GetSettings
OsLogin settings
rpc GetSettings (GetOsLoginSettingsRequest) returns (OsLoginSettings)
GetOsLoginSettingsRequest
Field | Description |
---|---|
organization_id | string Required. The maximum string length in characters is 50. |
OsLoginSettings
Field | Description |
---|---|
user_ssh_key_settings | UserSshKeySettings |
ssh_certificate_settings | SshCertificateSettings |
UserSshKeySettings
Field | Description |
---|---|
enabled | bool |
allow_manage_own_keys | bool |
SshCertificateSettings
Field | Description |
---|---|
enabled | bool |
UpdateSettings
rpc UpdateSettings (UpdateOsLoginSettingsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateOsLoginSettingsMetadata
Operation.response:OsLoginSettings
UpdateOsLoginSettingsRequest
Field | Description |
---|---|
organization_id | string Required. The maximum string length in characters is 50. |
user_ssh_key_settings | UserSshKeySettings |
ssh_certificate_settings | SshCertificateSettings |
update_mask | google.protobuf.FieldMask |
UserSshKeySettings
Field | Description |
---|---|
enabled | bool |
allow_manage_own_keys | bool |
SshCertificateSettings
Field | Description |
---|---|
enabled | bool |
UserSshKeySettings
Field | Description |
---|---|
enabled | bool |
allow_manage_own_keys | bool |
SshCertificateSettings
Field | Description |
---|---|
enabled | bool |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateOsLoginSettingsMetadata
Field | Description |
---|---|
organization_id | string |
OsLoginSettings
Field | Description |
---|---|
user_ssh_key_settings | UserSshKeySettings |
ssh_certificate_settings | SshCertificateSettings |
GetProfile
OsLogin Profiles
rpc GetProfile (GetOsLoginProfileRequest) returns (OsLoginProfile)
GetOsLoginProfileRequest
Field | Description |
---|---|
os_login_profile_id | string Required. The maximum string length in characters is 50. |
OsLoginProfile
Field | Description |
---|---|
id | string |
organization_id | string |
subject_id | string |
login | string |
uid | int64 |
is_default | bool |
home_directory | string |
shell | string |
ListProfiles
rpc ListProfiles (ListOsLoginProfilesRequest) returns (ListOsLoginProfilesResponse)
ListOsLoginProfilesRequest
Field | Description |
---|---|
organization_id | string Required. The maximum string length in characters is 50. |
page_size | int64 Acceptable values are 0 to 1000, inclusive. |
page_token | string The maximum string length in characters is 2000. |
filter | string A filter expression that filters profiles listed in the response. The expression must specify:
|
ListOsLoginProfilesResponse
Field | Description |
---|---|
profiles[] | OsLoginProfile |
next_page_token | string |
OsLoginProfile
Field | Description |
---|---|
id | string |
organization_id | string |
subject_id | string |
login | string |
uid | int64 |
is_default | bool |
home_directory | string |
shell | string |
CreateProfile
rpc CreateProfile (CreateOsLoginProfileRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:CreateOsLoginProfileMetadata
Operation.response:OsLoginProfile
CreateOsLoginProfileRequest
Field | Description |
---|---|
organization_id | string Required. The maximum string length in characters is 50. |
subject_id | string The maximum string length in characters is 50. |
login | string Required. The maximum string length in characters is 32. Value must match the regular expression ^[^.]*?[^~.]$ . |
uid | int64 Acceptable values are 1000 to 9223372036854775807, inclusive. |
home_directory | string The maximum string length in characters is 255. |
shell | string The maximum string length in characters is 255. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
CreateOsLoginProfileMetadata
Field | Description |
---|---|
os_login_profile_id | string |
organization_id | string |
subject_id | string |
OsLoginProfile
Field | Description |
---|---|
id | string |
organization_id | string |
subject_id | string |
login | string |
uid | int64 |
is_default | bool |
home_directory | string |
shell | string |
UpdateProfile
rpc UpdateProfile (UpdateOsLoginProfileRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateOsLoginProfileMetadata
Operation.response:OsLoginProfile
UpdateOsLoginProfileRequest
Field | Description |
---|---|
os_login_profile_id | string Required. The maximum string length in characters is 50. |
login | string Required. The maximum string length in characters is 32. Value must match the regular expression ^[^.]*?[^~.]$ . |
uid | int64 Acceptable values are 1000 to 9223372036854775807, inclusive. |
home_directory | string The maximum string length in characters is 255. |
shell | string The maximum string length in characters is 255. |
update_mask | google.protobuf.FieldMask |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateOsLoginProfileMetadata
Field | Description |
---|---|
os_login_profile_id | string |
OsLoginProfile
Field | Description |
---|---|
id | string |
organization_id | string |
subject_id | string |
login | string |
uid | int64 |
is_default | bool |
home_directory | string |
shell | string |
SetDefaultProfile
Sets a profile as a default for the subject assigned to this profile
rpc SetDefaultProfile (SetDefaultOsLoginProfileRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:SetDefaultOsLoginProfileMetadata
Operation.response:OsLoginProfile
SetDefaultOsLoginProfileRequest
Field | Description |
---|---|
os_login_profile_id | string Required. The maximum string length in characters is 50. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
SetDefaultOsLoginProfileMetadata
Field | Description |
---|---|
previous_default_profile_id | string |
current_default_profile_id | string |
OsLoginProfile
Field | Description |
---|---|
id | string |
organization_id | string |
subject_id | string |
login | string |
uid | int64 |
is_default | bool |
home_directory | string |
shell | string |
DeleteProfile
rpc DeleteProfile (DeleteOsLoginProfileRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:DeleteOsLoginProfileMetadata
Operation.response:google.protobuf.Empty
DeleteOsLoginProfileRequest
Field | Description |
---|---|
id | string Required. The maximum string length in characters is 50. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
DeleteOsLoginProfileMetadata
Field | Description |
---|---|
os_login_profile_id | string |