github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/integration/assets/service_broker/data.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              "requires": [
    28                "route_forwarding"
    29              ],
    30              "max_db_per_node": 5,
    31              "bindable": true,
    32              "metadata": {
    33                "provider": {
    34                  "name": "The name"
    35                },
    36                "listing": {
    37                  "imageUrl": "http://catgifpage.com/cat.gif",
    38                  "blurb": "fake broker that is fake",
    39                  "longDescription": "A long time ago, in a galaxy far far away..."
    40                },
    41                "displayName": "The Fake Broker"
    42              },
    43              "dashboard_client": {
    44                "id": "sso-test",
    45                "secret": "sso-secret",
    46                "redirect_uri": "http://localhost:5551"
    47              },
    48              "plan_updateable": true,
    49              "plans": [
    50                {
    51                  "name": "fake-plan",
    52                  "id": "fake-plan-guid",
    53                  "description": "Shared fake Server, 5tb persistent disk, 40 max concurrent connections",
    54                  "max_storage_tb": 5,
    55                  "metadata": {
    56                    "cost": 0,
    57                    "bullets": [
    58                      {
    59                        "content": "Shared fake server"
    60                      },
    61                      {
    62                        "content": "5 TB storage"
    63                      },
    64                      {
    65                        "content": "40 concurrent connections"
    66                      }
    67                    ]
    68                  }
    69                },
    70                {
    71                  "name": "fake-async-plan",
    72                  "id": "fake-async-plan-guid",
    73                  "description": "Shared fake Server, 5tb persistent disk, 40 max concurrent connections. 100 async",
    74                  "max_storage_tb": 5,
    75                  "metadata": {
    76                    "cost": 0,
    77                    "bullets": [
    78                      {
    79                        "content": "40 concurrent connections"
    80                      }
    81                    ]
    82                  }
    83                },
    84                {
    85                  "name": "fake-async-only-plan",
    86                  "id": "fake-async-only-plan-guid",
    87                  "description": "Shared fake Server, 5tb persistent disk, 40 max concurrent connections. 100 async",
    88                  "max_storage_tb": 5,
    89                  "metadata": {
    90                    "cost": 0,
    91                    "bullets": [
    92                      {
    93                        "content": "40 concurrent connections"
    94                      }
    95                    ]
    96                  }
    97                }
    98              ]
    99            }
   100          ]
   101        }
   102      },
   103      "provision": {
   104        "fake-async-plan-guid": {
   105          "sleep_seconds": 0,
   106          "status": 202,
   107          "body": {}
   108        },
   109        "fake-async-only-plan-guid": {
   110          "async_only": true,
   111          "sleep_seconds": 0,
   112          "status": 202,
   113          "body": {}
   114        },
   115        "default": {
   116          "sleep_seconds": 0,
   117          "status": 200,
   118          "body": {}
   119        }
   120      },
   121      "fetch": {
   122        "default": {
   123          "in_progress": {
   124            "sleep_seconds": 0,
   125            "status": 200,
   126            "body": {
   127              "state": "in progress"
   128            }
   129          },
   130          "finished": {
   131            "sleep_seconds": 0,
   132            "status": 200,
   133            "body": {
   134              "state": "succeeded"
   135            }
   136          }
   137        }
   138      },
   139      "update": {
   140        "fake-async-plan-guid": {
   141          "sleep_seconds": 0,
   142          "status": 202,
   143          "body": {}
   144        },
   145        "fake-async-only-plan-guid": {
   146          "async_only": true,
   147          "sleep_seconds": 0,
   148          "status": 202,
   149          "body": {}
   150        },
   151        "default": {
   152          "sleep_seconds": 0,
   153          "status": 200,
   154          "body": {}
   155        }
   156      },
   157      "deprovision": {
   158        "fake-async-plan-guid": {
   159          "sleep_seconds": 0,
   160          "status": 202,
   161          "body": {}
   162        },
   163        "fake-async-only-plan-guid": {
   164          "async_only": true,
   165          "sleep_seconds": 0,
   166          "status": 202,
   167          "body": {}
   168        },
   169        "default": {
   170          "sleep_seconds": 0,
   171          "status": 200,
   172          "body": {}
   173        }
   174      },
   175      "bind": {
   176        "default": {
   177          "sleep_seconds": 0,
   178          "status": 201,
   179          "body": {
   180            "route_service_url": "https://logging-route-service.bosh-lite.com",
   181            "credentials": {
   182              "uri": "fake-service://fake-user:fake-password@fake-host:3306/fake-dbname",
   183              "username": "fake-user",
   184              "password": "fake-password",
   185              "host": "fake-host",
   186              "port": 3306,
   187              "database": "fake-dbname"
   188            }
   189          }
   190        }
   191      },
   192      "unbind": {
   193        "default": {
   194          "sleep_seconds": 0,
   195          "status": 200,
   196          "body": {}
   197        }
   198      }
   199    },
   200    "service_instances": {},
   201    "service_bindings": {},
   202    "max_fetch_service_instance_requests": 1
   203  }