github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/integration/assets/service_broker/example.json (about)

     1  {
     2    "comment": [
     3      "I have no impact to the broker (json doesn't support comments explicitly)",
     4      "",
     5      "Run 'curl <service-broker-url>/config' to fetch the current configuration of the service broker",
     6      "Run 'curl <service-broker-url>/config -d @<json-file>' to update the current configuration of the service broker",
     7      "",
     8      "With the exception of catalog, behaviors are defined with responses by service plan guid. 'default' is the fallback response that the broker will use if a plan is not provided.",
     9      "",
    10      "Instead of specifying the 'body' key for responses, you can provide 'raw_body' which is a string of the response to return.",
    11      "raw_body allows you to specify invalid json responses. The 'body' key must be missing for the service broker to use raw_body."
    12    ],
    13    "behaviors": {
    14      "catalog": {
    15        "sleep_seconds": 0,
    16        "status": 200,
    17        "body": {
    18          "services": [
    19            {
    20              "name": "fake-service",
    21              "id": "f479b64b-7c25-42e6-8d8f-e6d22c456c9b",
    22              "description": "fake service",
    23              "tags": [
    24                "no-sql",
    25                "relational"
    26              ],
    27              "max_db_per_node": 5,
    28              "bindable": true,
    29              "metadata": {
    30                "provider": {
    31                  "name": "The name"
    32                },
    33                "listing": {
    34                  "imageUrl": "http://catgifpage.com/cat.gif",
    35                  "blurb": "fake broker that is fake",
    36                  "longDescription": "A long time ago, in a galaxy far far away..."
    37                },
    38                "displayName": "The Fake Broker"
    39              },
    40              "dashboard_client": {
    41                "id": "sso-test",
    42                "secret": "sso-secret",
    43                "redirect_uri": "http://localhost:5551"
    44              },
    45              "plan_updateable": true,
    46              "plans": [
    47                {
    48                  "name": "fake-plan",
    49                  "id": "fake-plan-guid",
    50                  "description": "Shared fake Server, 5tb persistent disk, 40 max concurrent connections",
    51                  "max_storage_tb": 5,
    52                  "metadata": {
    53                    "cost": 0,
    54                    "bullets": [
    55                      {
    56                        "content": "Shared fake server"
    57                      },
    58                      {
    59                        "content": "5 TB storage"
    60                      },
    61                      {
    62                        "content": "40 concurrent connections"
    63                      }
    64                    ]
    65                  }
    66                },
    67                {
    68                  "name": "fake-async-plan",
    69                  "id": "fake-async-plan-guid",
    70                  "description": "Shared fake Server, 5tb persistent disk, 40 max concurrent connections. 100 async",
    71                  "max_storage_tb": 5,
    72                  "metadata": {
    73                    "cost": 0,
    74                    "bullets": [
    75                      {
    76                        "content": "40 concurrent connections"
    77                      }
    78                    ]
    79                  }
    80                },
    81                {
    82                  "name": "fake-async-plan-2",
    83                  "id": "fake-async-plan-2-guid",
    84                  "description": "Shared fake Server, 5tb persistent disk, 40 max concurrent connections. 100 async",
    85                  "max_storage_tb": 5,
    86                  "metadata": {
    87                    "cost": 0,
    88                    "bullets": [
    89                      {
    90                        "content": "40 concurrent connections"
    91                      }
    92                    ]
    93                  }
    94                }
    95              ]
    96            }
    97          ]
    98        }
    99      },
   100      "provision": {
   101        "fake-async-plan-guid": {
   102          "sleep_seconds": 0,
   103          "status": 202,
   104          "body": {
   105            "last_operation": {
   106              "state": "in progress"
   107            }
   108          }
   109        },
   110        "fake-async-plan-2-guid": {
   111          "sleep_seconds": 0,
   112          "status": 202,
   113          "body": {
   114            "last_operation": {
   115              "state": "in progress"
   116            }
   117          }
   118        },
   119        "default": {
   120          "sleep_seconds": 0,
   121          "status": 200,
   122          "body": {}
   123        }
   124      },
   125      "fetch": {
   126        "default": {
   127          "in_progress": {
   128            "sleep_seconds": 0,
   129            "status": 200,
   130            "body": {
   131              "last_operation": {
   132                "state": "in progress"
   133              }
   134            }
   135          },
   136          "finished": {
   137            "sleep_seconds": 0,
   138            "status": 200,
   139            "body": {
   140              "last_operation": {
   141                "state": "succeeded"
   142              }
   143            }
   144          }
   145        }
   146      },
   147      "update": {
   148        "fake-async-plan-guid": {
   149          "sleep_seconds": 0,
   150          "status": 202,
   151          "body": {
   152            "last_operation": {
   153              "state": "in progress"
   154            }
   155          }
   156        },
   157        "fake-async-plan-2-guid": {
   158          "sleep_seconds": 0,
   159          "status": 202,
   160          "body": {
   161            "last_operation": {
   162              "state": "in progress"
   163            }
   164          }
   165        },
   166        "default": {
   167          "sleep_seconds": 0,
   168          "status": 200,
   169          "body": {
   170            "last_operation": {
   171              "state": "succeeded"
   172            }
   173          }
   174        }
   175      },
   176      "deprovision": {
   177        "fake-async-plan-guid": {
   178          "sleep_seconds": 0,
   179          "status": 202,
   180          "body": {
   181            "last_operation": {
   182              "state": "in progress"
   183            }
   184          }
   185        },
   186        "fake-async-plan-2-guid": {
   187          "sleep_seconds": 0,
   188          "status": 202,
   189          "body": {
   190            "last_operation": {
   191              "state": "in progress"
   192            }
   193          }
   194        },
   195        "default": {
   196          "sleep_seconds": 0,
   197          "status": 200,
   198          "body": {}
   199        }
   200      },
   201      "bind": {
   202        "default": {
   203          "sleep_seconds": 0,
   204          "status": 201,
   205          "body": {
   206            "credentials": {
   207              "uri": "fake-service://fake-user:fake-password@fake-host:3306/fake-dbname",
   208              "username": "fake-user",
   209              "password": "fake-password",
   210              "host": "fake-host",
   211              "port": 3306,
   212              "database": "fake-dbname"
   213            }
   214          }
   215        }
   216      },
   217      "unbind": {
   218        "default": {
   219          "sleep_seconds": 0,
   220          "status": 200,
   221          "body": {}
   222        }
   223      }
   224    },
   225    "max_fetch_service_instance_requests": 1
   226  }