Cloud CDN API, gRPC: ProviderService
Written by
A set of methods for managing Provider Service resources.
Call | Description |
---|---|
Activate | Activate provider for specified client. |
ListActivated | List activated providers for specified client. |
Calls ProviderService
Activate
Activate provider for specified client.
rpc Activate (ActivateProviderRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:ActivateProviderMetadata
Operation.response:google.protobuf.Empty
ActivateProviderRequest
Field | Description |
---|---|
folder_id | string Required. ID of the folder that the activate provider belongs to. The maximum string length in characters is 50. |
provider_type | string Required. Specify provider brand/type. Possible values: gcore . 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. |
ActivateProviderMetadata
Field | Description |
---|---|
folder_id | string Required. ID of the folder that the activate provider belongs to. The maximum string length in characters is 50. |
ListActivated
List activated providers for specified client.
rpc ListActivated (ListActivatedProvidersRequest) returns (ListActivatedProvidersResponse)
ListActivatedProvidersRequest
Field | Description |
---|---|
folder_id | string Required. ID of the folder that the activate provider belongs to. The maximum string length in characters is 50. |
ListActivatedProvidersResponse
Field | Description |
---|---|
providers[] | string Creates a list of providers. |