def describe_api_stages(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  stages = conn.get_stages(restApiId=restApiId, deploymentId=deploymentId)
  return {'stages': [_convert_datetime_str(stage) for stage in stages['item']]}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_stages ( restApiId , deploymentId , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) stages = conn . get_stages ( restApiId = restApiId , deploymentId = deploymentId ) return { 'stages' : [ _convert_datetime_str ( stage ) for stage in stages [ 'item' ] ] } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
get all api stages for a given apiid and deploymentid cli example: .