get-attribution (deprecated)
Deprecated
This command is deprecated and may be removed in a future release.
restish dci get-attribution id
Returns an attribution by its attribution id
Responses
200 (application/json)
OK. - The attribution returned.
{
"type": "object",
"properties": {
"Attribution": {
"required": [
"name"
],
"type": "object",
"properties": {
"anomalyDetection": {
"type": "boolean",
"description": "Indicates if the attribution has an active anomaly detection."
},
"components": {
"type": "array",
"description": "List of Attribution filters",
"items": {
"required": [
"key",
"type"
],
"type": "object",
"properties": {
"include_null": {
"type": "boolean"
},
"inverse_selection": {
"type": "boolean",
"description": "If true, all selected values will be excluded."
},
"key": {
"type": "string",
"description": "Key of a dimension. Examples: \"service_id\", \"cloud_provider\", \"sku_description\"",
"example": "service_id"
},
"regexp": {
"type": "string",
"description": "Filter the dimension values using a regular expression."
},
"type": {
"type": "string",
"enum": [
"datetime",
"fixed",
"optional",
"label",
"tag",
"project_label",
"system_label",
"attribution",
"attribution_group",
"gke",
"gke_label"
]
},
"values": {
"type": "array",
"items": {
"type": "string",
"description": "Value of the dimension. Examples: \"152E-C115-5142\", \"google-cloud\", \"team-a\"",
"example": "google-cloud"
}
}
}
}
},
"createTime": {
"type": "integer",
"description": "Creation time of this Attribution (in unix milliseconds)",
"format": "int64"
},
"description": {
"type": "string",
"description": "Attribution description",
"default": ""
},
"formula": {
"type": "string",
"description": "Attribution formula (A is the first component, B is the second component, C is the third component, etc.)"
},
"id": {
"type": "string",
"description": "attribution ID, identifying the attribution\nin:path"
},
"name": {
"type": "string",
"description": "Attribution Name",
"default": ""
},
"type": {
"type": "string",
"description": "Type of Attribution can be either \"preset\" or \"custom\""
},
"updateTime": {
"type": "integer",
"description": "Last time somebody modified this Attribution (in unix milliseconds)",
"format": "int64"
}
}
}
}
}
400 (application/json)
Bad Request - The server cannot process the request, often due to a malformed request.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
401 (application/json)
Unauthorized - Invalid API key.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
403 (application/json)
Forbidden - The client is not authorized to perform the request.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
404 (application/json)
Not Found - The requested resource does not exist.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
500 (application/json)
Internal Server Error - Something went wrong with the DoiT API server.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
Aliases: get-attribution, getattribution