Cloud CDN API, gRPC: ResourceService.GetAttributes
Get resource attributes.
gRPC request
rpc GetAttributes (GetResourceAttributesRequest) returns (GetResourceAttributesResponse)
GetResourceAttributesRequest
{
"resource_id": "string"
}
|
Field |
Description |
|
resource_id |
string Required field. ID of the resource to get attributes for. The maximum string length in characters is 50. |
GetResourceAttributesResponse
{
"attributes": {
// Includes only one of the fields `nullValue`, `numberValue`, `stringValue`, `boolValue`, `structValue`, `listValue`
"nullValue": "NullValue",
"numberValue": "double",
"stringValue": "string",
"boolValue": "bool",
"structValue": "google.protobuf.Struct",
"listValue": {
"values": [
"Value"
]
}
// end of the list of possible fields
}
}
|
Field |
Description |
|
attributes |
Resource attributes. |
Value
|
Field |
Description |
|
nullValue |
enum NullValue Includes only one of the fields |
|
numberValue |
double Includes only one of the fields |
|
stringValue |
string Includes only one of the fields |
|
boolValue |
bool Includes only one of the fields |
|
structValue |
Includes only one of the fields |
|
listValue |
Includes only one of the fields |
ListValue
|
Field |
Description |
|
values[] |