private async getApiName(name?: string) {
    let stackName: string | undefined;
    if (name) {
      stackName = name;
    } else {